test_the_msp430_two_argument_isr_macro_names_its_handler

Tests › tests/test_isr.py

passed Passed in the packaged run.

What this test is for

Why it exists

`ISR(VECTOR, name) { ... }` (cpu/msp430/include/cpu.h:42) expands to `void __attribute__((naked, interrupt(VECTOR))) name(void)`, and tree-sitter parses the site as a CALL followed by a detached compound statement — so there is no function_definition to classify and the definition walk sees nothing. 9 handlers missed in the RIOT scope.

Given

  1. found = {site[ENTRY]: site for site in _sites(_MACRO_NAMED)}
→

When

  1. —
→

Then

  1. ✓ found contains "isr_timer0_cc0"
  2. ✓ found["isr_timer0_cc0"][KIND] equals "isr"
  3. ✓ found does not contain "ISR_NAKED"
  4. ✓ found does not contain "ISR_BLOCK"

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

What it checks (4)

  1. assert "isr_timer0_cc0" in found, f"the msp430 handler must be named; found {sorted(found)}" observes _sites via found
  2. assert found["isr_timer0_cc0"][KIND] == "isr" observes _sites via found
  3. assert "ISR_NAKED" not in found, "an avr-libc ISR attribute is not a handler" observes _sites via found
  4. assert "ISR_BLOCK" not in found, "an avr-libc ISR attribute is not a handler" 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_the_msp430_two_argument_isr_macro_names_its_handler→_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_the_msp430_two_argument_isr_macro_names_its_handler · 4 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.