test_the_compact_shape_is_lossless¶
Tests › tests/test_compact_wire.py
What this test is for
Why it exists
Expanding a compact reply reproduces the flat rows.
Given
- —
When
compact = compact_neighbours(copy.deepcopy(_FLAT))expanded = _expand(compact)for key in ("callers", "callees"): assert _canon(expanded[key]) == _canon(_FLAT[key])
Then
- —
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.
Look up one name: everything the index holds about it · 3 of 226 steps
… 104 earlier steps
… 112 later steps
tests/test_compact_wire.py:98 · its file's page
What it checks (1)
assert _canon(expanded[key]) == _canon(_FLAT[key])observes_canon
Where the product reaches it
dossier→_wire_shape→compact_neighbours(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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-014 measured
- REQ-DDB-WIKI-054 inferred