test_a_dependency_requirement_implemented_here_is_served_not_unreached¶
Tests › tests/test_wiki_composite.py
What this test is for
Why it exists
A pinned catalogue's requirement this repository's own code tags is SERVED HERE — the W8 direction (a library implementing its product's catalogue) — never reported as unreached.
Given
product, pins = _fixture(tmp_path)db = _root_db(tmp_path / "root.db", ("REQ-LIB-002",))def trace(_db: Path, _rid: str): return ((), ())
When
tree = compose( product, "product", _specs(product, pins), probe=_no_index, trace=trace, root_db=db )
Then
- ✓ tree.implemented_here contains "lib:REQ-LIB-002"
- ✓ tree.unreached does not contain "lib:REQ-LIB-002"
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) · 7 of 357 steps
… 62 earlier steps
… 280 later steps
4 more
- thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 2 of 142 steps
- Build this wiki from the index · 2 of 400 steps
- Build, refresh and check the index · 2 of 153 steps
- clew — `main` (clew/cli.py) · 2 of 400 steps
tests/test_wiki_composite.py:317 · its file's page
What it checks (2)
assert "lib:REQ-LIB-002" in tree.implemented_hereobservescomposeviatreeassert "lib:REQ-LIB-002" not in tree.unreachedobservescomposeviatree
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_a_dependency_requirement_implemented_here_is_served_not_unreached→_fixture→_root_db→compose→_specsWhat 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 10 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-003 measured
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-GUARD-024 inferred
- REQ-DDB-GUARD-027 measured
- REQ-DDB-SCHEMA-006 measured
- REQ-DDB-SCHEMA-015 measured
- REQ-DDB-WIKI-015 measured
- REQ-DDB-WIKI-040 measured
- REQ-DDB-WIKI-054 inferred