test_empty_report

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. —
→

When

  1. result = format_markdown([])
→

Then

  1. ✓ result contains "No requirements affected"

What this test is for

Why it exists

The test says nothing about why.

Given

  1. —
→

When

  1. result = format_text([])
→

Then

  1. ✓ result contains "No requirements affected"

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

… 279 earlier steps

program launcherprogram launcherprogram launcherprogram launcherclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/impact.pyclew/guard/impact.pyclew/guard/impact.pyclew/guard/impact.pyopt (line 673)optloop (line 684)loopmain280. _write_report → validate_output_path280validate_output_path281. _write_report → format_markdown281format_markdown282. format_markdown → _unmapped_markdown282_unmapped_markdown▶ test enters283–284. format_markdown → _markdown_row283_markdown_row +1 more

… 73 later steps

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

What it checks (1)

  1. assert "No requirements affected" in result observes format_markdown via result

Where the product reaches it

  • main → _run → run_precommit → format_markdown (flow)

Call flow

test_empty_report→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_empty_report · 1 checksformat_markdownREQ-DDB-GUARD-010 · measured

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

What it checks (1)

  1. assert "No requirements affected" in result observes format_text via result

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_empty_report→format_text

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_empty_report · 1 checksformat_textREQ-DDB-GUARD-010 · measured
Also reaches 1 requirement

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