test_mapping_form_loads

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. catalog = tmp_path / "reqs.yaml"
  2. monkeypatch.chdir(tmp_path)
  3. catalog.write_text( dedent("""\ requirements: REQ-VAL-001: name: Presence check subsystem: Validate """) )
→

When

  1. config = deep_merge( CONFIG_DEFAULTS, {"requirements": {"file": catalog.name, "format": "yaml"}}, )
  2. load_requirements(config)
→

Then

  1. ✓ load_requirements(config)["REQ-VAL-001"] equals "Presence check"

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

… 53 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.pyloop (line 391)loopmain54. run_precommit → _validate_files54_validate_files55. _validate_files → load_requirements_full55load_requirements_full56. load_requirements_full → _get_requirements_config56_get_requirements_config57. _get_requirements_config → get_requirements57get_requirements58. _get_requirements_config → resolve_contained_path58resolve_contained_path59. load_requirements_full → _validate_requirements59_validate_requirements60. _validate_requirements → get_validate60get_validate61. _validate_requirements → _summarise_id61_summarise_id62. _validate_files → load_external_requirements62load_external_requirements63. load_external_requirements → get_requirements63get_requirements

… 208 steps between

program launcherprogram launcherprogram launcherprogram launcherclew/guard/impact.pyclew/guard/impact.pyclew/guard/impact.pyclew/guard/impact.pyloop (line 583)loopopt (line 587)optmain272–273. impact_report → build_report272build_report +1 more274. load_requirements → _get_requirements_config274_get_requirements_config▶ test enters275. load_requirements → load_requirements_full275load_requirements_full276–277. build_report → _place_untagged276_place_untagged +1 more

… 80 later steps

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

What it checks (1)

  1. assert load_requirements(config)["REQ-VAL-001"] == "Presence check" observes load_requirements

Where the product reaches it

  • main → _run → load_config → deep_merge (flow)
  • main → _run → run_precommit → impact_report → build_report → load_requirements (flow)

Call flow

test_mapping_form_loads→deep_merge→load_requirements

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_mapping_form_loads · 1 checksload_requirementsREQ-DDB-GUARD-009 · measuredload_requirements_get_requirements_configREQ-DDB-GUARD-011 · measuredload_requirements_get_requirements_configresolve_contained_pathREQ-DDB-GUARD-016 · measured
Also reaches 3 requirements

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