test_every_block_is_a_wedge_and_wedges_do_not_overlap¶
Tests › tests/test_wiki_web.py
What this test is for
Why it exists
Spokes: one angular range per block, in declared order, disjoint, inside one turn.
Given
blocks = _data(db)["blocks"]spans = [(b["a0"], b["a1"]) for b in blocks]
When
all(0 <= a0 < a1 <= 2 * math.pi + 1e-9 for a0, a1 in spans)all(spans[i][1] <= spans[i + 1][0] for i in range(len(spans) - 1))
Then
- ✓ [b["id"] for b in blocks] equals ["API", "Core"]
- ✓ all(0 <= a0 < a1 <= 2 * math.pi + 1e-9 for a0, a1 in spans) holds
- ✓ all(spans[i][1] <= spans[i + 1][0] for i in range(len(spans) - 1)) 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 · 20 of 400 steps
… 140 earlier steps
… 234 later steps
tests/test_wiki_web.py:81 · its file's page
What it checks (3)
assert [b["id"] for b in blocks] == ["API", "Core"]observes_dataviablocksassert all(0 <= a0 < a1 <= 2 * math.pi + 1e-9 for a0, a1 in spans)observesallassert all(spans[i][1] <= spans[i + 1][0] for i in range(len(spans) - 1))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.
Also reaches 5 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-022 measured
- REQ-DDB-WIKI-054 inferred