test_a_matching_receiver_resolves_rather_than_refusing¶
Tests › tests/test_unresolved_inbound.py
What this test is for
Why it exists
WHY THE CONTROL ABOVE HAD TO CHANGE SHAPE, pinned so the reasoning is not lost. This also caught a real defect: `_scope_is` understood `::` only, so a Python scope (`clew.indexcache.IndexCache`) matched nothing and every Python receiver read as a CONTRADICTION. gh#21's receiver half was inert for the same reason — its measured gain came entirely from the `self.` qualifier path.
Given
resolved: list[tuple[int, int, str]] = []unresolved: list[list[int]] = []
When
_ast_record_call_edge( 1, "close", {"close": [620]}, resolved, [], SOURCE_AST_MEMBER, receiver="cache", receiver_types={"cache": {"IndexCache"}}, scope_of={620: "clew.indexcache.IndexCache"}, unresolved=unresolved, )
Then
- ✓ resolved equals [(1, 620, SOURCE_AST_MEMBER)]
- ✓ unresolved equals []
tests/test_unresolved_inbound.py:412 · its file's page
What it checks (2)
assert resolved == [(1, 620, SOURCE_AST_MEMBER)], ( "a dot-separated Python scope must match its bare class name" )not attributedassert unresolved == [], "a resolved call is not a refusal"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_matching_receiver_resolves_rather_than_refusing→_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