func TestDynamicType(t *testing.T) { assert := assert.New(t) registery := config.NewRegistry() tf := testFactory{} registery.RegisterFactory("jim", &tf) ts := testStruct{assert, registery} var data = ` jim: a: 1 b: 2 c: 4 ` err := yaml.Unmarshal([]byte(data), &ts) assert.Nil(err) }
func init() { FingerprinterRegistery = config.NewRegistry() }
func init() { EngineRegistery = config.NewRegistry() }
func init() { NotifierRegistery = config.NewRegistry() }