test_arity_separates_overloads_when_it_can¶
Tests › tests/test_receiver_resolution.py
What this test is for
Why it exists
Arity is the second narrowing, applied only after the class is pinned. On entropic it cannot help — both `run_turn` overloads take one argument — which is why the overload set is emitted as FUZZY rather than resolved. Where arities differ it does resolve, and that is worth pinning so the term is not quietly dropped as useless.
Given
classes = {"engine": {"entropic::AgentEngine"}}argc_of = {ENGINE_A: 1, ENGINE_B: 2, HELPER_A: 4, HELPER_B: 4}
When
survivors, verified = _narrow_by_receiver("engine", 2, ALL, classes, SCOPE_OF, argc_of)
Then
- ✓ verified holds
- ✓ survivors equals [ENGINE_B]
tests/test_receiver_resolution.py:241 · its file's page
What it checks (1)
assert verified and survivors == [ENGINE_B], ( f"a call passing two arguments must select the two-parameter overload: {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_arity_separates_overloads_when_it_can→_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