test_a_declared_isr_predicate_guards¶
Tests › tests/test_blocking_declared.py
What this test is for
Why it exists
A call of a declared predicate in the enclosing condition is a guard.
Given
src = "void f(void) { if (!up_interrupt_context()) { os_sem_wait(&s, OS_WAIT_FOREVER); } }"(site,) = _sites(src, _DECLARED)
When
- —
Then
- ✓ site[4] contains "up_interrupt_context"
tests/test_blocking_declared.py:48 · its file's page
What it checks (1)
assert "up_interrupt_context" in site[4]not attributed
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_declared_isr_predicate_guards→_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-INDEX-002 inferred
- REQ-DDB-PIPE-003 measured