This commit is contained in:
crusader 2017-12-05 22:31:19 +09:00
parent 4a4e7cdfdd
commit c3f8e35ea0

View File

@ -9,6 +9,12 @@ import (
func TestRegisterType(t *testing.T) { func TestRegisterType(t *testing.T) {
RegisterType(reflect.TypeOf((*TestStruct)(nil)), &cda.ComponentAnnotation{}) 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 { type TestStruct struct {