mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-02 17:27:50 -04:00
15 lines
288 B
Go
15 lines
288 B
Go
package restful_api
|
|
|
|
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")
|
|
}
|