test_a_receiver_owned_by_several_classes_refuses

Tests › tests/test_receiver_resolution.py

passed Passed in the packaged run.

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

  1. scope_of = {1: "ClassA", 2: "ClassB"}
  2. classes = {"parser": {"ClassA", "ClassB"}}
→

When

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

Then

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

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

What it checks (2)

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