test_a_guard_from_another_namespace_is_still_a_guard¶
Tests › tests/test_locks.py
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
- —
When
- —
Then
- ✓ [s[1] for s in _sites(_FOREIGN_NS)] equals ["boost_mutex_"]
tests/test_locks.py:342 · its file's page
What it checks (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→_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