v2fly/app/restfulapi/service_test.go

15 lines
287 B
Go

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