test_a_relative_qualifier_does_not_match_a_LONGER_identifier¶
Tests › tests/test_ast_recovery.py
What this test is for
Why it exists
The boundary rule's real job. `Owner::run` must not match `CoOwner::run` — the ':' tolerance that enables relative lookup must not extend to a partial identifier, or the resolution would be worse than the fan-out it replaces: confidently wrong instead of honestly ambiguous.
Given
resolved: list[tuple[int, int, str]] = []fuzzy: list[tuple[int, int, str]] = []
When
_ast_record_call_edge( 1, "run", {"run": [50]}, resolved, fuzzy, "ast_member", qualified="Owner::run", definition_of={50: "void net::CoOwner::run()"}, )
Then
- ✓ resolved equals []
- ✓ fuzzy equals []
tests/test_ast_recovery.py:284 · its file's page
What it checks (1)
assert resolved == [] and fuzzy == [], "CoOwner::run must NOT satisfy Owner::run"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_relative_qualifier_does_not_match_a_LONGER_identifier→_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