test_a_recorded_runs_discovered_calls_fold

Tests › tests/test_wiki_site.py

passed Passed in the packaged run.

What this test is for

Given

  1. step = Step("m", "m", "a", "a", "x", "x", "x.py", 1, 1)
  2. flow = Flow("m", "m", 1, "files", (Lane("x", "x"),), (step,))
  3. otlp = { "resourceSpans": [ { "scopeSpans": [ { "spans": [ {"name": "m", "spanId": "1", "parentSpanId": ""}, {"name": "b", "spanId": "2", "parentSpanId": "1"}, {"name": "c", "spanId": "3", "parentSpanId": "1"}, ] } ] } ] }
→

When

  1. html = imported_trace(flow, "t.json", otlp)
→

Then

  1. ✓ html.split("<details", 1)[0] contains "predicted steps confirmed"
  2. ✓ html contains '<details class="fold"><summary>2 discovered calls not in the flow</summary>'

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

… 200 earlier steps

callercallercallercallerclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyother filesother filesother filesother filesopt (line 275)optbuild_wiki201. flow_page → with_values201with_values202. with_values → overlay202overlay203–204. overlay → spans_of203spans_of +1 more205–206. flow_page → _segments205_segments +1 more

… 28 steps between

callercallercallercallerclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyother filesother filesother filesother filesopt (line 310)optloop (line 385)loopopt (line 394)optbuild_wiki235. flow_page → plural235plural236. flow_page → imported_trace236imported_trace237. imported_trace → overlay237overlay▶ test enters238. imported_trace → failure_of238failure_of239. failure_of → spans_of239spans_of240. imported_trace → plural240plural241. flow_page → _diagram_exports241_diagram_exports242. _diagram_exports → flow_mermaid242flow_mermaid

… 158 later steps

tests/test_wiki_site.py:1238 · its file's page

What it checks (2)

  1. assert "predicted steps confirmed" in html.split("<details", 1)[0] observes imported_trace via html
  2. assert '<details class="fold"><summary>2 discovered calls not in the flow</summary>' in html observes imported_trace via html

Where the product reaches it

  • build_wiki → _build_site → flow_page → imported_trace (flow)

Call flow

test_a_recorded_runs_discovered_calls_fold→imported_trace

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_a_recorded_runs_discovered_calls_fold · 2 checksimported_traceoverlayREQ-DDB-WIKI-035 · measuredimported_traceREQ-DDB-WIKI-036 · measuredimported_traceoverlay_step_valuesREQ-DDB-WIKI-049 · measured

Requirements it verifies (15)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-011catalogunknown
REQ-DDB-WIKI-012catalogunknown
REQ-DDB-WIKI-013catalogunknown
REQ-DDB-WIKI-014catalogunknown
REQ-DDB-WIKI-015catalogunknown
REQ-DDB-WIKI-018catalogunknown
REQ-DDB-WIKI-020catalogunknown
REQ-DDB-WIKI-021catalogunknown
REQ-DDB-WIKI-022catalogunknown
REQ-DDB-WIKI-023catalogunknown
REQ-DDB-WIKI-025catalogunknown
REQ-DDB-WIKI-031catalogunknown
REQ-DDB-WIKI-044catalogunknown
REQ-DDB-WIKI-050catalogunknown
REQ-DDB-WIKI-052catalogunknown
Also reaches 3 requirements

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