test_an_UNKNOWN_receiver_is_still_credited

Tests › tests/test_unresolved_inbound.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE LINE THIS MUST NOT CROSS, and the reason the rule is 'contradicts' rather than 'does not confirm'. A receiver the index holds no type for says NOTHING — it neither confirms nor rules out — and dropping those was measured to make 84% of entropic report "cannot say", withdrawing confidence from thousands of correct measured negatives.

Given

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

When

  1. _ast_record_call_edge( 1, "close", {"close": [620]}, [], [], SOURCE_AST_MEMBER, receiver="mystery", receiver_types={"conn": {"sqlite3"}}, scope_of={620: "clew.indexcache.IndexCache"}, unresolved=unresolved, )
→

Then

  1. ✓ unresolved equals [[620]]

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

What it checks (1)

  1. assert unresolved == [[620]], "an unknown receiver is not evidence against the callee" 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_an_UNKNOWN_receiver_is_still_credited→_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_an_UNKNOWN_receiver_is_still_credited · 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.