test_an_index_without_the_table_still_serves_gates¶
Tests › tests/test_config_defaults.py
What this test is for
Why it exists
THE TABLE IS NEW, SO EVERY INDEX IN EXISTENCE LACKS IT. A reader of an older index must get its gates with an empty default rather than an exception — the same tolerance every other column-added layer here carries.
Verifies REQ-DDB-PIPE-015
Given
conn = _gate_db(tmp_path, "old.db", None)
When
gates, _ = gates_covering(conn, "src/platform.h", 20)conn.close()
Then
- ✓ len(gates) equals 1
- ✓ gates[0].default_state equals ""
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.
Look up one name: everything the index holds about it · 8 of 226 steps
… 17 earlier steps
… 38 steps between
… 155 later steps
2 more
- clew — `main` (clew/cli.py) · 4 of 400 steps
- `main` (scripts/export_parity.py) · 4 of 203 steps
tests/test_config_defaults.py:391 · its file's page
What it checks (1)
assert len(gates) == 1 and gates[0].default_state == ""not attributed
Where the product reaches it
dossier→subject_payload→_flatten_subject→_gate_definitions→macro_definitions→macro_definitions_conn→_macro_def→gates_covering(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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-015 | catalog | 1 of 4: ensure_config_defaults_table |
Also reaches 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-004 inferred
- REQ-DDB-QUERY-006 measured
- REQ-DDB-QUERY-013 inferred