test_what_the_definition_forms_refuse

Tests › tests/test_isr.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE THREE REFUSALS, each measured rather than assumed.

Given

  1. entries = {site[ENTRY] for site in _sites(_DEFINITIONS)}
→

When

  1. —
→

Then

  1. ✓ entries does not contain "Reset_Handler"
  2. ✓ entries does not contain "isr_helper"
  3. ✓ entries does not contain "TIM2_IRQHandler"

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

What it checks (3)

  1. assert "Reset_Handler" not in entries, "the reset entry reaches main(); it is not an ISR" observes _sites via entries
  2. assert "isr_helper" not in entries, "a handler-shaped name taking an argument is a helper" observes _sites via entries
  3. assert "TIM2_IRQHandler" not in entries, "a declaration defines no handler" observes _sites via entries

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→_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_what_the_definition_forms_refuse · 3 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.