test_the_closing_release_is_deterministic_not_traversal_ordered¶
Tests › tests/test_critical_sections.py
What this test is for
Why it exists
With two candidate releases the answer must come from the code, not from which one a DFS stack happened to pop first — the defect this rule replaces. Parsing the same bytes repeatedly must give one stable extent.
Given
extents = { next(s for s in _sites(_C_EARLY_RETURN, cpp=False) if s[OPERAND] == "q_lock")[END_LINE] for _ in range(5) }
When
- —
Then
- ✓ extents equals {10}
tests/test_critical_sections.py:193 · its file's page
What it checks (1)
assert extents == {10}observes_sitesviaextents
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
test_the_closing_release_is_deterministic_not_traversal_ordered→_sitesWhat 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-PIPE-003 measured
- REQ-DDB-SCHEMA-011 measured