test_block_lanes_are_the_maps_blocks¶
Tests › tests/test_wiki_flow.py
What this test is for
Why it exists
OWNER (round 5): sequence diagrams have BLOCK lanes — the same blocks the map and the Architecture tab draw (the build graph's `file_block`), not a path prefix. A file no block holds keeps its own path, said rather than dropped.
Verifies REQ-DDB-WIKI-008 REQ-DDB-WIKI-047
Given
db, repo = indexedblocks = {"app/main.py": "Front door", "lib/store.py": "Storage"}
When
flow = derive_flow(db, repo, "main", depth=3, lanes="blocks", blocks=blocks)partial = derive_flow( db, repo, "main", depth=3, lanes="blocks", blocks={"app/main.py": "Front door"} )
Then
- ✓ [lane.id for lane in flow.lanes] equals ["Front door", "Storage"]
- ✓ flow.steps[0].from_lane equals "Front door"
- ✓ flow.steps[0].to_lane equals "Storage"
- ✓ [lane.id for lane in partial.lanes] equals ["Front door", "lib/store.py"]
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.
Look up one name: everything the index holds about it · 14 of 226 steps
… 45 earlier steps
… 81 steps between
… 33 steps between
… 41 later steps
2 more
- Build this wiki from the index · 13 of 400 steps
- clew — `main` (clew/cli.py) · 7 of 400 steps
tests/test_wiki_flow.py:321 · its file's page
What it checks (3)
assert [lane.id for lane in flow.lanes] == ["Front door", "Storage"]observesderive_flowviaflowassert flow.steps[0].from_lane == "Front door" and flow.steps[0].to_lane == "Storage"observesderive_flowviaflowassert [lane.id for lane in partial.lanes] == ["Front door", "lib/store.py"]observesderive_flowviapartial
Where the product reaches it
build_wiki→_build_site→flow_page→derive_flow(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 (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-008 | catalog | unknown |
| REQ-DDB-WIKI-047 | catalog | unknown |
Also reaches 8 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-011 measured
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-010 measured
- REQ-DDB-QUERY-015 measured
- REQ-DDB-WIKI-001 measured
- REQ-DDB-WIKI-041 measured