test_node_is_known_when_the_wiki_declares_sources¶
Tests › tests/guard/test_guard_schema_closed.py
What this test is for
Why it exists
F11: `wiki.sources` asks authors for `@node`; the gate accepts it there, and only there.
Given
sources = "wiki:\n sources:\n - {name: keys, path: keys.toml}\n"
When
- —
Then
- ✓ _unknown_tags(tmp_path, sources, "node") equals []
- ✓ _unknown_tags(tmp_path, "guard: {}\n", "node") differs from []
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.
`main` (clew/guard/main.py) · 23 of 357 steps
… 16 earlier steps
… 161 steps between
… 138 later steps
3 more
- thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 1 of 142 steps
- Build this wiki from the index · 1 of 400 steps
- clew — `main` (clew/cli.py) · 1 of 400 steps
tests/guard/test_guard_schema_closed.py:143 · its file's page
What it checks (2)
assert _unknown_tags(tmp_path, sources, "node") == []observes_unknown_tagsassert _unknown_tags(tmp_path, "guard: {}\n", "node") != []observes_unknown_tags
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_node_is_known_when_the_wiki_declares_sources→_unknown_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-GUARD-001 measured
- REQ-DDB-GUARD-012 measured
- REQ-DDB-GUARD-024 measured