diff --git a/registry/registry_test.go b/registry/registry_test.go index 0ee62f1..abe06ba 100644 --- a/registry/registry_test.go +++ b/registry/registry_test.go @@ -9,6 +9,12 @@ import ( func TestRegisterType(t *testing.T) { RegisterType(reflect.TypeOf((*TestStruct)(nil)), &cda.ComponentAnnotation{}) + RegisterType(reflect.TypeOf((*TestStruct)(nil)), &cda.ComponentAnnotation{ + Names: []string{"test1", "test2"}, + }) + RegisterType(reflect.TypeOf((*TestStruct)(nil)), &cda.ComponentAnnotation{ + Names: []string{"test1", "test2"}, + }) } type TestStruct struct {