1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-12 02:40:42 +00:00
v2fly/app/restfulapi/service_test.go

15 lines
287 B
Go
Raw Normal View History

package restfulapi
2021-09-06 12:11:30 +00:00
import (
"reflect"
"testing"
2021-10-28 10:34:19 +00:00
"github.com/stretchr/testify/assert"
2021-09-06 12:11:30 +00:00
)
func TestTypeReturnAnonymousType(t *testing.T) {
service := restfulService{}
serviceType := service.Type()
assert.Empty(t, reflect.TypeOf(serviceType).Name(), "must return anonymous type")
}