test_a_misspelled_section_is_refused¶
Tests › tests/test_preprocessor.py
What this test is for
Why it exists
The allow-list's whole purpose, checked for this section specifically. `preprocessors:` parses to a perfectly valid mapping that nothing reads, so the build would run with NO macros while the log reported the declaration was honoured — and here that means silently indexing a different variant than the owner declared.
Verifies REQ-DDB-CONFIG-004 REQ-DDB-PIPE-014
Given
root = tmp_path / "repo"root.mkdir()(root / ".clew.yaml").write_text("preprocessors:\n predefined:\n - A\n", encoding="utf-8")
When
load_declaration(root)
Then
- ✓ raises DeclarationError
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) · 3 of 142 steps
… 99 earlier steps
… 29 steps between
… 3 later steps
2 more
- Build this wiki from the index · 3 of 400 steps
- clew — `main` (clew/cli.py) · 3 of 400 steps
tests/test_preprocessor.py:675 · its file's page
Where the product reaches it
main→propose_main→propose→build_context→load_declaration(flow)
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.
Requirements it verifies (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-004 | catalog | unknown |
| REQ-DDB-PIPE-014 | catalog | unknown |
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-WIKI-054 inferred