test_unscoped_lock_is_kept_but_marked_rather_than_merged¶
Tests › tests/test_locks.py
What this test is for
Why it exists
A free function's mutex has no class. It is still recorded — dropping it would under-report — but its scope is UNKNOWN so a consumer can weigh it instead of trusting a bare name that may recur elsewhere.
Given
scopes = {s[1]: s[2] for s in _sites(_C, cpp=False)}
When
- —
Then
- ✓ scopes["g_lock"] equals SCOPE_UNKNOWN
tests/test_locks.py:247 · its file's page
What it checks (1)
assert scopes["g_lock"] == SCOPE_UNKNOWNobserves_sitesviascopes
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_unscoped_lock_is_kept_but_marked_rather_than_merged→_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