test_the_committed_cli_surface_is_current

Tests › tests/test_cli_surface.py

passed Passed in the packaged run.

What this test is for

Why it exists

A REMOVED OR RENAMED verb or flag fails here and is a major bump; an ADDED one is additive — regenerate.

Given

  1. committed = json.loads((Path(__file__).parent.parent / "docs" / "cli-surface.json").read_text())
→

When

  1. cli_surface()
→

Then

  1. ✓ committed equals cli_surface()

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

… 4 earlier steps

program launcherprogram launcherprogram launcherprogram launcherclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyother filesother filesother filesother filesopt (line 730)optmain5. _has_subcommand → _first_positional5_first_positional6. _run → build_parser6build_parser7. build_parser → _add_validate_parser7_add_validate_parser▶ test enters8. _add_validate_parser → list8list9. list → link9link10–14. build_parser → _add_impact_parser10_add_impact_parser +4 more15–16. _run → _has_subcommand15_has_subcommand +1 more

… 341 later steps

tests/test_cli_surface.py:18 · its file's page

What it checks (1)

  1. assert committed == cli_surface(), ( "the covered CLI changed — regenerate with " "`.venv/bin/python -m clew.cli_surface > docs/cli-surface.json`; a removed or renamed " "verb or flag is a major bump" ) observes cli_surface

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_the_committed_cli_surface_is_current→cli_surface

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_the_committed_cli_surface_is_current · 1 checkscli_surfaceREQ-DDB-CLI-001 · measured
Also reaches 8 requirements

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