test_a_declared_path_that_is_absent_is_refused¶
Tests › tests/test_datamodel.py
What this test is for
Why it exists
THE OTHER WAY A STATEMENT GOES WRONG, and the one a typo produces. Refused with the path named, rather than degrading to the discovery answer that would have been given anyway — which is precisely the outcome that reads as agreement.
Given
repo = tmp_path / "repo"repo.mkdir()
When
discover(repo, (), declared=repo / "missing.toml")
Then
- ✓ raises DeclaredModelError
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) · 4 of 142 steps
… 8 earlier steps
… 126 later steps
2 more
- Build, refresh and check the index · 4 of 153 steps
- clew — `main` (clew/cli.py) · 4 of 400 steps
tests/test_datamodel.py:1137 · its file's page
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-005 measured
- REQ-DDB-SCHEMA-013 measured