test_every_derived_name_is_accepted¶
Tests › tests/test_sub_index_refusal.py
What this test is for
Why it exists
THE CONTROL, and the half a refusal gets wrong most easily. A check that rejected a legitimate vendored name would make the split unbuildable, which is worse than the defect it replaced.
Given
repo = _split_repo(tmp_path / "repo")
When
for name in (FIRST_PARTY_INDEX, "deps-tinyfsm", "deps-libIoT"): target = target_for(repo, tmp_path / "state", name=name) assert _sub_index_rejection(target, repo) is None, f"{name!r} is buildable and was refused"
Then
- —
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) · 47 of 142 steps
… 85 later steps
6 more
- Build, refresh and check the index · 47 of 153 steps
- clew — `main` (clew/cli.py) · 24 of 400 steps
- Build this wiki from the index · 2 of 400 steps
- `main` (clew/guard/main.py) · 2 of 357 steps
- clew-mcp — `main` (clew/mcp_server/server.py) · 2 of 17 steps
- `main` (scripts/incremental_probe.py) · 2 of 3 steps
tests/test_sub_index_refusal.py:84 · its file's page
What it checks (1)
assert _sub_index_rejection(target, repo) is None, f"{name!r} is buildable and was refused"observes_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 measured
- REQ-DDB-INDEX-002 measured
- REQ-DDB-MCP-001 measured