test_the_same_bare_name_in_two_namespaces_still_refuses

Tests › tests/test_receiver_resolution.py

passed Passed in the packaged run.

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

  1. scope_of = {1: "a::Session", 2: "b::Session"}
  2. classes = {"session": {"a::Session", "b::Session"}}
→

When

  1. survivors, verified = _narrow_by_receiver("session", 0, [1, 2], classes, scope_of, {})
→

Then

  1. ✓ verified is false
  2. ✓ survivors equals [1, 2]

tests/test_receiver_resolution.py:170 · its file's page

What it checks (2)

  1. assert not verified, ( "two namespaces owning the same bare class name is a genuine ambiguity, not a spelling" ) not attributed
  2. assert 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_receiver

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_the_same_bare_name_in_two_namespaces_still_refuses · 2 checks_narrow_by_receiver_one_classallREQ-DDB-WIKI-054 · inferred
Also reaches 1 requirement

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