test_a_callee_outside_the_index_records_nothing

Tests › tests/test_unresolved_inbound.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE OTHER CONTROL, and the one that keeps the measurement attributable. A call to `std::to_string` has no candidate row, so there is no indexed function whose `callers` could be understated — the callee is simply not in the corpus. Counting it would produce a number attached to nothing, and on entropic 299 of 662 qualified sites are that shape.

Given

  1. unresolved: list[list[int]] = []
→

When

  1. _ast_record_call_edge(1, "to_string", {}, [], [], SOURCE_AST_MEMBER, unresolved=unresolved)
→

Then

  1. ✓ unresolved equals []

tests/test_unresolved_inbound.py:92 · its file's page

What it checks (1)

  1. assert unresolved == [] 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_callee_outside_the_index_records_nothing→_ast_record_call_edge

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_callee_outside_the_index_records_nothing · 1 checks_ast_record_call_edge_narrow_by_receiver_one_classallREQ-DDB-WIKI-054 · inferred
Also reaches 1 requirement

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