test_cpp_steps_follow_the_same_shape¶
Tests › tests/test_wiki_activity.py
What this test is for
Why it exists
tree-sitter: the same seven steps for the C++ twin.
Given
- —
When
steps = steps_of(_CPP.splitlines(), "src/m.cpp", first_line=1)
Then
- ✓ [(s.kind, s.depth) for s in steps] equals _EXPECTED
- ✓ steps[2].text equals "if (i % 2)"
- ✓ 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 · 9 of 400 steps
… 284 earlier steps
… 103 later steps
tests/test_wiki_activity.py:57 · its file's page
What it checks (2)
assert [(s.kind, s.depth) for s in steps] == _EXPECTEDobservessteps_ofviastepsassert steps[2].text == "if (i % 2)" 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