test_with_nothing_declared_blocks_are_packages¶
Tests › tests/test_wiki_blocks.py
What this test is for
Why it exists
No declaration: package blocks, and nothing is labelled inferred.
Given
- —
When
blocks = build_graph(db, [], None)["components"]all(c["inferred_files"] == [] for c in blocks)
Then
- ✓ all(c["inferred_files"] == [] for c in blocks) holds
- ✓ {c["id"] for c in blocks} does not contain "Unassigned"
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 · 19 of 400 steps
… 140 earlier steps
… 234 later steps
tests/test_wiki_blocks.py:80 · its file's page
What it checks (2)
assert all(c["inferred_files"] == [] for c in blocks)observesallassert "Unassigned" not in {c["id"] for c in blocks}observesbuild_graphviablocks
Where the product reaches it
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.
Also reaches 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-WIKI-019 measured
- REQ-DDB-WIKI-054 inferred