mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
dce8764fd7
* Lint: replace golint with revive * Lint: fix lint
15 lines
287 B
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")
|
|
}
|