test_without_a_declaration_nothing_is_exempt

Tests › tests/test_wiki_exempt.py

passed Passed in the packaged run.

What this test is for

Why it exists

No guard config or no exempt_status: every untested requirement stays MISSING.

Given

  1. evidence = [_row("R-PLANNED", "MISSING")]
  2. declared = {"R-PLANNED": {"x-status": "planned"}}
→

When

  1. exempt_by_status(evidence, declared, None)
  2. exempt_by_status(evidence, declared, {"impact": {}})
→

Then

  1. ✓ exempt_by_status(evidence, declared, None)[0].tier equals "MISSING"
  2. ✓ exempt_by_status(evidence, declared, {"impact": {}})[0].tier equals "MISSING"

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

`main` (clew/guard/main.py) · 1 of 357 steps

… 312 earlier steps

program launcherprogram launcherprogram launcherprogram launcherclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/coverage.pyclew/guard/coverage.pyclew/guard/coverage.pyclew/guard/coverage.pyother filesother filesother filesother filesloop (line 208)looploop (line 150)loopmain313. _exempt → get_requirements313get_requirements314. _exempt → exemption314exemption315. exemption → list315list▶ test enters316. analyze_coverage → traceability316traceability317. traceability → is_test_path317is_test_path

… 40 later steps

tests/test_wiki_exempt.py:56 · its file's page

What it checks (2)

  1. assert exempt_by_status(evidence, declared, None)[0].tier == "MISSING" observes exempt_by_status
  2. assert exempt_by_status(evidence, declared, {"impact": {}})[0].tier == "MISSING" observes exempt_by_status

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_without_a_declaration_nothing_is_exempt→_row→exempt_by_status

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_without_a_declaration_nothing_is_exempt · 2 checksexempt_by_statusexemptionREQ-DDB-GUARD-022 · measuredexempt_by_statusREQ-DDB-WIKI-002 · measured
Also reaches 2 requirements

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