passed Passed in the packaged run.
What this test is for Why it exists
The test says nothing about why.
Given
rs_file = tmp_path / "test.rs"rs_file.write_text("fn foo() {}")def mock_runner(cmd): return "@@ -1,1 +1,1 @@\n-old\n+new\n"→ When
result = collect_changed_functions( [str(rs_file)], CONFIG_DEFAULTS, staged=True, run_command=mock_runner, )→ What this test is for Why it exists
The test says nothing about why.
Given
py_file = tmp_path / "script.rs"py_file.write_text("fn foo() {}")→ When
violations = validate_file(str(py_file), CONFIG_DEFAULTS, no_git=True)→ Then
✓ violations equals []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.
tests/guard/test_guard_impact.py… 65 earlier steps
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 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 102. gate_exclusion → binary_file 102 binary_file 103. validate_file → parse_source_file 103 parse_source_file 104–107. parse_source_file → parse_source_file_with_content 104 parse_source_file_with_content +3 more 108–109. parse_content_for_file → resolve_parse_settings 108 resolve_parse_settings +1 more … 119 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 … 23 steps between
program launcherprogram launcher program launcherprogram launcher program launcher 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 loop (line 188) loop opt (line 114) opt opt (line 116) opt opt (line 92) opt opt (line 94) opt opt (line 98) opt main 257. get_changed_files → run_git 257 run_git 258. impact_report → collect_changes 258 collect_changes 259. collect_changes → _collect_changed_lines 259 _collect_changed_lines ▶ test enters 260. _collect_changed_lines → _get_file_diff 260 _get_file_diff 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 … 86 later steps
4 more tests/guard/test_guard_main.py… 78 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 other filesother files other filesother files try (line 345) try loop (line 326) loop loop (line 69) loop main 79. load_failure_mode_ids → modes_of 79 modes_of 80. _validate_files → validate_file 80 validate_file 81. validate_file → get_validate 81 get_validate ▶ test enters 82. validate_file → excluded_by 82 excluded_by 83–84. excluded_by → compile_globs 83 compile_globs +1 more 85. validate_file → gate_exclusion 85 gate_exclusion 86. gate_exclusion → _gate_matcher 86 _gate_matcher 87–88. _gate_matcher → load_toolchain_config 87 load_toolchain_config +1 more … 11 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 opt (line 98) opt main 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 ▶ test enters 104–107. parse_source_file → parse_source_file_with_content 104 parse_source_file_with_content +3 more 108–109. parse_content_for_file → resolve_parse_settings 108 resolve_parse_settings +1 more … 43 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 clew/guard/ts_parser.pyclew/guard/ts_parser.py clew/guard/ts_parser.pyclew/guard/ts_parser.py loop (line 647) loop opt (line 658) opt opt (line 681) opt opt (line 683) opt opt (line 227) opt try (line 241) try main 153–154. _collect_functions → _collect_functions 153 _collect_functions +1 more 155. validate_file → unconfigured_language 155 unconfigured_language ▶ test enters 156. validate_file → check_file_presence 156 check_file_presence 157. check_file_presence → get_validate 157 get_validate … 200 later steps
tests/guard/test_guard_impact.py:92 · its file's page
What it checks (1) assert result == [] observes collect_changed_functions 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.
tests/guard/test_guard_main.py:31 · its file's page
What it checks (1) assert violations == [] observes validate_file via violations Where the product reaches it main → _run → run_precommit → _validate_files → validate_file (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 13 more requirement paths, listed below.
Also reaches 27 requirements Its run touches their code; that is reach, not proof.