test_a_guard_from_another_namespace_is_still_a_guard

Tests › tests/test_locks.py

passed Passed in the packaged run.

What this test is for

Why it exists

`boost::unique_lock` takes exclusive ownership of a mutex exactly as `std::unique_lock` does. The pattern names the CONVENTION, not the namespace, so a matcher keyed on the qualified `std::` spelling would report a boost-flavoured codebase as having no locks at all.

Given

  1. —
→

When

  1. —
→

Then

  1. ✓ [s[1] for s in _sites(_FOREIGN_NS)] equals ["boost_mutex_"]

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

What it checks (1)

  1. assert [s[1] for s in _sites(_FOREIGN_NS)] == ["boost_mutex_"] observes _sites

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