test_a_qualified_name_matching_nothing_emits_NOTHING¶
Tests › tests/test_ast_recovery.py
What this test is for
Why it exists
THE GUARD, and the reason it matters. When the call site names a class explicitly and no indexed function bears it, the callee is OUTSIDE the index — a stdlib or vendored type. Emitting nothing is what an unknown free function already does.
Given
resolved: list[tuple[int, int, str]] = []fuzzy: list[tuple[int, int, str]] = []
When
_ast_record_call_edge( 1, "size", {"size": [20, 21]}, resolved, fuzzy, "ast_member", qualified="std::vector::size", definition_of={20: "int app::Buf::size()", 21: "int app::Ring::size()"}, )
Then
- ✓ resolved equals []
- ✓ fuzzy equals []
tests/test_ast_recovery.py:183 · its file's page
What it checks (1)
assert resolved == [] and fuzzy == [], ( "a qualified name matching nothing indexed must emit NOTHING, never fall back" )not attributed
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
test_a_qualified_name_matching_nothing_emits_NOTHING→_ast_record_call_edgeWhat 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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-054 inferred