test_the_msp430_two_argument_isr_macro_names_its_handler¶
Tests › tests/test_isr.py
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
found = {site[ENTRY]: site for site in _sites(_MACRO_NAMED)}
When
- —
Then
- ✓ found contains "isr_timer0_cc0"
- ✓ found["isr_timer0_cc0"][KIND] equals "isr"
- ✓ found does not contain "ISR_NAKED"
- ✓ found does not contain "ISR_BLOCK"
tests/test_isr.py:403 · its file's page
What it checks (4)
assert "isr_timer0_cc0" in found, f"the msp430 handler must be named; found {sorted(found)}"observes_sitesviafoundassert found["isr_timer0_cc0"][KIND] == "isr"observes_sitesviafoundassert "ISR_NAKED" not in found, "an avr-libc ISR attribute is not a handler"observes_sitesviafoundassert "ISR_BLOCK" not in found, "an avr-libc ISR attribute is not a handler"observes_sitesviafound
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→_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 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-003 measured
- REQ-DDB-SCHEMA-001 measured
- REQ-DDB-SCHEMA-012 inferred