test_format_coverage_markdown

Tests › tests/guard/test_guard_checks_extended.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Given

  1. report = { "total_requirements": 5, "covered": ["REQ-001", "REQ-002"], "uncovered": ["REQ-003"], "supports_only": [], "orphan_refs": [], "unmapped_functions": ["helper"], }
→

When

  1. md = format_coverage_markdown(report)
→

Then

  1. ✓ md contains "# Requirements Coverage"
  2. ✓ md contains "REQ-003"

tests/guard/test_guard_checks_extended.py:197 · its file's page

What it checks (2)

  1. assert "# Requirements Coverage" in md observes format_coverage_markdown via md
  2. assert "REQ-003" in md observes format_coverage_markdown via md

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_format_coverage_markdown→format_coverage_markdown

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_format_coverage_markdown · 2 checksformat_coverage_markdownREQ-DDB-GUARD-022 · measured
Also reaches 1 requirement

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