test_a_construction_matching_several_rows_is_fuzzy_not_silence

Tests › tests/test_ast_recovery.py

passed Passed in the packaged run.

What this test is for

Why it exists

A constructor has the same decl/def duality as any other method, so the qualifier narrows to TWO rows and the general qualified path — which refuses on more than one, by design and by a pinned test — would emit nothing and reproduce gh#15's silence for every class whose constructor is declared and defined separately.

Given

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

When

  1. _ast_record_call_edge( 1, "ServerManager", {"ServerManager": [4647, 4717]}, resolved, fuzzy, SOURCE_AST_MEMBER, qualified="ServerManager", definition_of={ 4647: "entropic::ServerManager::ServerManager", 4717: "entropic::ServerManager::ServerManager", }, construction=True, )
→

Then

  1. ✓ resolved equals []
  2. ✓ sorted(fuzzy) equals [(1, 4647, SOURCE_AST_MEMBER), (1, 4717, SOURCE_AST_MEMBER)]

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

What it checks (2)

  1. assert resolved == [], "two rows is not a pick" not attributed
  2. assert sorted(fuzzy) == [(1, 4647, SOURCE_AST_MEMBER), (1, 4717, SOURCE_AST_MEMBER)] 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_construction_matching_several_rows_is_fuzzy_not_silence→_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_construction_matching_several_rows_is_fuzzy_not_silence · 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.