passed Passed in the packaged run.
What this test is for Why it exists
The test says nothing about why.
Given
c_file = self._project(tmp_path)(tmp_path / ".clew.yaml").write_text( guard_yaml("impact:\n requirements:\n file: reqs.yaml\n format: yaml\n") )monkeypatch.chdir(tmp_path)→ → Then
✓ (0, 1) contains main(["validate", "--no-git", str(c_file)])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.
program launcherprogram launcher program launcherprogram launcher program launcher clew/guard/main.pyclew/guard/main.py clew/guard/main.pyclew/guard/main.py clew/guard/main.py clew/guard/config.pyclew/guard/config.py clew/guard/config.pyclew/guard/config.py clew/guard/config.py other filesother files other filesother files other files try (line 717) try opt (line 730) opt opt (line 733) opt opt (line 705) opt loop (line 417) loop opt (line 420) opt alt (line 421) alt opt (line 715) opt main 1. main → _check_retired_subcommand 1 _check_retired_subcommand ▶ test enters 2. _check_retired_subcommand → _first_positional 2 _first_positional 3–5. main → _run 3 _run +2 more 6. _run → build_parser 6 build_parser 7. build_parser → _add_validate_parser 7 _add_validate_parser 8. _add_validate_parser → list 8 list 9. list → link 9 link 10–14. build_parser → _add_impact_parser 10 _add_impact_parser +4 more 15. _run → _has_subcommand 15 _has_subcommand 16–17. _run → _parse_precommit_args 16 _parse_precommit_args +1 more 18. _run → load_config 18 load_config 19. load_config → refuse_doxygen_guard_leftovers 19 refuse_doxygen_guard_leftovers 20. load_config → _fresh_defaults 20 _fresh_defaults 21. load_config → read_requirements_section 21 read_requirements_section 22–25. read_requirements_section → _validate_node 22 _validate_node +3 more 26–27. _validate_node → _validate_dict_node 26 _validate_dict_node +1 more 28. _validate_dict_node → _suggest_key 28 _suggest_key 29. _suggest_key → list 29 list 30. _validate_dict_node → _validate_node 30 _validate_node 31. load_config → _shared_facts 31 _shared_facts 32. _shared_facts → list 32 list 33. load_config → read_guard_section 33 read_guard_section 34. load_config → _fresh_defaults 34 _fresh_defaults 35–40. load_config → validate_config_schema 35 validate_config_schema +5 more 41–42. load_config → _log_declared_sections 41 _log_declared_sections +1 more … 288 steps between
program launcherprogram launcher program launcherprogram launcher clew/guard/main.pyclew/guard/main.py clew/guard/main.pyclew/guard/main.py clew/guard/coverage.pyclew/guard/coverage.py clew/guard/coverage.pyclew/guard/coverage.py main 331. format_coverage_text → _via 331 _via 332. _coverage_gate → traceability_line 332 traceability_line 333–335. _run → build_parser 333 build_parser +2 more 336–337. _dispatch_subcommand → run_validate 336 run_validate +1 more … 17 steps between
program launcherprogram launcher program launcherprogram launcher clew/guard/main.pyclew/guard/main.py clew/guard/main.pyclew/guard/main.py clew/guard/config.pyclew/guard/config.py clew/guard/config.pyclew/guard/config.py other filesother files other filesother files main 355. _dispatch_subcommand → _run_doxyfile_command 355 _run_doxyfile_command 356. _run_doxyfile_command → build_fragment 356 build_fragment 357. _run → load_config 357 load_config 3 more tests/guard/test_guard_main.py:357 · its file's page
What it checks (1) assert main(["validate", "--no-git", str(c_file)]) in (0, 1) observes _project via c_file 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_no_gate_declared_is_not_an_error→ _project → guard_yaml
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.
Also reaches 3 requirements Its run touches their code; that is reach, not proof.