test_a_build_written_somewhere_else_registers_nothing¶
Tests › tests/test_registry_hygiene.py
What this test is for
Why it exists
THE COUNTER-CASE. `--output /somewhere/mine.db` is a database the server does not read, so recording it as a target would list a repository whose index no query can reach — and the acceptance harness builds exactly that way.
Given
repo = tmp_path / "repo"repo.mkdir()
2 more
elsewhere = tmp_path / "mine.db"elsewhere.write_bytes(b"")
When
_register_built_target(str(repo), elsewhere)
Then
- ✓ TargetRegistry().targets() 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.
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_registry_hygiene.py:163 · its file's page
What it checks (1)
assert TargetRegistry().targets() == []not attributed
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
test_a_build_written_somewhere_else_registers_nothing→_register_built_targetWhat 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-MCP-001 measured