test case for typed message

pull/298/merge
Darien Raymond 8 years ago
parent 6239647336
commit 097cdf01d6
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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…
Cancel
Save