test_a_qualified_name_matching_nothing_emits_NOTHING

Tests › tests/test_ast_recovery.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE GUARD, and the reason it matters. When the call site names a class explicitly and no indexed function bears it, the callee is OUTSIDE the index — a stdlib or vendored type. Emitting nothing is what an unknown free function already does.

Given

  1. resolved: list[tuple[int, int, str]] = []
  2. fuzzy: list[tuple[int, int, str]] = []
→

When

  1. _ast_record_call_edge( 1, "size", {"size": [20, 21]}, resolved, fuzzy, "ast_member", qualified="std::vector::size", definition_of={20: "int app::Buf::size()", 21: "int app::Ring::size()"}, )
→

Then

  1. ✓ resolved equals []
  2. ✓ fuzzy equals []

tests/test_ast_recovery.py:183 · its file's page

What it checks (1)

  1. assert resolved == [] and fuzzy == [], ( "a qualified name matching nothing indexed must emit NOTHING, never fall back" ) 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_qualified_name_matching_nothing_emits_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_qualified_name_matching_nothing_emits_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.