test_false_and_zero_are_measurements_not_absences¶
Tests › tests/test_wire.py
What this test is for
Why it exists
`crosses_thread: false` says "this edge stays on one thread", which is a different claim from the field being missing ("nobody looked"). Eliding falsy values instead of absent ones would silently turn the former into the latter.
Given
- —
When
out = wire.one(_Envelope(callers=[_Row(crosses_thread=False, line_start=0)]))row = out["callers"][0]
Then
- ✓ out is not None
- ✓ row["crosses_thread"] is False
- ✓ row["line_start"] equals 0
- ✓ row does not contain "strength"
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 · 7 of 226 steps
… 27 earlier steps
… 188 later steps
2 more
- clew — `main` (clew/cli.py) · 7 of 400 steps
- `main` (scripts/export_parity.py) · 7 of 203 steps
tests/test_wire.py:114 · its file's page
What it checks (4)
assert out is not Noneobservesoneviaoutassert row["crosses_thread"] is Falsenot attributedassert row["line_start"] == 0not attributedassert "strength" not in rownot attributed
Where the product reaches it
dossier→subject_payload→_flatten_subject→one(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-001 measured