test_the_point_cloud_places_every_function_inside_its_box¶
Tests › tests/test_wiki_graph.py
What this test is for
Why it exists
Code level.
Given
- —
When
graph = build_graph(db, [_Row("R-1", "PASS", (("save", "pkg/core/store.py", 1),))], None)comps = {c["id"]: c for c in graph["components"]}for point in graph["symbols"]: box = next( c for c in comps.values() if c["x"] <= point["x"] <= c["x"] + c["w"] and c["y"] <= point["y"] <= c["y"] + c["h"] ) assert box is not Nonesave = next(p for p in graph["symbols"] if p["name"] == "save")
Then
- ✓ save["tier"] equals "PASS"
- ✓ save does not contain "changed"
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_graph.py:106 · its file's page
What it checks (2)
assert box is not Nonenot attributedassert save["tier"] == "PASS" and "changed" not in savenot attributed
Where the product reaches it
build_wiki→_build_site→build_graph(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 3 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