test_search_prose_single_token_miss_reports_no_widening¶
Tests › tests/test_query.py
What this test is for
Why it exists
A one-word query has no conjunction to relax, so a miss is a genuine absence and must NOT be dressed up as a widened search. This is the case where "definitive" is the honest word — the distinction the emptiness note depends on.
Verifies REQ-DDB-QUERY-002
Given
- —
When
result = q.search_prose_graded(rich_db, "zzqqxwv")
Then
- ✓ result.hits equals []
- ✓ result.widened is False
- ✓ result.tokens equals ("zzqqxwv",)
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) · 9 of 400 steps
… 215 earlier steps
… 73 steps between
… 93 later steps
2 more
- `main` (scripts/export_parity.py) · 9 of 203 steps
- Look up one name: everything the index holds about it · 1 of 226 steps
tests/test_query.py:955 · its file's page
What it checks (3)
assert result.hits == []observessearch_prose_gradedviaresultassert result.widened is Falseobservessearch_prose_gradedviaresultassert result.tokens == ("zzqqxwv",)observessearch_prose_gradedviaresult
Where the product reaches it
main→query_main→_payload→export_search→corpus_payload→_prose_corpus→search_prose_graded(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-QUERY-002 | catalog | unknown |
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-007 measured