test_a_measured_link_carries_its_extent¶
Tests › tests/test_wiki_imports.py
What this test is for
Why it exists
OWNER 2026-11-17: "a test could cover sections of multiple requirements, or one requirement in full". A measured link says WHICH of the requirement's implementers the test executed, so "ran 1 of 9" never reads like "ran all 9". Unmeasured (no contexts) is ABSENT, not empty.
Verifies REQ-DDB-WIKI-009
Given
report = tmp_path / "coverage.json"report.write_text( json.dumps({"files": {"src/a.c": {"contexts": {"11": ["tests/t.py::test_cov|run"]}}}}) )
When
measured = { r.req_id: r for r in requirement_evidence( traced, junit=[], inputs=EvidenceInputs(contexts="coverage.json", infer_depth=0), repo_root=tmp_path, ) }plain = requirement_evidence( traced, junit=[], inputs=EvidenceInputs(infer_depth=0), repo_root=tmp_path )all(r.extent is None for r in plain)
Then
- ✓ measured["R-A"].extent equals (("test_cov", ("impl",)),)
- ✓ measured["R-B"].extent equals ()
- ✓ all(r.extent is None for r in plain) holds
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.
Build this wiki from the index · 6 of 400 steps
… 131 earlier steps
… 201 steps between
… 50 later steps
tests/test_wiki_imports.py:500 · its file's page
What it checks (3)
assert measured["R-A"].extent == (("test_cov", ("impl",)),)observesrequirement_evidenceviameasuredassert measured["R-B"].extent == ()observesrequirement_evidenceviameasuredassert all(r.extent is None for r in plain)observesall
Where the product reaches it
dossier→_rank_enum_over_mirror→_class_side_is_only_enum_mirrors→all(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 (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-009 | catalog | unknown |
Also reaches 11 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-SCHEMA-006 measured
- REQ-DDB-WIKI-002 measured
- REQ-DDB-WIKI-010 measured
- REQ-DDB-WIKI-015 measured
- REQ-DDB-WIKI-016 measured
- REQ-DDB-WIKI-017 measured
- REQ-DDB-WIKI-041 measured
- REQ-DDB-WIKI-054 inferred