test_a_resolved_call_records_nothing

Tests › tests/test_unresolved_inbound.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE CONTROL. A call that resolves is not an unresolved one, and counting it would inflate the measurement until every symbol looked doubtful — which is the blanket hedge this design exists to avoid.

Given

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

When

  1. _ast_record_call_edge( 1, "free_fn", {"free_fn": [7]}, resolved, [], SOURCE_AST, unresolved=unresolved )
→

Then

  1. ✓ resolved equals [(1, 7, SOURCE_AST)]
  2. ✓ unresolved equals []

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

What it checks (2)

  1. assert resolved == [(1, 7, SOURCE_AST)] not attributed
  2. assert unresolved == [], "a resolved call is not evidence of an unresolved one" 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_resolved_call_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_resolved_call_records_nothing · 2 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.