test_arity_separates_overloads_when_it_can

Tests › tests/test_receiver_resolution.py

passed Passed in the packaged run.

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

  1. classes = {"engine": {"entropic::AgentEngine"}}
  2. argc_of = {ENGINE_A: 1, ENGINE_B: 2, HELPER_A: 4, HELPER_B: 4}
→

When

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

Then

  1. ✓ verified holds
  2. ✓ survivors equals [ENGINE_B]

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

What it checks (1)

  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_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_arity_separates_overloads_when_it_can · 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.