test_the_svg_carries_each_steps_lines_for_lighting

Tests › tests/test_wiki_activity.py

passed Passed in the packaged run.

What this test is for

Why it exists

`data-l` per step, a loop back edge, an accessible label, no script.

Given

  1. —
→

When

  1. svg = activity_svg(steps_of(_PY.splitlines(), "src/m.py", 20), "load")
→

Then

  1. ✓ svg.count('class="step ') equals 7
  2. ✓ svg contains 'data-l="25-25"'
  3. ✓ svg contains 'class="loop-back"'
  4. ✓ svg contains 'aria-label="activity of load: 7 steps"'
  5. ✓ svg does not contain "<script"

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 · 11 of 400 steps

… 273 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.pyloop (line 360)loopopt (line 374)optopt (line 64)optopt (line 160)optopt (line 231)optopt (line 232)optloop (line 187)loopelif (line 195)elifbuild_wiki274. _section → _activity274_activity275. _activity → steps_of275steps_of276. steps_of → _py_steps276_py_steps▶ test enters277–280. _py_steps → _py_block277_py_block +3 more281–282. _py_orelse → _py_block281_py_block +1 more283. _py_orelse → _py_block283_py_block284. _py_block → _py_block284_py_block285. _py_block → 285… 3 calls not run286. _py_steps → _without_docstring286_without_docstring287–288. steps_of → _c_steps287_c_steps +1 more

… 8 steps between

callercallercallercallerclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/activity.pyclew/wiki/activity.pyclew/wiki/activity.pyclew/wiki/activity.pyother filesother filesother filesother filesopt (line 386)optloop (line 132)loopbuild_wiki297. _activity → anchor297anchor298. _activity → activity_svg298activity_svg299. activity_svg → _edge299_edge▶ test enters300–301. activity_svg → _back_edge300_back_edge +1 more302. _section → md_title302md_title303. symbol_pages → _file_header303_file_header

… 97 later steps

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

What it checks (3)

  1. assert svg.count('class="step ') == 7 and 'data-l="25-25"' in svg observes activity_svg via svg
  2. assert 'class="loop-back"' in svg and 'aria-label="activity of load: 7 steps"' in svg observes activity_svg via svg
  3. assert "<script" not in svg observes activity_svg via svg

Where the product reaches it

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

Call flow

test_the_svg_carries_each_steps_lines_for_lighting→activity_svg→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_the_svg_carries_each_steps_lines_for_lighting · 3 checkssteps_ofREQ-DDB-WIKI-045 · measured
Also reaches 1 requirement

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