test_relative_path_passes

Tests › tests/guard/test_guard_config.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 = validate_output_path("docs/generated/")
→

Then

  1. ✓ result.parts[0] equals "docs"

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

… 244 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.pyother filesother filesother filesother filesopt (line 482)optmain245. run_precommit → report_dir245report_dir246. run_precommit → validate_output_path246validate_output_path247. validate_output_path → resolve_contained_path247resolve_contained_path▶ test enters248. run_precommit → get_requirements248get_requirements249. run_precommit → get_branch_diff_range249get_branch_diff_range

… 108 later steps

tests/guard/test_guard_config.py:305 · its file's page

What it checks (1)

  1. assert result.parts[0] == "docs" observes validate_output_path via result

Where the product reaches it

  • main → _run → run_precommit → validate_output_path (flow)

Call flow

test_relative_path_passes→validate_output_path

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_relative_path_passes · 1 checksvalidate_output_pathresolve_contained_pathREQ-DDB-GUARD-016 · measured
Also reaches 1 requirement

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