test_two_spellings_of_one_class_are_one_owner

Tests › tests/test_receiver_resolution.py

passed Passed in the packaged run.

What this test is for

Why it exists

RULE 3. `std::unique_ptr< entropic::AgentEngine >` and `AgentEngine *` are the same class; the index holds ONE scope for it. Counting type spellings saw two owners and refused, which is why the fix counts distinct SCOPES instead.

Given

  1. classes = {"engine": {"entropic::AgentEngine", "AgentEngine"}}
→

When

  1. survivors, verified = _narrow_by_receiver("engine", 1, ALL, classes, SCOPE_OF, ARGC_OF)
→

Then

  1. ✓ verified holds
  2. ✓ set(survivors) equals {ENGINE_A, ENGINE_B}

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

What it checks (1)

  1. assert verified and set(survivors) == {ENGINE_A, ENGINE_B}, ( f"two spellings of one class were treated as two owners: verified={verified} " f"survivors={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_two_spellings_of_one_class_are_one_owner→_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_two_spellings_of_one_class_are_one_owner · 1 checks_narrow_by_receiver_one_classallREQ-DDB-WIKI-054 · inferred
Also reaches 1 requirement

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