skip to content
==> tests/gold_log.h <==
1/* Generated by the Rust (jobs.rs Log, Replica, replay): random record sequences and the replica they
2 * replay to (its compacted log's hash, lid, commit point, pending, last); the Rust test's log; replay's
3 * answers to corrupt records. */
4static const char *const GOLD_SEQ[] = {
5    "3 40 d9c5dd093a54d224 68 lid 30000000001 commit 10000000000,2 pending 1 last 7",
6    "3 80 407f44d4eb9dd3ab 391 lid 30000000001 commit 30000000001,3 pending 6 last 0",
7    "3 120 7b10870fdc5a7d2c 68 lid 30000000002 commit 10000000001,0 pending 1 last 0",
8    "3 160 e7483905a448e413 42 lid 30000000002 commit 30000000000,5 pending 0 last 0",
9    "3 200 704f813aad4228b9 190 lid 30000000002 commit 30000000000,0 pending 1 last 0",
10    "3 240 3e6c81019a3ddd72 94 lid 30000000002 commit 30000000000,3 pending 2 last 2",
11    "3 280 092f85dce7c2d68a 773 lid 30000000002 commit 10000000002,0 pending 10 last 0",
12    "3 320 1221620af459a1b1 199 lid 30000000002 commit 20000000001,0 pending 3 last 0",
13    "3 360 b06911e8ccd72ea8 330 lid 30000000002 commit 10000000002,0 pending 5 last 4",
14    "3 400 5282abc041ebb079 400 lid 30000000002 commit 20000000001,1 pending 4 last 0",
15    "3 replay 400 24145 04c3dc03ab168039",
16    "5 40 b2017228860f8533 323 lid 30000000002 commit 30000000000,3 pending 2 last 0",
17    "5 80 c198ed8adcfc96ab 189 lid 30000000002 commit 30000000000,4 pending 2 last 0",
18    "5 120 2c9342589c94d21f 94 lid 30000000002 commit 30000000000,5 pending 2 last 0",
19    "5 160 681880242d7283bd 68 lid 30000000002 commit 20000000000,5 pending 1 last 0",
20    "5 200 5e9cf673907d309d 68 lid 30000000002 commit 10000000001,3 pending 1 last 7",
21    "5 240 41868ae8b066e889 162 lid 30000000002 commit 30000000001,3 pending 3 last 0",
22    "5 280 2fd9933c7c150361 730 lid 30000000002 commit 30000000002,0 pending 6 last 2",
23    "5 320 589998504fb67931 308 lid 30000000002 commit 30000000000,5 pending 3 last 0",
24    "5 360 422a503efea996f8 197 lid 30000000002 commit 20000000001,5 pending 1 last 1",
25    "5 400 cb96b1f21c6c0366 216 lid 30000000002 commit 10000000002,1 pending 2 last 0",
26    "5 replay 400 23172 3437d0a5e15f7d87",
27    "11 40 41dc230e5a2b4efd 193 lid 30000000002 commit 20000000002,3 pending 1 last 0",
28    "11 80 0729e294b8b95c8e 292 lid 30000000002 commit 10000000000,4 pending 2 last 0",
29    "11 120 973266932d336150 146 lid 30000000002 commit 10000000000,4 pending 1 last 0",
30    "11 160 115b854965fbd3a7 381 lid 30000000002 commit 30000000002,0 pending 5 last 0",
31    "11 200 966d457beffc196e 272 lid 30000000002 commit 20000000000,1 pending 3 last 0",
32    "11 240 c92b1b116eaee8d5 385 lid 30000000002 commit 20000000000,0 pending 3 last 0",
33    "11 280 8f9dc1e6daef377f 409 lid 30000000002 commit 30000000000,5 pending 3 last 4",
34    "11 320 8a30a244c48a29cd 94 lid 30000000002 commit 30000000001,6 pending 2 last 0",
35    "11 360 db53e33c99ac6b75 68 lid 30000000002 commit 20000000001,2 pending 1 last 0",
36    "11 400 7c6aa034c6b9d720 68 lid 30000000002 commit 30000000002,5 pending 1 last 0",
37    "11 replay 400 22715 53925624c6234d69",
38    "99 40 9b0f2fe6858ae616 464 lid 30000000002 commit 20000000000,4 pending 7 last 7",
39    "99 80 eca09f001394327c 374 lid 30000000002 commit 10000000000,5 pending 4 last 6",
40    "99 120 1b98de8277423645 216 lid 30000000002 commit 10000000001,0 pending 2 last 6",
41    "99 160 7cb4c489cc549940 719 lid 30000000002 commit 10000000002,1 pending 10 last 6",
42    "99 200 f515759f307e81b2 42 lid 30000000002 commit 20000000002,1 pending 0 last 0",
43    "99 240 e350286323da40c1 409 lid 30000000002 commit 10000000001,4 pending 2 last 7",
44    "99 280 e7483905a448e413 42 lid 30000000002 commit 30000000000,5 pending 0 last 0",
45    "99 320 4fb083e4019a6c31 190 lid 30000000002 commit 30000000001,5 pending 1 last 0",
46    "99 360 20bb584298a0d2a2 42 lid 30000000002 commit 10000000000,2 pending 0 last 0",
47    "99 400 5e59eb0caa7a7209 480 lid 30000000002 commit 20000000002,0 pending 5 last 5",
48    "99 replay 400 24070 bdd1f01e67010407",
49};
50static const char *const GOLD_TESTLOG = "010800000000000000000000000001000002b600000000000000000000000001000003000000000000000178000000696420343239343936373239372070726f6772616d2070206f7020323534206974656d7320302d323030207072696f72697479203020617474656d707473203320646561646c696e652030206d6f646520636f6c6c656374207365747570202d207375626d69747465642035206d656d62657273203078300301000000010000000100000000000000010000000000000002000000090000000300000001020300033a0000000000000000000000000100000400000000000000000301000000010000000700000000000000030000000000000002000000090000000300000001020300033a000000000000000000000000010000050000000000000000030100000001000000060000000000000003000000000000000200000009000000030000000102030004100000000000000000000000000100000400000000000000";
51static const char *const GOLD_BAD[][2] = {
52    {"0108000000000000000000000000010000030100000000000000ff", "job frame: short (1 of 8 bytes at 0) (record 1 at byte 17)"},
53    {"0108000000000000000000000000010000090000000000000000", "job log: record kind 9? (record 1 at byte 17)"},
54    {"0108000000000000000000000000010000010900000000000000000000000000000000", "job log: record kind 1: 1 trailing bytes (record 1 at byte 17)"},
55};