1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
v2fly/common/protocol/id_test.go
2017-10-24 16:15:35 +02:00

18 lines
306 B
Go

package protocol_test
import (
"testing"
"v2ray.com/core/common/predicate"
. "v2ray.com/core/common/protocol"
"v2ray.com/core/common/uuid"
. "v2ray.com/ext/assert"
)
func TestCmdKey(t *testing.T) {
assert := With(t)
id := NewID(uuid.New())
assert(predicate.BytesAll(id.CmdKey(), 0), IsFalse)
}