test_an_unindexed_name_resolves_to_nothing¶
Tests › tests/test_subject_surface.py
What this test is for
Why it exists
The negative half. A classifier that returned a kind for every string would make `dossier` answer confidently about names the index has never seen.
Given
- —
When
q.resolve_subject(rich_db, "no_such_symbol_anywhere_xyz")
Then
- ✓ q.resolve_subject(rich_db, "no_such_symbol_anywhere_xyz") 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
… 23 steps between
… 4 steps between
… 86 steps between
… 72 later steps
3 more
- Build this wiki from the index · 4 of 400 steps
- clew — `main` (clew/cli.py) · 1 of 400 steps
- `main` (scripts/export_parity.py) · 1 of 203 steps
tests/test_subject_surface.py:129 · its file's page
What it checks (1)
assert q.resolve_subject(rich_db, "no_such_symbol_anywhere_xyz") == ()observesresolve_subject
Where the product reaches it
dossier→resolve_subject(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 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-004 measured
- REQ-DDB-QUERY-010 measured
- REQ-DDB-QUERY-012 measured