test_the_hinted_form_is_one_the_selector_accepts¶
Tests › tests/test_recovery_hint.py
What this test is for
Why it exists
**THE SEAM THAT ALREADY FAILED ONCE.** The served parameter text used to advertise `signature` while the accessor took `qualified`, so obeying the documentation guaranteed a miss. A hint is documentation generated at runtime and can fail the same way, so this asserts the round trip rather than the wording: the string the hint names must select the row.
Given
- —
When
hint = recovery_hint(index, "execute")named = next(part.strip("'\"") for part in hint.split() if QUALIFIED in part).strip("'\",.`")cands = [(10, f"void {QUALIFIED}")]
2 more
qualified_name_of("execute", f"void {QUALIFIED}")matching_identity("execute", cands, named)
Then
- ✓ qualified_name_of("execute", f"void {QUALIFIED}") equals named
- ✓ matching_identity("execute", cands, named) holds
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 · 14 of 226 steps
… 6 earlier steps
… 23 steps between
… 169 later steps
1 more
- Build this wiki from the index · 3 of 400 steps
tests/test_recovery_hint.py:120 · its file's page
What it checks (2)
assert qualified_name_of("execute", f"void {QUALIFIED}") == named, ( f"the hint named {named!r}, which is not what qualified_name_of derives" )observesqualified_name_ofassert matching_identity("execute", cands, named), ( f"the hint named {named!r}, which the selector does not accept — the same seam that " f"shipped broken in the served parameter text" )observesmatching_identity
Where the product reaches it
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-010 measured
- REQ-DDB-QUERY-013 measured