test_python_self_qualified_call_is_member_provenance¶
Tests › tests/test_python_ast.py
What this test is for
Why it exists
`self.method()` is the Python analogue of C++'s `obj.method()`; its tail is what `memberdef.name` stores, so it must be recorded as `ast_member`.
Given
tree, src = _parse(FIXTURE_ROOT, FIXTURE_REL)
When
sites = _ast_harvest_calls(tree, src)starts = [s for s in sites if s[0] == "start"]all(s[2] == "ast_member" for s in starts)
Then
- ✓ starts holds
- ✓ all(s[2] == "ast_member" for s in starts) holds
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
clew — `main` (clew/cli.py) · 7 of 400 steps
… 70 earlier steps
… 313 later steps
tests/test_python_ast.py:421 · its file's page
What it checks (2)
assert starts, "expected `.start()` call sites in the fixture"not attributedassert all(s[2] == "ast_member" for s in starts)observesall
Where the product reaches it
dossier→_rank_enum_over_mirror→_class_side_is_only_enum_mirrors→all(flow)
Call flow
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.
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-011 measured
- REQ-DDB-WIKI-054 inferred