test_the_gate_and_wiki_verbs_are_covered

Tests › tests/test_cli_surface.py

passed Passed in the packaged run.

What this test is for

Why it exists

PS2: `clew guard` and `clew wiki` and their subcommands are in the surface.

Given

  1. —
→

When

  1. surface = cli_surface()
→

Then

  1. ✓ {"validate", "impact", "coverage"} is at most set(surface["clew guard"]["subcommands"])
  2. ✓ {"build", "check", "flow"} is at most set(surface["clew wiki"]["subcommands"])
  3. ✓ surface["clew guard"]["subcommands"]["validate"]["options"] contains "--format"

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:34 · its file's page

What it checks (3)

  1. assert {"validate", "impact", "coverage"} <= set(surface["clew guard"]["subcommands"]) observes cli_surface via surface
  2. assert {"build", "check", "flow"} <= set(surface["clew wiki"]["subcommands"]) observes cli_surface via surface
  3. assert "--format" in surface["clew guard"]["subcommands"]["validate"]["options"] observes cli_surface via 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_gate_and_wiki_verbs_are_covered→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_gate_and_wiki_verbs_are_covered · 3 checkscli_surfaceREQ-DDB-CLI-001 · measured
Also reaches 3 requirements

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