test_a_resolved_call_records_nothing¶
Tests › tests/test_unresolved_inbound.py
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
resolved: list[tuple[int, int, str]] = []unresolved: list[list[int]] = []
When
_ast_record_call_edge( 1, "free_fn", {"free_fn": [7]}, resolved, [], SOURCE_AST, unresolved=unresolved )
Then
- ✓ resolved equals [(1, 7, SOURCE_AST)]
- ✓ unresolved equals []
tests/test_unresolved_inbound.py:79 · its file's page
What it checks (2)
assert resolved == [(1, 7, SOURCE_AST)]not attributedassert 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_edgeWhat 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