1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

api/message/msgpack/codec_test.go: Test ActionReceipt.

This commit is contained in:
Henrik Hautakoski 2023-05-26 15:11:59 +02:00
parent e2962c719b
commit 9d2b621b27

View file

@ -16,6 +16,20 @@ func TestMsgpack_EncodeActionTrace(t *testing.T) {
Name: "sellitem",
Contract: "mygame",
Receiver: "eosio",
Receipt: &message.ActionReceipt{
Receiver: "eosio",
ActDigest: "be9618d12f0b8d125731c6faf1304357291ada716bb190c6c03c8dd41c36bb79",
GlobalSequence: 273871,
RecvSequence: 237863,
AuthSequence: []message.AccountAuthSequence{
{
Account: "eosio",
Sequence: 217328173,
},
},
CodeSequence: 2381267931,
ABISequence: 847623,
},
Data: map[string]any{
"item": map[string]any{
"id": 2131242,
@ -41,7 +55,7 @@ func TestMsgpack_EncodeActionTrace(t *testing.T) {
assert.NoError(t, err)
expected := []byte{
0x8b, 0xad, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x8c, 0xad, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x91,
0x82, 0xa5, 0x61, 0x63, 0x74, 0x6f, 0x72, 0xa6,
0x6d, 0x79, 0x67, 0x61, 0x6d, 0x65, 0xaa, 0x70,
@ -72,27 +86,54 @@ func TestMsgpack_EncodeActionTrace(t *testing.T) {
0x72, 0x02, 0xa6, 0x65, 0x78, 0x63, 0x65, 0x70,
0x74, 0xa6, 0x65, 0x72, 0x72, 0x73, 0x74, 0x72,
0xa4, 0x6e, 0x61, 0x6d, 0x65, 0xa8, 0x73, 0x65,
0x6c, 0x6c, 0x69, 0x74, 0x65, 0x6d, 0xa8, 0x72,
0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0xa5,
0x65, 0x6f, 0x73, 0x69, 0x6f, 0xa6, 0x72, 0x65,
0x74, 0x75, 0x72, 0x6e, 0xc4, 0x04, 0xde, 0xad,
0xbe, 0xef, 0xa5, 0x74, 0x78, 0x5f, 0x69, 0x64,
0xd9, 0x40, 0x65, 0x64, 0x63, 0x30, 0x36, 0x64,
0x63, 0x65, 0x36, 0x33, 0x32, 0x30, 0x34, 0x35,
0x39, 0x66, 0x64, 0x36, 0x34, 0x34, 0x37, 0x35,
0x36, 0x39, 0x37, 0x32, 0x30, 0x34, 0x38, 0x64,
0x61, 0x34, 0x35, 0x33, 0x62, 0x32, 0x38, 0x31,
0x36, 0x62, 0x30, 0x61, 0x34, 0x33, 0x34, 0x63,
0x33, 0x37, 0x64, 0x64, 0x66, 0x66, 0x64, 0x65,
0x33, 0x36, 0x37, 0x37, 0x38, 0x64, 0x63, 0x61,
0x62, 0x33,
0x6c, 0x6c, 0x69, 0x74, 0x65, 0x6d, 0xa7, 0x72,
0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x87, 0xac,
0x61, 0x62, 0x69, 0x5f, 0x73, 0x65, 0x71, 0x75,
0x65, 0x6e, 0x63, 0x65, 0xce, 0x00, 0x0c, 0xef,
0x07, 0xaa, 0x61, 0x63, 0x74, 0x5f, 0x64, 0x69,
0x67, 0x65, 0x73, 0x74, 0xd9, 0x40, 0x62, 0x65,
0x39, 0x36, 0x31, 0x38, 0x64, 0x31, 0x32, 0x66,
0x30, 0x62, 0x38, 0x64, 0x31, 0x32, 0x35, 0x37,
0x33, 0x31, 0x63, 0x36, 0x66, 0x61, 0x66, 0x31,
0x33, 0x30, 0x34, 0x33, 0x35, 0x37, 0x32, 0x39,
0x31, 0x61, 0x64, 0x61, 0x37, 0x31, 0x36, 0x62,
0x62, 0x31, 0x39, 0x30, 0x63, 0x36, 0x63, 0x30,
0x33, 0x63, 0x38, 0x64, 0x64, 0x34, 0x31, 0x63,
0x33, 0x36, 0x62, 0x62, 0x37, 0x39, 0xad, 0x61,
0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x71, 0x75,
0x65, 0x6e, 0x63, 0x65, 0x91, 0x82, 0xa7, 0x61,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0xa5, 0x65,
0x6f, 0x73, 0x69, 0x6f, 0xa8, 0x73, 0x65, 0x71,
0x75, 0x65, 0x6e, 0x63, 0x65, 0xce, 0x0c, 0xf4,
0x2a, 0x2d, 0xad, 0x63, 0x6f, 0x64, 0x65, 0x5f,
0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
0xce, 0x8d, 0xef, 0x43, 0xdb, 0xaf, 0x67, 0x6c,
0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x71,
0x75, 0x65, 0x6e, 0x63, 0x65, 0xce, 0x00, 0x04,
0x2d, 0xcf, 0xa8, 0x72, 0x65, 0x63, 0x65, 0x69,
0x76, 0x65, 0x72, 0xa5, 0x65, 0x6f, 0x73, 0x69,
0x6f, 0xad, 0x72, 0x65, 0x63, 0x76, 0x5f, 0x73,
0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0xce,
0x00, 0x03, 0xa1, 0x27, 0xa8, 0x72, 0x65, 0x63,
0x65, 0x69, 0x76, 0x65, 0x72, 0xa5, 0x65, 0x6f,
0x73, 0x69, 0x6f, 0xa6, 0x72, 0x65, 0x74, 0x75,
0x72, 0x6e, 0xc4, 0x04, 0xde, 0xad, 0xbe, 0xef,
0xa5, 0x74, 0x78, 0x5f, 0x69, 0x64, 0xd9, 0x40,
0x65, 0x64, 0x63, 0x30, 0x36, 0x64, 0x63, 0x65,
0x36, 0x33, 0x32, 0x30, 0x34, 0x35, 0x39, 0x66,
0x64, 0x36, 0x34, 0x34, 0x37, 0x35, 0x36, 0x39,
0x37, 0x32, 0x30, 0x34, 0x38, 0x64, 0x61, 0x34,
0x35, 0x33, 0x62, 0x32, 0x38, 0x31, 0x36, 0x62,
0x30, 0x61, 0x34, 0x33, 0x34, 0x63, 0x33, 0x37,
0x64, 0x64, 0x66, 0x66, 0x64, 0x65, 0x33, 0x36,
0x37, 0x37, 0x38, 0x64, 0x63, 0x61, 0x62, 0x33,
}
assert.Equal(t, expected, data)
}
func TestMsgpack_DecodeActionTrace(t *testing.T) {
data := []byte("\x8b\xadauthorization\x91\x82\xa5actor\xa6mygame\xaapermission\xa6active\xa8blocknum\xce\x00\x85F7\xaeblocktimestamp\xd6\xffH\xf1U\x1f\xa8contract\xa6mygame\xa4data\x83\xafdropped_from_id\xd2\x00\nK\x02\xa4item\x86\xa3dur\xd1\x00\x91\xa2id\xd2\x00\x00\xc1פname\xacShadowmourne\xa4qual\xa9legendary\xa3sta\xd1\x00ƣstr\xd1\x00ߨreceiver\xa8account1\xa5error\x02\xa6except\xa6errstr\xa4name\xa4drop\xa8receiver\xa8account1\xa6return\xc4\x04ޭ\xbe\xef\xa5tx_id\xd9@edc06dce6320459fd644756972048da453b2816b0a434c37ddffde36778dcab3")
data := []byte("\x8c\xadauthorization\x91\x82\xa5actor\xa6mygame\xaapermission\xa6active\xa8blocknum\xce\x00\x85F7\xaeblocktimestamp\xd6\xffH\xf1U\x1f\xa8contract\xa6mygame\xa4data\x83\xafdropped_from_id\xd2\x00\nK\x02\xa4item\x86\xa3dur\xd1\x00\x91\xa2id\xd2\x00\x00\xc1פname\xacShadowmourne\xa4qual\xa9legendary\xa3sta\xd1\x00ƣstr\xd1\x00ߨreceiver\xa8account1\xa5error\x02\xa6except\xa6errstr\xa4name\xa4drop\xa7receipt\x87\xacabi_sequence\xce\x00\bӽ\xaaact_digest\xd9@676c5336de9d528d456b01e975b1006e2bdc86c8d566330321e9b309b634f523\xadauth_sequence\x91\x82\xa7account\xa6mygame\xa8sequence\xce\x00\v\v\x10\xadcode_sequence\xce\x0e2\x82\xb3\xafglobal_sequence\xce\x03r`6\xa8receiver\xa8account1\xadrecv_sequence\xce\x00\x13\x81S\xa8receiver\xa8account1\xa6return\xc4\x04ޭ\xbe\xef\xa5tx_id\xd9@edc06dce6320459fd644756972048da453b2816b0a434c37ddffde36778dcab3")
expected := message.ActionTrace{
TxID: "edc06dce6320459fd644756972048da453b2816b0a434c37ddffde36778dcab3",
@ -101,6 +142,20 @@ func TestMsgpack_DecodeActionTrace(t *testing.T) {
Name: "drop",
Contract: "mygame",
Receiver: "account1",
Receipt: &message.ActionReceipt{
Receiver: "account1",
ActDigest: "676c5336de9d528d456b01e975b1006e2bdc86c8d566330321e9b309b634f523",
GlobalSequence: 57827382,
RecvSequence: 1278291,
AuthSequence: []message.AccountAuthSequence{
{
Account: "mygame",
Sequence: 723728,
},
},
CodeSequence: 238191283,
ABISequence: 578493,
},
Data: map[string]any{
"item": map[string]any{
"id": int64(49623),
@ -176,6 +231,20 @@ func TestMsgpack_EncodeTransactionTrace(t *testing.T) {
Name: "sellitem",
Contract: "skjdh23",
Receiver: "eosio",
Receipt: &message.ActionReceipt{
Receiver: "eosio",
ActDigest: "676c5336de9d528d456b01e975b1006e2bdc86c8d566330321e9b309b634f523",
GlobalSequence: 34789213,
RecvSequence: 578912378,
AuthSequence: []message.AccountAuthSequence{
{
Account: "actor12123",
Sequence: 547897,
},
},
CodeSequence: 23193721,
ABISequence: 4782232,
},
Data: map[string]any{
"key": "value",
},
@ -202,7 +271,7 @@ func TestMsgpack_EncodeTransactionTrace(t *testing.T) {
expected := []byte{
0x8c, 0xad, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x92,
0x8b, 0xad, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x8c, 0xad, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x91,
0x82, 0xa5, 0x61, 0x63, 0x74, 0x6f, 0x72, 0xaa,
0x61, 0x63, 0x74, 0x6f, 0x72, 0x31, 0x32, 0x31,
@ -219,59 +288,86 @@ func TestMsgpack_EncodeTransactionTrace(t *testing.T) {
0x65, 0x72, 0x72, 0x6f, 0x72, 0x00, 0xa6, 0x65,
0x78, 0x63, 0x65, 0x70, 0x74, 0xa0, 0xa4, 0x6e,
0x61, 0x6d, 0x65, 0xa8, 0x73, 0x65, 0x6c, 0x6c,
0x69, 0x74, 0x65, 0x6d, 0xa8, 0x72, 0x65, 0x63,
0x65, 0x69, 0x76, 0x65, 0x72, 0xa5, 0x65, 0x6f,
0x73, 0x69, 0x6f, 0xa6, 0x72, 0x65, 0x74, 0x75,
0x72, 0x6e, 0xc0, 0xa5, 0x74, 0x78, 0x5f, 0x69,
0x64, 0xa0, 0x8b, 0xad, 0x61, 0x75, 0x74, 0x68,
0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x91, 0x82, 0xa5, 0x61, 0x63, 0x74, 0x6f,
0x72, 0xa9, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x31,
0x34, 0x38, 0x32, 0xaa, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xa6, 0x61,
0x63, 0x74, 0x69, 0x76, 0x65, 0xa8, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x6e, 0x75, 0x6d, 0x00, 0xae,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0xc0, 0xa8,
0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74,
0xa7, 0x73, 0x6b, 0x6a, 0x64, 0x68, 0x32, 0x34,
0xa4, 0x64, 0x61, 0x74, 0x61, 0xc0, 0xa5, 0x65,
0x72, 0x72, 0x6f, 0x72, 0x00, 0xa6, 0x65, 0x78,
0x63, 0x65, 0x70, 0x74, 0xa0, 0xa4, 0x6e, 0x61,
0x6d, 0x65, 0xa8, 0x73, 0x65, 0x6c, 0x6c, 0x69,
0x74, 0x65, 0x6d, 0xa8, 0x72, 0x65, 0x63, 0x65,
0x69, 0x76, 0x65, 0x72, 0xa5, 0x65, 0x6f, 0x73,
0x69, 0x6f, 0xa6, 0x72, 0x65, 0x74, 0x75, 0x72,
0x6e, 0xc0, 0xa5, 0x74, 0x78, 0x5f, 0x69, 0x64,
0xa0, 0xa8, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6e,
0x75, 0x6d, 0xce, 0xa3, 0x3d, 0x9b, 0xc5, 0xae,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0xd7, 0xff,
0x77, 0x35, 0x94, 0x00, 0x65, 0x4e, 0x19, 0xff,
0xac, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x73, 0x61,
0x67, 0x65, 0x5f, 0x75, 0x73, 0x17, 0xa7, 0x65,
0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x04, 0xa5,
0x65, 0x72, 0x72, 0x6f, 0x72, 0x02, 0xa6, 0x65,
0x78, 0x63, 0x65, 0x70, 0x74, 0xa9, 0x65, 0x78,
0x63, 0x65, 0x70, 0x74, 0x73, 0x74, 0x72, 0xa2,
0x69, 0x64, 0xd9, 0x40, 0x65, 0x64, 0x63, 0x30,
0x36, 0x64, 0x63, 0x65, 0x36, 0x33, 0x32, 0x30,
0x34, 0x35, 0x39, 0x66, 0x64, 0x36, 0x34, 0x34,
0x37, 0x35, 0x36, 0x39, 0x37, 0x32, 0x30, 0x34,
0x38, 0x64, 0x61, 0x34, 0x35, 0x33, 0x62, 0x32,
0x38, 0x31, 0x36, 0x62, 0x30, 0x61, 0x34, 0x33,
0x34, 0x63, 0x33, 0x37, 0x64, 0x64, 0x66, 0x66,
0x64, 0x65, 0x33, 0x36, 0x37, 0x37, 0x38, 0x64,
0x63, 0x61, 0x62, 0x33, 0xa9, 0x6e, 0x65, 0x74,
0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0xcc, 0x80,
0xaf, 0x6e, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x61,
0x67, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x64, 0x73,
0x10, 0xa9, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
0x6c, 0x65, 0x64, 0xc3, 0xa6, 0x73, 0x74, 0x61,
0x74, 0x75, 0x73, 0xa9, 0x73, 0x6f, 0x66, 0x74,
0x5f, 0x66, 0x61, 0x69, 0x6c,
0x69, 0x74, 0x65, 0x6d, 0xa7, 0x72, 0x65, 0x63,
0x65, 0x69, 0x70, 0x74, 0x87, 0xac, 0x61, 0x62,
0x69, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e,
0x63, 0x65, 0xce, 0x00, 0x48, 0xf8, 0x98, 0xaa,
0x61, 0x63, 0x74, 0x5f, 0x64, 0x69, 0x67, 0x65,
0x73, 0x74, 0xd9, 0x40, 0x36, 0x37, 0x36, 0x63,
0x35, 0x33, 0x33, 0x36, 0x64, 0x65, 0x39, 0x64,
0x35, 0x32, 0x38, 0x64, 0x34, 0x35, 0x36, 0x62,
0x30, 0x31, 0x65, 0x39, 0x37, 0x35, 0x62, 0x31,
0x30, 0x30, 0x36, 0x65, 0x32, 0x62, 0x64, 0x63,
0x38, 0x36, 0x63, 0x38, 0x64, 0x35, 0x36, 0x36,
0x33, 0x33, 0x30, 0x33, 0x32, 0x31, 0x65, 0x39,
0x62, 0x33, 0x30, 0x39, 0x62, 0x36, 0x33, 0x34,
0x66, 0x35, 0x32, 0x33, 0xad, 0x61, 0x75, 0x74,
0x68, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e,
0x63, 0x65, 0x91, 0x82, 0xa7, 0x61, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0xaa, 0x61, 0x63, 0x74,
0x6f, 0x72, 0x31, 0x32, 0x31, 0x32, 0x33, 0xa8,
0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
0xce, 0x00, 0x08, 0x5c, 0x39, 0xad, 0x63, 0x6f,
0x64, 0x65, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65,
0x6e, 0x63, 0x65, 0xce, 0x01, 0x61, 0xe8, 0x79,
0xaf, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f,
0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
0xce, 0x02, 0x12, 0xd7, 0x5d, 0xa8, 0x72, 0x65,
0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0xa5, 0x65,
0x6f, 0x73, 0x69, 0x6f, 0xad, 0x72, 0x65, 0x63,
0x76, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e,
0x63, 0x65, 0xce, 0x22, 0x81, 0x80, 0x7a, 0xa8,
0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72,
0xa5, 0x65, 0x6f, 0x73, 0x69, 0x6f, 0xa6, 0x72,
0x65, 0x74, 0x75, 0x72, 0x6e, 0xc0, 0xa5, 0x74,
0x78, 0x5f, 0x69, 0x64, 0xa0, 0x8b, 0xad, 0x61,
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x91, 0x82, 0xa5, 0x61,
0x63, 0x74, 0x6f, 0x72, 0xa9, 0x61, 0x63, 0x74,
0x6f, 0x72, 0x31, 0x34, 0x38, 0x32, 0xaa, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0xa6, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65,
0xa8, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6e, 0x75,
0x6d, 0x00, 0xae, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0xc0, 0xa8, 0x63, 0x6f, 0x6e, 0x74, 0x72,
0x61, 0x63, 0x74, 0xa7, 0x73, 0x6b, 0x6a, 0x64,
0x68, 0x32, 0x34, 0xa4, 0x64, 0x61, 0x74, 0x61,
0xc0, 0xa5, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x00,
0xa6, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0xa0,
0xa4, 0x6e, 0x61, 0x6d, 0x65, 0xa8, 0x73, 0x65,
0x6c, 0x6c, 0x69, 0x74, 0x65, 0x6d, 0xa8, 0x72,
0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0xa5,
0x65, 0x6f, 0x73, 0x69, 0x6f, 0xa6, 0x72, 0x65,
0x74, 0x75, 0x72, 0x6e, 0xc0, 0xa5, 0x74, 0x78,
0x5f, 0x69, 0x64, 0xa0, 0xa8, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x6e, 0x75, 0x6d, 0xce, 0xa3, 0x3d,
0x9b, 0xc5, 0xae, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0xd7, 0xff, 0x77, 0x35, 0x94, 0x00, 0x65,
0x4e, 0x19, 0xff, 0xac, 0x63, 0x70, 0x75, 0x5f,
0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x73,
0x17, 0xa7, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65,
0x64, 0x04, 0xa5, 0x65, 0x72, 0x72, 0x6f, 0x72,
0x02, 0xa6, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74,
0xa9, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x73,
0x74, 0x72, 0xa2, 0x69, 0x64, 0xd9, 0x40, 0x65,
0x64, 0x63, 0x30, 0x36, 0x64, 0x63, 0x65, 0x36,
0x33, 0x32, 0x30, 0x34, 0x35, 0x39, 0x66, 0x64,
0x36, 0x34, 0x34, 0x37, 0x35, 0x36, 0x39, 0x37,
0x32, 0x30, 0x34, 0x38, 0x64, 0x61, 0x34, 0x35,
0x33, 0x62, 0x32, 0x38, 0x31, 0x36, 0x62, 0x30,
0x61, 0x34, 0x33, 0x34, 0x63, 0x33, 0x37, 0x64,
0x64, 0x66, 0x66, 0x64, 0x65, 0x33, 0x36, 0x37,
0x37, 0x38, 0x64, 0x63, 0x61, 0x62, 0x33, 0xa9,
0x6e, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x61, 0x67,
0x65, 0xcc, 0x80, 0xaf, 0x6e, 0x65, 0x74, 0x5f,
0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x77, 0x6f,
0x72, 0x64, 0x73, 0x10, 0xa9, 0x73, 0x63, 0x68,
0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0xc3, 0xa6,
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0xa9, 0x73,
0x6f, 0x66, 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c,
}
assert.Equal(t, expected, data)
}