1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
v2fly/app/restful-api/service_test.go

14 lines
287 B
Go
Raw Normal View History

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