test_adjacent_exercised_steps_stay_one_window

Tests › tests/test_wiki_slice_identity.py

passed Passed in the packaged run.

What this test is for

Why it exists

Steps 2 and 5 with pad 2: the windows overlap, so one is drawn.

Given

  1. —
→

When

  1. slice_svg(_flow(50), Slice(exercised=(2, 5)), pad=2)
→

Then

  1. ✓ slice_svg(_flow(50), Slice(exercised=(2, 5)), pad=2).count("<svg") equals 1

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

… 217 earlier steps

callercallercallercallerclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyother filesother filesother filesother filesbuild_wiki218. _block → _controls218_controls219. _block → flow_svg219flow_svg220–222. flow_svg → _fold_inside220_fold_inside +2 more223–224. flow_page → test_node223test_node +1 more

… 113 steps between

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyother filesother filesother filesother filesloop (line 246)looploop (line 151)loopopt (line 153)optbuild_wiki338–339. _exercises → _slices_html338_slices_html +1 more340. slice_svg → _windows340_windows▶ test enters341. slice_svg → _hidden341_hidden342. slice_svg → _hidden342_hidden343–345. slice_svg → _marks343_marks +2 more346. _build_site → parse_junit346parse_junit347. parse_junit → fold_cases347fold_cases

… 53 later steps

tests/test_wiki_slice_identity.py:61 · its file's page

What it checks (1)

  1. assert slice_svg(_flow(50), Slice(exercised=(2, 5)), pad=2).count("<svg") == 1 observes slice_svg

Where the product reaches it

  • build_wiki → _build_site → test_pages → _exercises → _slices_html → slice_svg (flow)

Call flow

test_adjacent_exercised_steps_stay_one_window→slice_svg→_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.

test_adjacent_exercised_steps_stay_one_window · 1 checksslice_svgREQ-DDB-WIKI-041 · measured
Also reaches 1 requirement

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