1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-06 22:05:27 -04:00

test case for typed message

This commit is contained in:
Darien Raymond
2017-04-28 20:37:49 +02:00
parent 6239647336
commit 097cdf01d6

View File

@@ -0,0 +1,16 @@
package serial_test
import (
"testing"
. "v2ray.com/core/common/serial"
"v2ray.com/core/testing/assert"
)
func TestGetInstance(t *testing.T) {
assert := assert.On(t)
p, err := GetInstance("")
assert.Pointer(p).IsNil()
assert.Error(err).IsNotNil()
}