test_python_steps_follow_the_control_flow_with_absolute_lines¶
Tests › tests/test_wiki_activity.py
What this test is for
Why it exists
`ast`: the docstring is not a step; lines are the file's (the body starts at 20).
Given
- —
When
steps = steps_of(_PY.splitlines(), "src/m.py", first_line=20)
Then
- ✓ [(s.kind, s.depth) for s in steps] equals _EXPECTED
- ✓ [s.first for s in steps] equals [22, 23, 24, 25, 26, 27, 28]
- ✓ steps[1].text equals "for item in items"
- ✓ steps[-1].text equals "return out"
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.
Build this wiki from the index · 8 of 400 steps
… 273 earlier steps
… 112 later steps
tests/test_wiki_activity.py:49 · its file's page
What it checks (3)
assert [(s.kind, s.depth) for s in steps] == _EXPECTEDobservessteps_ofviastepsassert [s.first for s in steps] == [22, 23, 24, 25, 26, 27, 28]observessteps_ofviastepsassert steps[1].text == "for item in items" and steps[-1].text == "return out"observessteps_ofviasteps
Where the product reaches it
build_wiki→_build_site→symbol_pages→_section→_activity→steps_of(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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-045 measured