test_status_on_a_PRE_COVERAGE_index_says_nothing_rather_than_guessing¶
Tests › tests/test_coverage.py
What this test is for
Why it exists
An index built before build 18 cannot supply these fields, and an absent key honestly reads as "not recorded". Fabricating a healthy-looking default would be the same class of defect as the whole issue: a number that looks like a measurement and is not.
Given
db = tmp_path / "clew.db"sqlite3.connect(str(db)).close()
When
write_build_signature(db)status = db_status(Target(repo_path=str(tmp_path), slug="t", db_path=str(db)))
Then
- ✓ status["coverage"] 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) · 30 of 142 steps
… 63 earlier steps
… 42 later steps
2 more
- Build, refresh and check the index · 30 of 153 steps
- `main` (scripts/stage_probe.py) · 30 of 37 steps
tests/test_coverage.py:375 · its file's page
What it checks (1)
assert status["coverage"] == {}observesdb_statusviastatus
Where the product reaches it
index→_index_action→build_or_refresh→db_status(flow)
Call flow
test_status_on_a_PRE_COVERAGE_index_says_nothing_rather_than_guessing→write_build_signature→db_statusWhat 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 6 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 measured
- REQ-DDB-INDEX-003 measured
- REQ-DDB-MCP-001 measured
- REQ-DDB-MCP-004 measured
- REQ-DDB-PIPE-005 measured