mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-17 18:06:15 -05:00
14 lines
287 B
Go
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")
|
||
|
}
|