test_the_closing_release_is_deterministic_not_traversal_ordered

Tests › tests/test_critical_sections.py

passed Passed in the packaged run.

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

  1. extents = { next(s for s in _sites(_C_EARLY_RETURN, cpp=False) if s[OPERAND] == "q_lock")[END_LINE] for _ in range(5) }
→

When

  1. —
→

Then

  1. ✓ extents equals {10}

tests/test_critical_sections.py:193 · its file's page

What it checks (1)

  1. assert extents == {10} observes _sites via extents

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→_sites

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.

test_the_closing_release_is_deterministic_not_traversal_ordered · 1 checks_sites… 4 calls …enclosingREQ-DDB-PIPE-003 · measured_sites… 4 calls …resolve_sectionREQ-DDB-SCHEMA-011 · measured
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.