test_cpp_steps_follow_the_same_shape

Tests › tests/test_wiki_activity.py

passed Passed in the packaged run.

What this test is for

Why it exists

tree-sitter: the same seven steps for the C++ twin.

Given

  1. —
→

When

  1. steps = steps_of(_CPP.splitlines(), "src/m.cpp", first_line=1)
→

Then

  1. ✓ [(s.kind, s.depth) for s in steps] equals _EXPECTED
  2. ✓ steps[2].text equals "if (i % 2)"
  3. ✓ 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

callercallercallercallerclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/activity.pyclew/wiki/activity.pyclew/wiki/activity.pyclew/wiki/activity.pyopt (line 160)optbuild_wiki285. _py_block → 285… 3 calls not run286. _py_steps → _without_docstring286_without_docstring287. steps_of → _c_steps287_c_steps▶ test enters288–295. _c_steps → _first288_first +7 more296. _c_block → 296… 1 call not run297. _activity → anchor297anchor

… 103 later steps

tests/test_wiki_activity.py:57 · its file's page

What it checks (2)

  1. assert [(s.kind, s.depth) for s in steps] == _EXPECTED observes steps_of via steps
  2. assert steps[2].text == "if (i % 2)" and steps[-1].text == "return out;" observes steps_of via steps

Where the product reaches it

  • build_wiki → _build_site → symbol_pages → _section → _activity → steps_of (flow)

Call flow

test_cpp_steps_follow_the_same_shape→steps_of

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_cpp_steps_follow_the_same_shape · 2 checkssteps_ofREQ-DDB-WIKI-045 · measured
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.