test_overviews_declaration_example_loads_and_means_what_it_says¶
Tests › tests/test_declared_doxyfile.py
What this test is for
Why it exists
F2: `kconfig: {path:}` (the key is `root`), `event_tags: {emits: produce}` (the roles are `producer` / `consumer`) and `doxyfile:` were documented and wrong. The block is loaded as written, so the reference cannot drift from the loader again.
Given
text = (REPO / "docs" / "OVERVIEW.md").read_text(encoding="utf-8")block = re.search( r"```yaml\n# a --declare document, or <repo>/\.clew\.yaml\n(.*?)```", text, re.S )
3 more
(tmp_path / "doxygen").mkdir()(tmp_path / "doxygen" / "project.doxyfile").write_text("INPUT = .\n", encoding="utf-8")(tmp_path / ".clew.yaml").write_text(block.group(1), encoding="utf-8")
When
decl = load_declaration(tmp_path)declared_event_tags(decl)
Then
- ✓ block holds
- ✓ decl["kconfig"] equals {"root": "Kconfig"}
- ✓ set((declared_event_tags(decl) or {}).values()) equals {"producer", "consumer"}
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) · 19 of 142 steps
… 99 earlier steps
… 4 steps between
… 3 later steps
3 more
- clew — `main` (clew/cli.py) · 19 of 400 steps
- Build this wiki from the index · 18 of 400 steps
- `main` (clew/guard/main.py) · 3 of 357 steps
tests/test_declared_doxyfile.py:71 · its file's page
What it checks (3)
assert block, "OVERVIEW.md's declaration example block was not found"not attributedassert decl["kconfig"] == {"root": "Kconfig"}observesload_declarationviadeclassert set((declared_event_tags(decl) or {}).values()) == {"producer", "consumer"}observesdeclared_event_tags
Where the product reaches it
main→propose_main→propose→build_context→load_declaration(flow)
Call flow
test_overviews_declaration_example_loads_and_means_what_it_says→load_declaration→declared_event_tagsWhat 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-GUARD-012 measured
- REQ-DDB-WIKI-054 inferred