test_a_detail_the_body_does_not_carry_is_kept¶
Tests › tests/test_compact_wire.py
What this test is for
Why it exists
Doc text outside the body (a C comment above it), or no body, keeps `detail`.
Given
elsewhere = {"detail": _DOC, "body": {"lines": ["int fetch(int id) {", " return 0;", "}"]}}
When
compact_docs(copy.deepcopy(elsewhere))bodiless = {"detail": _DOC}compact_docs(copy.deepcopy(bodiless))
Then
- ✓ compact_docs(copy.deepcopy(elsewhere)) equals elsewhere
- ✓ compact_docs(copy.deepcopy(bodiless)) equals bodiless
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 · 1 of 226 steps
… 102 earlier steps
… 119 later steps
tests/test_compact_wire.py:199 · its file's page
What it checks (2)
assert compact_docs(copy.deepcopy(elsewhere)) == elsewhereobservescompact_docsassert compact_docs(copy.deepcopy(bodiless)) == bodilessobservescompact_docs
Where the product reaches it
dossier→_wire_shape→compact_docs(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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-014 measured