test_two_spellings_of_one_class_are_one_owner¶
Tests › tests/test_receiver_resolution.py
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
classes = {"engine": {"entropic::AgentEngine", "AgentEngine"}}
When
survivors, verified = _narrow_by_receiver("engine", 1, ALL, classes, SCOPE_OF, ARGC_OF)
Then
- ✓ verified holds
- ✓ set(survivors) equals {ENGINE_A, ENGINE_B}
tests/test_receiver_resolution.py:105 · its file's page
What it checks (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_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