test_an_absent_thread_layer_says_so

Tests › tests/test_roster_origin_split.py

passed Passed in the packaged run.

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

  1. db = tmp_path / "bare.db"
  2. conn = sqlite3.connect(str(db))
3 more
  1. conn.executescript("CREATE TABLE path (name TEXT);")
  2. conn.commit()
  3. conn.close()
→

When

  1. inv = q.thread_roster(db)
→

Then

  1. ✓ inv.threads equals ()
  2. ✓ inv.row_meaning contains "predates the thread layer"
  3. ✓ 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

command-line usercommand-line usercommand-line usercommand-line userclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesmain362. corpus_payload → one362one363. corpus_payload → thread_roster363thread_roster364. thread_roster → connect364connect▶ test enters365. thread_roster → table_exists365table_exists366. thread_roster → has_columns366has_columns367. thread_roster → _thread_columns367_thread_columns

… 33 later steps

1 more

tests/test_roster_origin_split.py:571 · its file's page

What it checks (3)

  1. assert inv.threads == () observes thread_roster via inv
  2. assert "predates the thread layer" in inv.row_meaning observes thread_roster via inv
  3. assert "NOT evidence" in inv.row_meaning observes thread_roster via inv

Where the product reaches it

  • main → query_main → _payload → export_search → corpus_payload → thread_roster (flow)

Call flow

test_an_absent_thread_layer_says_so→thread_roster

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.

test_an_absent_thread_layer_says_so · 3 checksthread_rosterREQ-DDB-QUERY-001 · measuredthread_rostertable_existsREQ-DDB-QUERY-003 · measuredthread_rosterREQ-DDB-QUERY-011 · measured
Also reaches 3 requirements

Its run touches their code; that is reach, not proof.