test_a_relative_qualifier_does_not_match_a_LONGER_identifier

Tests › tests/test_ast_recovery.py

passed Passed in the packaged run.

What this test is for

Why it exists

The boundary rule's real job. `Owner::run` must not match `CoOwner::run` — the ':' tolerance that enables relative lookup must not extend to a partial identifier, or the resolution would be worse than the fan-out it replaces: confidently wrong instead of honestly ambiguous.

Given

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

When

  1. _ast_record_call_edge( 1, "run", {"run": [50]}, resolved, fuzzy, "ast_member", qualified="Owner::run", definition_of={50: "void net::CoOwner::run()"}, )
→

Then

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

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

What it checks (1)

  1. assert resolved == [] and fuzzy == [], "CoOwner::run must NOT satisfy Owner::run" 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_relative_qualifier_does_not_match_a_LONGER_identifier→_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_relative_qualifier_does_not_match_a_LONGER_identifier · 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.