test_a_matching_receiver_resolves_rather_than_refusing

Tests › tests/test_unresolved_inbound.py

passed Passed in the packaged run.

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

  1. resolved: list[tuple[int, int, str]] = []
  2. unresolved: list[list[int]] = []
→

When

  1. _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

  1. ✓ resolved equals [(1, 620, SOURCE_AST_MEMBER)]
  2. ✓ unresolved equals []

tests/test_unresolved_inbound.py:412 · its file's page

What it checks (2)

  1. assert resolved == [(1, 620, SOURCE_AST_MEMBER)], ( "a dot-separated Python scope must match its bare class name" ) not attributed
  2. assert 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_edge

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.

test_a_matching_receiver_resolves_rather_than_refusing · 2 checks_ast_record_call_edge_narrow_by_receiver_one_classallREQ-DDB-WIKI-054 · inferred
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.