mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08: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")
|
|
}
|