test_the_overlay_confirms_misses_and_discovers¶
Tests › tests/test_wiki_tracerun.py
What this test is for
Why it exists
THE EXPECTED FLOW IS THE INDEX'S: `load` might call `finish`, which this run never did (not executed); a call the run made that the flow does not predict is discovered.
Verifies REQ-DDB-WIKI-036
Given
- —
When
run = trace_test(repo, "tests/test_m.py::test_load")expected = [("test_load", "load"), ("load", "parse"), ("load", "finish"), ("load", "len")]result = overlay(expected, run["otlp"])partial = overlay([("test_load", "load")], run["otlp"])
Then
- ✓ result["steps"] equals ["confirmed", "confirmed", "not executed", "not executed"]
- ✓ result["discovered"] equals []
- ✓ partial["discovered"] equals [["load", "parse"]]
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 · 37 of 400 steps
… 7 steps between
… 143 steps between
… 194 later steps
tests/test_wiki_tracerun.py:123 · its file's page
What it checks (3)
assert result["steps"] == ["confirmed", "confirmed", "not executed", "not executed"]observesoverlayviaresultassert result["discovered"] == []observesoverlayviaresultassert partial["discovered"] == [["load", "parse"]]observesoverlayviapartial
Where the product reaches it
build_wiki→_build_site→flow_page→with_values→overlay(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 (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-036 | catalog | unknown |
Also reaches 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-WIKI-026 measured
- REQ-DDB-WIKI-035 measured
- REQ-DDB-WIKI-049 measured
- REQ-DDB-WIKI-054 inferred