test_an_exempt_status_with_no_test_is_exempt_not_missing

Tests › tests/test_wiki_exempt.py

passed Passed in the packaged run.

What this test is for

Why it exists

planned / configuration → EXEMPT; an implemented one with no test stays MISSING.

Given

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

When

  1. tiers = {r.req_id: r.tier for r in exempt_by_status(evidence, declared, _GUARD)}
→

Then

  1. ✓ tiers equals {"R-PLANNED": "EXEMPT", "R-CONFIG": "EXEMPT", "R-FORGOT": "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:29 · its file's page

What it checks (1)

  1. assert tiers == {"R-PLANNED": "EXEMPT", "R-CONFIG": "EXEMPT", "R-FORGOT": "MISSING"} observes exempt_by_status via tiers

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_an_exempt_status_with_no_test_is_exempt_not_missing→_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_an_exempt_status_with_no_test_is_exempt_not_missing · 1 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.