1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-02 17:27:50 -04:00
v2fly/app/restful-api/service_test.go
2021-10-28 18:34:19 +08:00

15 lines
288 B
Go

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