mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-26 22:48:22 +00:00
test case for typed message
This commit is contained in:
parent
6239647336
commit
097cdf01d6
16
common/serial/typed_message_test.go
Normal file
16
common/serial/typed_message_test.go
Normal 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()
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user