test_the_intersection_pins_the_class_a_name_alone_cannot¶
Tests › tests/test_receiver_resolution.py
What this test is for
Why it exists
RULE 2 WAS TOO STRICT AND THIS IS THE CASE THAT PROVES IT. `engine` is declared in four classes on entropic, so refusing on an ambiguous receiver name refuses the very call this feature exists for. Only ONE of those classes declares `run_turn`, so the PAIR pins it where neither half does alone.
Given
classes = {"engine": {"entropic::AgentEngine", "AgentEngine", "EntropicEngine", "ChessEngine"}}
When
survivors, verified = _narrow_by_receiver("engine", 1, ALL, classes, SCOPE_OF, ARGC_OF)
Then
- ✓ verified holds
- ✓ set(survivors) equals {ENGINE_A, ENGINE_B}
tests/test_receiver_resolution.py:81 · its file's page
What it checks (2)
assert verified, "the receiver's type identified the owning class and should count as such"not attributedassert set(survivors) == {ENGINE_A, ENGINE_B}, ( f"the two file-local helpers must be ELIMINATED, not merely deprioritised — the " f"receiver's declared type says they cannot be the target. Got {survivors}" )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_the_intersection_pins_the_class_a_name_alone_cannot→_narrow_by_receiverWhat 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