test_a_construction_matching_several_rows_is_fuzzy_not_silence¶
Tests › tests/test_ast_recovery.py
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
resolved: list[tuple[int, int, str]] = []fuzzy: list[tuple[int, int, str]] = []
When
_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
- ✓ resolved equals []
- ✓ 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)
assert resolved == [], "two rows is not a pick"not attributedassert 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_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