passed Passed in the packaged run.
What this test is for Why it exists
The test says nothing about why.
Given
source_dir = str(FIXTURES_DIR / "sources")→ When
config = deep_merge( BASE_CONFIG, { "requirements": { "file": str(FIXTURES_DIR / "sources" / "requirements.csv"), "id_column": "Req ID", "name_column": "Name", "format": "csv", }, }, )report = analyze_coverage([source_dir], config)→ Then
✓ report contains "total_requirements"✓ report contains "covered"✓ report contains "uncovered"✓ report contains "orphan_refs"✓ isinstance(report["covered"], list) holdsWhat 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.
… 53 earlier steps
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 clew/guard/impact.pyclew/guard/impact.py clew/guard/impact.pyclew/guard/impact.py loop (line 391) loop main 54. run_precommit → _validate_files 54 _validate_files 55. _validate_files → load_requirements_full 55 load_requirements_full 56. load_requirements_full → _get_requirements_config 56 _get_requirements_config 57. _get_requirements_config → get_requirements 57 get_requirements 58. _get_requirements_config → resolve_contained_path 58 resolve_contained_path 59. load_requirements_full → _validate_requirements 59 _validate_requirements 60. _validate_requirements → get_validate 60 get_validate 61. _validate_requirements → _summarise_id 61 _summarise_id 62. _validate_files → load_external_requirements 62 load_external_requirements 63. load_external_requirements → get_requirements 63 get_requirements … 2 steps between
program launcherprogram launcher program launcherprogram launcher other filesother files other filesother files opt (line 1336) opt alt (line 1344) alt main 66–67. read_catalog_at → git_text 66 git_text +1 more 68–69. git_argv → _no_ext_diff 68 _no_ext_diff +1 more 70–71. read_catalog_at → _refuse_url 70 _refuse_url +1 more … 12 steps between
program launcherprogram launcher program launcherprogram launcher clew/guard/main.pyclew/guard/main.py clew/guard/main.pyclew/guard/main.py other filesother files other filesother files loop (line 69) loop opt (line 178) opt main 84. excluded_by → matches 84 matches 85. validate_file → gate_exclusion 85 gate_exclusion 86–87. gate_exclusion → _gate_matcher 86 _gate_matcher +1 more 88–89. load_toolchain_config → _read_toml 88 _read_toml +1 more … 8 steps between
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 clew/guard/ts_parser.pyclew/guard/ts_parser.py clew/guard/ts_parser.pyclew/guard/ts_parser.py clew/guard/ts_parser.py other filesother files other filesother files other files opt (line 184) opt loop (line 186) loop opt (line 189) opt opt (line 98) opt opt (line 168) opt loop (line 647) loop opt (line 786) opt opt (line 652) opt main 98–99. load_toolchain_config → _entry_globs 98 _entry_globs +1 more 100. _gate_matcher → compile_globs 100 compile_globs 101. gate_exclusion → matches 101 matches 102. gate_exclusion → binary_file 102 binary_file 103. validate_file → parse_source_file 103 parse_source_file 104. parse_source_file → parse_source_file_with_content 104 parse_source_file_with_content 105–109. parse_source_file_with_content → parse_content_for_file 105 parse_content_for_file +4 more 110. parse_content_for_file → language_for_file 110 language_for_file 111–112. language_for_file → language_for_extension 111 language_for_extension +1 more 113. language_for_file → _language_from_config 113 _language_from_config 114. parse_content_for_file → parse_functions 114 parse_functions 115. parse_functions → parse_functions_ts 115 parse_functions_ts 116. parse_functions_ts → get_parser_for_language 116 get_parser_for_language 117. parse_functions_ts → get_language_spec 117 get_language_spec 118–119. parse_functions_ts → _collect_functions 118 _collect_functions +1 more 120. _is_rust_test_item → _rust_attributes 120 _rust_attributes 121. _collect_functions → _enclosing_class_for 121 _enclosing_class_for 122. _enclosing_class_for → _rust_impl_self_type 122 _rust_impl_self_type 123. _collect_functions → _declared_function 123 _declared_function 124–125. _collect_functions → _append_declaration 124 _append_declaration +1 more … 1 step between
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 clew/guard/checks.pyclew/guard/checks.py clew/guard/checks.pyclew/guard/checks.py clew/guard/checks.py clew/guard/ts_parser.pyclew/guard/ts_parser.py clew/guard/ts_parser.pyclew/guard/ts_parser.py clew/guard/ts_parser.py other filesother files other filesother files other files loop (line 647) loop opt (line 377) opt alt (line 380) alt opt (line 383) opt opt (line 384) opt opt (line 400) opt opt (line 658) opt opt (line 681) opt opt (line 683) opt alt (line 684) alt opt (line 227) opt try (line 241) try main 127–128. _append_declaration → _qualified_enclosing 127 _qualified_enclosing +1 more 129–137. _collect_functions → _resolve_function_node 129 _resolve_function_node +8 more 138–140. _find_preceding_doxygen → _collect_rust_doc 138 _collect_rust_doc +2 more 141. _find_preceding_doxygen → _collect_c_comment 141 _collect_c_comment 142. _find_preceding_doxygen → _find_python_docstring_block 142 _find_python_docstring_block 143. _find_preceding_doxygen → parse_doxygen_tags 143 parse_doxygen_tags 144. _find_preceding_doxygen → apply_autobrief 144 apply_autobrief 145. _find_preceding_doxygen → _last_row 145 _last_row 146–149. _collect_functions → _qualified_enclosing 146 _qualified_enclosing +3 more 150. _js_returns_void → _function_carrier 150 _function_carrier 151. _collect_functions → _produced_class 151 _produced_class 152. _produced_class → _function_carrier 152 _function_carrier 153. _collect_functions → _collect_functions 153 _collect_functions 154. _collect_functions → _collect_functions 154 _collect_functions 155. validate_file → unconfigured_language 155 unconfigured_language 156. validate_file → check_file_presence 156 check_file_presence … 6 steps between
program launcherprogram launcher program launcherprogram launcher clew/guard/checks.pyclew/guard/checks.py clew/guard/checks.pyclew/guard/checks.py other filesother files other filesother files opt (line 1198) opt loop (line 143) loop opt (line 1171) opt loop (line 181) loop main 163. _extract_file_block_text → _docstring_block 163 _docstring_block 164. _check_file_block_tags → parse_doxygen_tags 164 parse_doxygen_tags 165–170. parse_doxygen_tags → _mask_escaped_at 165 _mask_escaped_at +5 more 171. _check_file_block_tags → apply_autobrief 171 apply_autobrief 172. apply_autobrief → _mask_escaped_at 172 _mask_escaped_at … 122 steps between
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 clew/guard/impact.pyclew/guard/impact.py clew/guard/impact.pyclew/guard/impact.py clew/guard/impact.py clew/guard/coverage.pyclew/guard/coverage.py clew/guard/coverage.pyclew/guard/coverage.py clew/guard/coverage.py other filesother files other filesother files other files loop (line 179) loop loop (line 182) loop loop (line 208) loop loop (line 150) loop opt (line 57) opt main 295. _coverage_gate → get_requirements 295 get_requirements 296. _coverage_gate → analyze_coverage 296 analyze_coverage 297. analyze_coverage → load_requirements_full 297 load_requirements_full ▶ test enters 298. analyze_coverage → collect_tagged_functions 298 collect_tagged_functions 299. collect_tagged_functions → find_source_files 299 find_source_files 300. find_source_files → get_validate 300 get_validate 301–306. find_source_files → _git_ls_files 301 _git_ls_files +5 more 307. collect_tagged_functions → _process_source_file 307 _process_source_file 308. _process_source_file → parse_source_file_with_content 308 parse_source_file_with_content 309. _process_source_file → _extract_tagged_function 309 _extract_tagged_function 310–312. analyze_coverage → _collect_req_ids 310 _collect_req_ids +2 more 313. _exempt → get_requirements 313 get_requirements 314. _exempt → exemption 314 exemption 315. exemption → list 315 list 316. analyze_coverage → traceability 316 traceability 317. traceability → is_test_path 317 is_test_path 318. is_test_path → _matcher 318 _matcher 319. analyze_coverage → covered_via 319 covered_via 320. covered_via → get_requirements 320 get_requirements … 37 later steps
4 more tests/guard/test_guard_checks_extended.py:175 · its file's page
What it checks (5) assert "total_requirements" in report observes analyze_coverage via report assert "covered" in report observes analyze_coverage via report assert "uncovered" in report observes analyze_coverage via report assert "orphan_refs" in report observes analyze_coverage via report assert isinstance(report["covered"], list) observes analyze_coverage via report Where the product reaches it main → _run → run_precommit → _coverage_gate → analyze_coverage (flow) main → _run → load_config → deep_merge (flow) 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.
and 4 more requirement paths, listed below.
Also reaches 16 requirements Its run touches their code; that is reach, not proof.