test_a_measured_depth_bounds_measured_expansion¶
Tests › tests/test_wiki_tuning.py
What this test is for
Why it exists
C1: a call measured as run expands past the flow's depth only up to `measured_depth`.
Given
db, repo = indexed
When
deep = derive_flow(db, repo, "main", depth=1, executed=_RAN_LOAD_ONLY)held = derive_flow(db, repo, "main", depth=1, executed=_RAN_LOAD_ONLY, measured_depth=1)
Then
- ✓ {(s.caller, s.callee) for s in deep.steps} contains ("load", "parse")
- ✓ {(s.caller, s.callee) for s in held.steps} does not contain ("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.
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_tuning.py:65 · its file's page
What it checks (2)
assert ("load", "parse") in {(s.caller, s.callee) for s in deep.steps}observesderive_flowviadeepassert ("load", "parse") not in {(s.caller, s.callee) for s in held.steps}observesderive_flowviaheld
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.
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