test_a_receiver_owned_by_several_classes_refuses¶
Tests › tests/test_receiver_resolution.py
What this test is for
Why it exists
RULE 1, the fan-out. When the method exists on more than one of the receiver's possible classes, nothing here distinguishes them — `parse_tool_calls` on entropic exists on five — so the narrowing must report NOT verified and let the caller emit nothing. Returning the survivors as though they were verified is how 56 groups came to span several classes.
Given
scope_of = {1: "ClassA", 2: "ClassB"}classes = {"parser": {"ClassA", "ClassB"}}
When
survivors, verified = _narrow_by_receiver("parser", 0, [1, 2], classes, scope_of, {})
Then
- ✓ verified is false
- ✓ survivors equals [1, 2]
tests/test_receiver_resolution.py:197 · its file's page
What it checks (2)
assert not verified, ( "two of the receiver's classes own this method, so the class is not pinned and no edge " "may be asserted" )not attributedassert survivors == [1, 2], "an unverified narrowing must leave the candidates untouched"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_receiver_owned_by_several_classes_refuses→_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