test_an_unnamed_operand_yields_no_section¶
Tests › tests/test_critical_sections.py
What this test is for
Why it exists
Without an operand there is no lock identity to attribute membership to, and L1 already refuses to create a lock row for one. L2 must agree rather than recording calls under a section belonging to nothing.
Given
- —
When
section = resolve_section(_rootless_node(), b"int x;", None, "")
Then
- ✓ section.end_line is None
- ✓ section.calls equals []
- ✓ section.confidence equals EXTENT_UNRESOLVED
tests/test_critical_sections.py:281 · its file's page
What it checks (3)
assert section.end_line is Noneobservesresolve_sectionviasectionassert section.calls == []observesresolve_sectionviasectionassert section.confidence == EXTENT_UNRESOLVEDobservesresolve_sectionviasection
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
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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-003 measured
- REQ-DDB-SCHEMA-011 measured