test_neighbour_lists_narrow_to_the_selected_identity¶
Tests › tests/test_disambiguation.py
What this test is for
Why it exists
The selector has to reach `identity_rowids`, not merely the identity lookup, or a disambiguated dossier would describe one function and list another's edges — which is the gh#26 defect gh#37 must not reintroduce in a new place.
Given
- —
When
q.callers(shared_name_db, "harvest", BASE_QUALIFIED)q.callers(shared_name_db, "harvest", A_QUALIFIED)q.callers(shared_name_db, "harvest", B_QUALIFIED)
Then
- ✓ {e.name for e in q.callers(shared_name_db, "harvest", BASE_QUALIFIED)} equals { "run_base", "run_decl", }
- ✓ {e.name for e in q.callers(shared_name_db, "harvest", A_QUALIFIED)} equals {"run_a"}
- ✓ {e.name for e in q.callers(shared_name_db, "harvest", B_QUALIFIED)} equals {"run_b"}
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 · 11 of 226 steps
… 17 earlier steps
… 23 steps between
… 81 steps between
… 37 steps between
… 15 steps between
… 21 later steps
3 more
- Build this wiki from the index · 8 of 400 steps
- clew — `main` (clew/cli.py) · 1 of 400 steps
- `main` (scripts/export_parity.py) · 1 of 203 steps
tests/test_disambiguation.py:261 · its file's page
What it checks (3)
assert {e.name for e in q.callers(shared_name_db, "harvest", BASE_QUALIFIED)} == { "run_base", "run_decl", }observescallersassert {e.name for e in q.callers(shared_name_db, "harvest", A_QUALIFIED)} == {"run_a"}observescallersassert {e.name for e in q.callers(shared_name_db, "harvest", B_QUALIFIED)} == {"run_b"}observescallers
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
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 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-009 measured
- REQ-DDB-QUERY-010 measured