1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-18 02:16:10 -05:00
v2fly/app/restful-api/service_test.go
2021-09-06 13:11:30 +01:00

14 lines
287 B
Go

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")
}