diff --git a/tests/sql_register_landed/T217 b/tests/sql_register_landed/T217 new file mode 100644 index 00000000..e69de29b diff --git a/tests/sql_register_landed/T235 b/tests/sql_register_landed/T235 new file mode 100644 index 00000000..e69de29b diff --git a/tests/sql_register_landed/T259 b/tests/sql_register_landed/T259 new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_sql_register_readers.py b/tests/test_sql_register_readers.py new file mode 100644 index 00000000..1e35551c --- /dev/null +++ b/tests/test_sql_register_readers.py @@ -0,0 +1,4199 @@ +# SPDX-License-Identifier: Apache-2.0 +"""TEST C5: THE SQL REGISTER'S READERS (feature 007, T217, L2-N4; the test +plan's AT-C5; R29; FR-033, FR-034, FR-036, FR-059). + +This module supersedes lane 5's seed of the same name (T502 part 1, +`refs/l5/T502`), and keeps its one test, `lanes --decide`, by name. + +WHAT IT HOLDS, by its five sources: + + * AT-C5's sixteen (the test plan, "The readers' table, the one-call + failure, and the callers' default arms"): each reader by the design's + S3 table with the store unreachable; each mirror read's `read: mirror` + line; the `none` arms; the read door's classification, a hygiene test; + the callers that act on a listing; one failed call anywhere in a caller's + read sequence; `lane-start`'s seven read arms at 75 and 3, and at 69; the + other callers' arms (lane 4's table, "The callers' default arms (Q9)"); + the writer's printed rerun relayed on a 3; an expectation's 2 at + `lane-start`'s last write, under a seq base, with its twin under an + `@files` base, a note, a stamp and a launch (ERR-56; lane 3, #165 + 6871338814), and ERR-56's second case, an `@files` base whose re-read + answers a seq base, which dies (lane 4, #165 6879449852), and its + row-making 2, a new lane's under an `@files` base, which dies too (lane + 4, #165 6880188792); + `register-row-local`; `lane-worktrees`' reads; `--index` on + primary; and `managed-projection`. + * Lane 1's three (L1v4.5's T113 and T114): `guard_second_read_at`, + `log_key_hex_slot` and `journal_last_pickaxe`, each `lanes-index`'s own, + on a real engine. + * Lane 5's nine (A5; T504 to T506 and T509), their guessed names kept. + * Lane 4's two read verbs (R29; GB section 4.3; T401), `register-text` and + `register-grep`, with T401's two exit-2 cases each (O21a), and + `register-grep`'s one snapshot and quoted names on primary (lane 3's Q2 + and Q3, #165 6851977580). + * Lane 4's `key()` trim (T259; R31; GB section 4.3; T426): the one test that + asks `retired-identity` about spellings that differ only past the + sixteenth digit, in files mode and on primary. + * Lane 2's T235 (F13b's proposed task, for lane 3 to place; lane 5's + choice (b), #165 6778955065): on primary, T505's three read sites, + `known_lanes`, `remote_log_events` and `worktree_rows`, read the store and + never git, by the fake `git`'s argv log, on a real engine; and its + moved-head ids, T505's two reruns where the head moves under a read, on + the stub door (lane 5's proposal, #165 6860943489; lane 3, 6861148117). + +THE ARMS' IDS ARE THEIR LINES AT `2a057a6d`, as the test plan names them (the +block, T217), so they move with slices 1a and 1b and are re-cited at each +landing. `test_the_other_callers_arms_pass_the_code_or_refuse_as_lane_4s_ +table_gives` names each arm's script first (lane 4's question 2, #165 +6752694348), `