test_nothing_is_suggested_when_there_is_no_neighbour¶
Tests › tests/test_recovery_hint.py
What this test is for
Why it exists
**29 OF THE 121 BARE-NAME MISSES GENUINELY HAVE NO NEIGHBOUR.** A fabricated suggestion there would make every real hint suspect, because a reader cannot tell a lookup from a guess. `run` is the sharpest case: it IS in the index, bare and unqualified, so there is no other spelling to offer and the hint must stay silent rather than invent one.
Given
- —
When
recovery_hint(index, subject)
Then
- ✓ recovery_hint(index, subject) 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 · 16 of 226 steps
… 6 earlier steps
… 200 later steps
2 more
- clew — `main` (clew/cli.py) · 1 of 400 steps
- `main` (scripts/export_parity.py) · 1 of 203 steps
tests/test_recovery_hint.py:264 · its file's page
What it checks (1)
assert recovery_hint(index, subject) == "", f"a hint was invented for {subject!r}"observesrecovery_hint
Where the product reaches it
dossier→_batched_dossiers→batch_payload→recovery_hint(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-013 measured