github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/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 }