==> tests/gold_frame.h <==1/* Generated by the Rust (jobs.rs Frame::encode, Frame::decode): the wire bytes of the eleven frames of
2 * the Rust test `ops_frames_and_the_merge`, and what decode says about bad bodies (type, body, answer). */
3static const char *const GOLD_FRAMES[] = {
4 "154600000003000000000000000100000001000000700200000008000000010000000400000000000000010000000100000001000000700100000001000000000000000500000000000000",
5 "168b01000003000000000000000100000004000000000000000200000000000000000000000179000000696420343239343936373239372070726f6772616d2070206f7020323534206974656d7320302d3130207072696f72697479203020617474656d707473203320646561646c696e652030206d6f646520636f6c6c65637420736574757020363a30207375626d69747465642035206d656d626572732030783503010000000100000003000000000000000700000000000000020000000900000003000000010203010707070707070707070707070707070707070707070707070707070707070707002400000b0000000401000000010000000400000000000000060000000000000008000000000000000100000005010000000100000009000000000000000300000004000000626f6f6d06010000000100000002000000000000000100000007010000000100000004000000000000000801000000010000004d000000000000000100000002010000000100000001000000780b01000000010000000200000001000000",
6 "168b01000003000000000000000200000004000000000000000200000000000000070000000179000000696420343239343936373239372070726f6772616d2070206f7020323534206974656d7320302d3130207072696f72697479203020617474656d707473203320646561646c696e652030206d6f646520636f6c6c65637420736574757020363a30207375626d69747465642035206d656d626572732030783503010000000100000003000000000000000700000000000000020000000900000003000000010203010707070707070707070707070707070707070707070707070707070707070707002400000b0000000401000000010000000400000000000000060000000000000008000000000000000100000005010000000100000009000000000000000300000004000000626f6f6d06010000000100000002000000000000000100000007010000000100000004000000000000000801000000010000004d000000000000000100000002010000000100000001000000780b01000000010000000200000001000000",
7 "17140000000300000000000000040000000000000001000000",
8 "18080000000300000000000000",
9 "198b01000003000000000000000200000002000000090000000000000004000000000000000179000000696420343239343936373239372070726f6772616d2070206f7020323534206974656d7320302d3130207072696f72697479203020617474656d707473203320646561646c696e652030206d6f646520636f6c6c65637420736574757020363a30207375626d69747465642035206d656d626572732030783503010000000100000003000000000000000700000000000000020000000900000003000000010203010707070707070707070707070707070707070707070707070707070707070707002400000b0000000401000000010000000400000000000000060000000000000008000000000000000100000005010000000100000009000000000000000300000004000000626f6f6d06010000000100000002000000000000000100000007010000000100000004000000000000000801000000010000004d000000000000000100000002010000000100000001000000780b01000000010000000200000001000000",
10 "194d0000000300000000000000040000000300000000000000000000000000000000000000010000000400000000000000010000000100000001000000700100000001000000000000000500000000000000",
11 "164d00000003000000000000000200000001000000000000000000000000000000000000000a0100000001000000090000000000000002000000010000000400000000000000020000000500000000000000",
12 "1a590000000300000000000000050000000000000001000000010000000100000070fe0000000200000006000000000000000300000020000000020000000100000000000000040000000000000009000000000000000a00000000000000",
13 "1b18000000030000000000000005000000000000000200000000000000",
14 "1c81000000030000000000000002000000050000000000000001000000010000000100000000000000010000000000000003000000776879000500000000000000010000000100000002000000000000000000000003000000000000000107070707070707070707070707070707070707070707070707070707070707070900000005000000",
15};
16static const struct { unsigned ty; const char *hex, *answer; } GOLD_BAD[] = {
17 {25, "0300000000000000090000000000000000000000000000000000000000000000", "F_JOB_HAVE kind 9?"},
18 {99, "0300000000000000", "job frame type 99?"},
19 {24, "030000000000000000", "job frame type 24: 1 trailing bytes"},
20 {23, "0300000000000000", "job frame: short (0 of 8 bytes at 8)"},
21 {27, "0102", "job frame: short (2 of 8 bytes at 0)"},
22};