test_a_shallow_tree_records_nothing¶
Tests › tests/test_depth_limit_report.py
What this test is for
Why it exists
THE CONTROL, AND IT CARRIES THE WHOLE VALUE OF THE OTHER TEST. A recorder that fired on every build would pass the deep case and make the stamp meaningless — every index would report a depth limit and no reader could tell the affected targets from the rest. The presence of the key IS the signal, so its absence has to be real.
Given
_nest(tmp_path, 3)
When
derive_scope(tmp_path)depth_limited_paths()
Then
- ✓ depth_limited_paths() equals []
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.
clew — `main` (clew/cli.py) · 24 of 400 steps
… 10 earlier steps
… 26 steps between
… 329 later steps
4 more
- thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 22 of 142 steps
- Build, refresh and check the index · 20 of 153 steps
- Build this wiki from the index · 3 of 400 steps
- `main` (clew/guard/main.py) · 2 of 357 steps
tests/test_depth_limit_report.py:89 · its file's page
What it checks (1)
assert depth_limited_paths() == [], ( "a three-deep tree reported a depth limit, so the stamp fires on ordinary repositories " "and tells a reader nothing" )observesdepth_limited_paths
Where the product reaches it
main→propose_main→propose→build_context→derive_scope(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 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-WIKI-054 inferred