test_an_absent_thread_layer_says_so¶
Tests › tests/test_roster_origin_split.py
What this test is for
Why it exists
An absent table is a fact about the BUILD and never evidence about the code — and a caller that cannot tell the two apart reports a threadless codebase and a pre-layer index identically.
Given
db = tmp_path / "bare.db"conn = sqlite3.connect(str(db))
3 more
conn.executescript("CREATE TABLE path (name TEXT);")conn.commit()conn.close()
When
inv = q.thread_roster(db)
Then
- ✓ inv.threads equals ()
- ✓ inv.row_meaning contains "predates the thread layer"
- ✓ inv.row_meaning contains "NOT evidence"
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
clew — `main` (clew/cli.py) · 2 of 400 steps
… 361 earlier steps
… 33 later steps
1 more
- `main` (scripts/export_parity.py) · 2 of 203 steps
tests/test_roster_origin_split.py:571 · its file's page
What it checks (3)
assert inv.threads == ()observesthread_rosterviainvassert "predates the thread layer" in inv.row_meaningobservesthread_rosterviainvassert "NOT evidence" in inv.row_meaningobservesthread_rosterviainv
Where the product reaches it
main→query_main→_payload→export_search→corpus_payload→thread_roster(flow)
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-011 measured