2016-02-03 10:58:42 +00:00
|
|
|
package protocol_test
|
2016-01-20 16:45:50 +00:00
|
|
|
|
|
|
|
import (
|
2016-01-21 12:05:16 +00:00
|
|
|
"testing"
|
2016-01-20 16:45:50 +00:00
|
|
|
|
2016-08-20 18:55:45 +00:00
|
|
|
"v2ray.com/core/common/predicate"
|
|
|
|
. "v2ray.com/core/common/protocol"
|
|
|
|
"v2ray.com/core/common/uuid"
|
2017-10-24 14:15:35 +00:00
|
|
|
. "v2ray.com/ext/assert"
|
2016-01-20 16:45:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestCmdKey(t *testing.T) {
|
2017-10-24 14:15:35 +00:00
|
|
|
assert := With(t)
|
2016-01-20 16:45:50 +00:00
|
|
|
|
2016-01-21 12:05:16 +00:00
|
|
|
id := NewID(uuid.New())
|
2017-10-24 14:15:35 +00:00
|
|
|
assert(predicate.BytesAll(id.CmdKey(), 0), IsFalse)
|
2016-01-20 16:45:50 +00:00
|
|
|
}
|