test_a_recorded_runs_discovered_calls_fold¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
A-1: the imported trace keeps its summary, folds what it discovered.
Verifies REQ-DDB-WIKI-011 REQ-DDB-WIKI-012 REQ-DDB-WIKI-013 REQ-DDB-WIKI-014 REQ-DDB-WIKI-015 REQ-DDB-WIKI-018 REQ-DDB-WIKI-020 REQ-DDB-WIKI-021 REQ-DDB-WIKI-022 REQ-DDB-WIKI-023 REQ-DDB-WIKI-025 REQ-DDB-WIKI-031 REQ-DDB-WIKI-044 REQ-DDB-WIKI-050 REQ-DDB-WIKI-052
Given
step = Step("m", "m", "a", "a", "x", "x", "x.py", 1, 1)flow = Flow("m", "m", 1, "files", (Lane("x", "x"),), (step,))otlp = { "resourceSpans": [ { "scopeSpans": [ { "spans": [ {"name": "m", "spanId": "1", "parentSpanId": ""}, {"name": "b", "spanId": "2", "parentSpanId": "1"}, {"name": "c", "spanId": "3", "parentSpanId": "1"}, ] } ] } ] }
When
html = imported_trace(flow, "t.json", otlp)
Then
- ✓ html.split("<details", 1)[0] contains "predicted steps confirmed"
- ✓ 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
… 28 steps between
… 158 later steps
tests/test_wiki_site.py:1238 · its file's page
What it checks (2)
assert "predicted steps confirmed" in html.split("<details", 1)[0]observesimported_traceviahtmlassert '<details class="fold"><summary>2 discovered calls not in the flow</summary>' in htmlobservesimported_traceviahtml
Where the product reaches it
build_wiki→_build_site→flow_page→imported_trace(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.
Requirements it verifies (15)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-011 | catalog | unknown |
| REQ-DDB-WIKI-012 | catalog | unknown |
| REQ-DDB-WIKI-013 | catalog | unknown |
| REQ-DDB-WIKI-014 | catalog | unknown |
| REQ-DDB-WIKI-015 | catalog | unknown |
| REQ-DDB-WIKI-018 | catalog | unknown |
| REQ-DDB-WIKI-020 | catalog | unknown |
| REQ-DDB-WIKI-021 | catalog | unknown |
| REQ-DDB-WIKI-022 | catalog | unknown |
| REQ-DDB-WIKI-023 | catalog | unknown |
| REQ-DDB-WIKI-025 | catalog | unknown |
| REQ-DDB-WIKI-031 | catalog | unknown |
| REQ-DDB-WIKI-044 | catalog | unknown |
| REQ-DDB-WIKI-050 | catalog | unknown |
| REQ-DDB-WIKI-052 | catalog | unknown |
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-035 measured
- REQ-DDB-WIKI-036 measured
- REQ-DDB-WIKI-049 measured