1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-05 13:35:23 +00:00
v2fly/common/serial/typed_message_test.go

17 lines
232 B
Go
Raw Normal View History

2017-04-28 18:37:49 +00:00
package serial_test
import (
"testing"
. "v2ray.com/core/common/serial"
2017-10-24 14:15:35 +00:00
. "v2ray.com/ext/assert"
2017-04-28 18:37:49 +00:00
)
func TestGetInstance(t *testing.T) {
2017-10-24 14:15:35 +00:00
assert := With(t)
2017-04-28 18:37:49 +00:00
p, err := GetInstance("")
2017-10-24 14:15:35 +00:00
assert(p, IsNil)
assert(err, IsNotNil)
2017-04-28 18:37:49 +00:00
}