test_raii_membership_is_everything_after_the_guard_in_its_block¶
Tests › tests/test_critical_sections.py
What this test is for
Why it exists
A C++ guard holds until the end of its enclosing block, by language rule, so the section needs no release token at all. `prepare()` runs BEFORE the guard is constructed and must not be included — the acquisition's own end byte is the floor, not the start of the block.
Given
- —
When
- —
Then
- ✓ _members(_sites(_RAII), "mutex_") equals ["read_state", "write_state"]
tests/test_critical_sections.py:96 · its file's page
What it checks (1)
assert _members(_sites(_RAII), "mutex_") == ["read_state", "write_state"]observes_members
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_raii_membership_is_everything_after_the_guard_in_its_block→_members→_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