test_what_the_definition_forms_refuse¶
Tests › tests/test_isr.py
What this test is for
Why it exists
THE THREE REFUSALS, each measured rather than assumed.
Given
entries = {site[ENTRY] for site in _sites(_DEFINITIONS)}
When
- —
Then
- ✓ entries does not contain "Reset_Handler"
- ✓ entries does not contain "isr_helper"
- ✓ entries does not contain "TIM2_IRQHandler"
tests/test_isr.py:206 · its file's page
What it checks (3)
assert "Reset_Handler" not in entries, "the reset entry reaches main(); it is not an ISR"observes_sitesviaentriesassert "isr_helper" not in entries, "a handler-shaped name taking an argument is a helper"observes_sitesviaentriesassert "TIM2_IRQHandler" not in entries, "a declaration defines no handler"observes_sitesviaentries
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_what_the_definition_forms_refuse→_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