test_renders_table

Tests › tests/guard/test_guard_impact.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Given

  1. entries = [ ImpactEntry( req_id="REQ-0252", req_name="Pairing", functions=[ChangedFunction(name="Func", file_path="a.c", reqs=["REQ-0252"])], ), ]
→

When

  1. result = format_markdown(entries)
→

Then

  1. ✓ result contains "## Change Impact Report"
  2. ✓ result contains "REQ-0252"
  3. ✓ result contains "Func"
  4. ✓ result contains "1 requirement(s)"

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) · 7 of 357 steps

… 280 earlier steps

program launcherprogram launcherprogram launcherprogram launcherclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/impact.pyclew/guard/impact.pyclew/guard/impact.pyclew/guard/impact.pyother filesother filesother filesother filesopt (line 673)optloop (line 684)loopopt (line 482)optloop ×5 (line 699)loop ×5main281. _write_report → format_markdown281format_markdown282. format_markdown → _unmapped_markdown282_unmapped_markdown283. format_markdown → _markdown_row283_markdown_row▶ test enters284–288. _markdown_row → _cell284_cell ×5289. format_markdown → _unmapped_markdown289_unmapped_markdown290. _write_report → format_json290format_json291. run_precommit → git_add291git_add

… 66 later steps

tests/guard/test_guard_impact.py:295 · its file's page

What it checks (4)

  1. assert "## Change Impact Report" in result observes format_markdown via result
  2. assert "REQ-0252" in result observes format_markdown via result
  3. assert "Func" in result observes format_markdown via result
  4. assert "1 requirement(s)" in result observes format_markdown via result

Where the product reaches it

  • main → _run → run_precommit → format_markdown (flow)

Call flow

test_renders_table→format_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_renders_table · 4 checksformat_markdownREQ-DDB-GUARD-010 · measured
Also reaches 1 requirement

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