test_the_bare_tail_is_load_bearing_and_must_keep_matching

Tests › tests/test_locks.py

passed Passed in the packaged run.

What this test is for

Why it exists

`using namespace std;` presents `lock_guard<mutex>` with no qualifier, and that is a REAL acquisition. Measured on the public [entropic](https://github.com/tvanfossen/entropic) tree: 6 `lock_guard<mutex>` and 6 `unique_lock<mutex>` declaration sites are written bare.

Given

  1. operands = {s[1] for s in _sites(_BARE)}
→

When

  1. —
→

Then

  1. ✓ operands equals {"bare_mutex_", "other_mutex_"}

tests/test_locks.py:328 · its file's page

What it checks (1)

  1. assert operands == {"bare_mutex_", "other_mutex_"} observes _sites via operands

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_bare_tail_is_load_bearing_and_must_keep_matching→_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_bare_tail_is_load_bearing_and_must_keep_matching · 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.