test_a_whole_repo_target_is_never_refused¶
Tests › tests/test_sub_index_refusal.py
What this test is for
Why it exists
`name is None` is the unnamed target, which every repository has and which this check must not touch — it is also the only shape that existed before sub-indexes, so refusing it would strand every index on disk.
Given
repo = _split_repo(tmp_path / "repo")
When
_sub_index_rejection(target_for(repo, tmp_path / "state"), repo)target_for(repo, tmp_path / "state")
Then
- ✓ _sub_index_rejection(target_for(repo, tmp_path / "state"), repo) is None
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) · 1 of 142 steps
… 32 earlier steps
… 105 later steps
4 more
- Build, refresh and check the index · 1 of 153 steps
- clew — `main` (clew/cli.py) · 1 of 400 steps
- clew-mcp — `main` (clew/mcp_server/server.py) · 1 of 17 steps
- `main` (scripts/incremental_probe.py) · 1 of 3 steps
tests/test_sub_index_refusal.py:102 · its file's page
What it checks (1)
assert _sub_index_rejection(target_for(repo, tmp_path / "state"), repo) is Noneobserves_sub_index_rejection
Where the product reaches it
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 inferred
- REQ-DDB-INDEX-002 inferred
- REQ-DDB-MCP-001 measured