github.com/imannamdari/v2ray-core/v5@v5.0.5/app/restfulapi/service_test.go (about) 1 package restfulapi 2 3 import ( 4 "reflect" 5 "testing" 6 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestTypeReturnAnonymousType(t *testing.T) { 11 service := restfulService{} 12 serviceType := service.Type() 13 assert.Empty(t, reflect.TypeOf(serviceType).Name(), "must return anonymous type") 14 }