test_a_declared_isr_predicate_guards

Tests › tests/test_blocking_declared.py

passed Passed in the packaged run.

What this test is for

Why it exists

A call of a declared predicate in the enclosing condition is a guard.

Given

  1. src = "void f(void) { if (!up_interrupt_context()) { os_sem_wait(&s, OS_WAIT_FOREVER); } }"
  2. (site,) = _sites(src, _DECLARED)
→

When

  1. —
→

Then

  1. ✓ site[4] contains "up_interrupt_context"

tests/test_blocking_declared.py:48 · its file's page

What it checks (1)

  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→_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_declared_isr_predicate_guards · 1 checks_sitesblocking_harvestermanifest_keyhash_fileREQ-DDB-INDEX-002 · inferred_sitesblocking_harvestermanifest_keyREQ-DDB-PIPE-003 · measured
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.