mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-19 02:46:33 -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")
|
|
}
|