test_a_handler_declared_at_its_definition_is_an_isr_entry

Tests › tests/test_isr.py

passed Passed in the packaged run.

What this test is for

Why it exists

RIOT and FreeRTOS mostly do NOT register their handlers by call — the vector table is in assembly or generated at build time, and the C side is a definition the linker resolves by NAME. Read at their pins: 127 `isr_*` definitions in RIOT, 882 `*_IRQHandler` in the FreeRTOS demos, plus the CMSIS core exception names and FreeRTOS's documented hooks.

Given

  1. found = {site[ENTRY]: site for site in _sites(_DEFINITIONS)}
  2. for entry in ( "tim0_handler", "TIM1_IRQHandler", "isr_uart0", "SysTick_Handler", "vApplicationTickHook", "uarte_isr", ): assert entry in found, f"{entry} is an interrupt handler; found {sorted(found)}" assert found[entry][KIND] == "isr", f"{entry} got kind {found[entry][KIND]!r}"
→

When

  1. —
→

Then

  1. —

tests/test_isr.py:180 · its file's page

What it checks (2)

  1. assert entry in found, f"{entry} is an interrupt handler; found {sorted(found)}" observes _sites via found
  2. assert found[entry][KIND] == "isr", f"{entry} got kind {found[entry][KIND]!r}" observes _sites via found

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_handler_declared_at_its_definition_is_an_isr_entry→_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_handler_declared_at_its_definition_is_an_isr_entry · 2 checks_sites_walk_spawn_sitesis_python_treeREQ-DDB-PIPE-003 · measured_sitesload_thread_patternsREQ-DDB-SCHEMA-001 · measured_sitesload_thread_patternsdeclaration_originREQ-DDB-SCHEMA-012 · inferred
Also reaches 3 requirements

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