test_the_same_bare_name_in_two_namespaces_still_refuses¶
Tests › tests/test_receiver_resolution.py
What this test is for
Why it exists
THE CONTROL for the test above, and the line the collapse must not cross. Widening "one class, two spellings" into "any two scopes sharing a tail" would re-admit exactly the fan-out rule 1 removed: `a::Session` and `b::Session` are DIFFERENT classes that happen to end in the same word, and nothing here can say which one a bare receiver denotes.
Given
scope_of = {1: "a::Session", 2: "b::Session"}classes = {"session": {"a::Session", "b::Session"}}
When
survivors, verified = _narrow_by_receiver("session", 0, [1, 2], classes, scope_of, {})
Then
- ✓ verified is false
- ✓ survivors equals [1, 2]
tests/test_receiver_resolution.py:170 · its file's page
What it checks (2)
assert not verified, ( "two namespaces owning the same bare class name is a genuine ambiguity, not a spelling" )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_the_same_bare_name_in_two_namespaces_still_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