test_the_nested_tree_itself_is_still_in_scope¶
Tests › tests/test_prune_at_nested_tree.py
What this test is for
Why it exists
THE CONTROL THAT KEEPS gh#333. Pruning the WALK must not exclude the TREE: the whole-repo tier indexes a vendored dependency and tags its rows, and a `chain_trace` that stopped at the submodule boundary is the defect gh#333 fixed. Stopping the walk is a statement about cost, not about what belongs in the index.
Given
repo, submodule, clone, _deep = _repo_with_deep_vendored_dots(tmp_path / "repo")
When
scope = whole_repo_scope(repo)excludes = {p.resolve() for p in scope.excludes}
Then
- ✓ excludes does not contain submodule
- ✓ excludes does not contain clone
- ✓ scope.roots equals (repo,)
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.
thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 22 of 142 steps
… 114 later steps
4 more
- Build, refresh and check the index · 22 of 153 steps
- clew — `main` (clew/cli.py) · 22 of 400 steps
- Build this wiki from the index · 2 of 400 steps
- `main` (clew/guard/main.py) · 2 of 357 steps
tests/test_prune_at_nested_tree.py:108 · its file's page
What it checks (3)
assert submodule not in excludes, "the whole-repo tier indexes nested trees (gh#333)"not attributedassert clone not in excludes, "a nested clone is indexed and tagged, not excluded"not attributedassert scope.roots == (repo,)observeswhole_repo_scopeviascope
Where the product reaches it
main→propose_main→propose→build_context→derive_scope→whole_repo_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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured