passed Passed in the packaged run.
What this test is for Why it exists
The test says nothing about why.
Given
c_file = tmp_path / "test.c"c_file.write_text( dedent("""\ /** * @brief Func. * @version 1.0 * @req REQ-0252 */ void Func(void) { impl(); } """) )2 more def mock_runner(cmd): return "@@ -6,1 +6,1 @@\n-old\n+new\n"config = _make_impact_config(req_file=FIXTURES_DIR / "impact" / "req.csv")→ When
result = run_impact( [str(c_file)], config, staged=True, run_command=mock_runner, )→ Then
✓ result contains "REQ-0252"✓ result contains "Func"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.
… 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 … 30 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/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 opt (line 168) opt loop (line 647) loop opt (line 786) opt opt (line 377) opt elif (line 379) elif 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 102. gate_exclusion → binary_file 102 binary_file 103. validate_file → parse_source_file 103 parse_source_file 104–109. parse_source_file → parse_source_file_with_content 104 parse_source_file_with_content +5 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–126. _collect_functions → _declared_function 123 _declared_function +3 more 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–139. _find_preceding_doxygen → _collect_rust_doc 138 _collect_rust_doc +1 more 140–142. _find_preceding_doxygen → _collect_python_comments 140 _collect_python_comments +2 more 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/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/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 ▶ test enters 173–174. apply_autobrief → _split_inline_tags 173 _split_inline_tags +1 more 175. validate_file → check_presence 175 check_presence 176. check_presence → get_validate 176 get_validate … 52 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 clew/guard/checks.pyclew/guard/checks.py clew/guard/checks.pyclew/guard/checks.py other filesother files other filesother files opt (line 265) opt main 229. validate_file → get_file_at_revision 229 get_file_at_revision 230. get_file_at_revision → run_git 230 run_git 231. run_git → git_argv 231 git_argv 232. validate_file → parse_content_for_file 232 parse_content_for_file 233. validate_file → check_version_staleness 233 check_version_staleness … 22 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 other filesother files other filesother files other files opt (line 853) opt loop (line 188) loop opt (line 114) opt opt (line 116) opt opt (line 92) opt opt (line 94) opt opt (line 98) opt loop (line 583) loop opt (line 587) opt opt (line 482) opt main 256. impact_report → get_changed_files 256 get_changed_files 257. get_changed_files → run_git 257 run_git 258. impact_report → collect_changes 258 collect_changes ▶ test enters 259–260. collect_changes → _collect_changed_lines 259 _collect_changed_lines +1 more 261. _get_file_diff → get_staged_diff 261 get_staged_diff 262. get_staged_diff → run_git 262 run_git 263. _get_file_diff → get_diff 263 get_diff 264. get_diff → run_git 264 run_git 265. _collect_changed_lines → parse_changed_lines 265 parse_changed_lines 266. _collect_changed_lines → _get_file_diff 266 _get_file_diff 267. _collect_changed_lines → parse_changed_lines 267 parse_changed_lines 268. collect_changes → _extract_changed_functions 268 _extract_changed_functions 269. _extract_changed_functions → parse_source_file 269 parse_source_file 270. impact_report → find_index 270 find_index 271. find_index → registered_index 271 registered_index 272–275. impact_report → build_report 272 build_report +3 more 276. build_report → _place_untagged 276 _place_untagged 277. build_report → _reviewers 277 _reviewers 278. run_precommit → _write_report 278 _write_report 279. _write_report → validate_output_path 279 validate_output_path … 1 step between
program launcherprogram launcher program launcherprogram launcher clew/guard/main.pyclew/guard/main.py clew/guard/main.pyclew/guard/main.py clew/guard/impact.pyclew/guard/impact.py clew/guard/impact.pyclew/guard/impact.py other filesother files other filesother files opt (line 673) opt loop (line 684) loop opt (line 482) opt loop ×5 (line 699) loop ×5 main 281. _write_report → format_markdown 281 format_markdown 282. format_markdown → _unmapped_markdown 282 _unmapped_markdown 283. format_markdown → _markdown_row 283 _markdown_row ▶ test enters 284–288. _markdown_row → _cell 284 _cell ×5 289. format_markdown → _unmapped_markdown 289 _unmapped_markdown 290. _write_report → format_json 290 format_json 291. run_precommit → git_add 291 git_add … 24 steps between
program launcherprogram launcher program launcherprogram launcher clew/guard/config.pyclew/guard/config.py clew/guard/config.pyclew/guard/config.py clew/guard/coverage.pyclew/guard/coverage.py clew/guard/coverage.pyclew/guard/coverage.py other filesother files other filesother files loop (line 150) loop opt (line 57) opt main 316. analyze_coverage → traceability 316 traceability 317. traceability → is_test_path 317 is_test_path 318. is_test_path → _matcher 318 _matcher ▶ test enters 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_impact.py:352 · its file's page
What it checks (2) assert "REQ-0252" in result observes run_impact via result assert "Func" in result observes run_impact via result 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.
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 2 more requirement paths, listed below.
Also reaches 16 requirements Its run touches their code; that is reach, not proof.