1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -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")
}