package test import ( "hash/crc32" "hilo-userProxy/common" "testing" ) func TestEncodeMessage(t *testing.T) { msg := common.EncodeMessage(1, 1, []byte("hello")) t.Logf("msg:%s", msg) } func TestCrc32(t *testing.T) { msg := []byte("hello") c := crc32.ChecksumIEEE(msg) t.Logf("%v", c == 907060870) }