test_raii_extent_is_the_block_end_and_needs_no_inference

Tests › tests/test_critical_sections.py

passed Passed in the packaged run.

What this test is for

Why it exists

Nothing had to be reasoned past, so the extent is reported 'high'. This is what makes the C++ idiom the easy half: `confidence` grades the EXTENT, and an RAII hold's extent is not an inference.

Given

  1. site = next(s for s in _sites(_RAII) if s[OPERAND] == "mutex_")
→

When

  1. —
→

Then

  1. ✓ site[END_LINE] equals 8
  2. ✓ site[CONFIDENCE] equals EXTENT_EXACT

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

What it checks (2)

  1. assert site[END_LINE] == 8, "the hold runs to the closing brace of tick()" observes _sites via site
  2. assert site[CONFIDENCE] == EXTENT_EXACT observes _sites via site

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_extent_is_the_block_end_and_needs_no_inference→_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_raii_extent_is_the_block_end_and_needs_no_inference · 2 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.