passed Passed in the packaged run.
What this test is for Why it exists
The test says nothing about why.
Given
config = _rust_config()head = "/// Summary.\n/// @version 1\nfn f() -> u8 {\n 1\n}\n"edited = head.replace(" 1", " 2")→ When
head_funcs = parse_content_for_file("lib.rs", head, config)funcs = parse_content_for_file("lib.rs", edited, config)(violation,) = check_version_staleness(funcs, "lib.rs", config, edited, head_funcs, head)3 more bumped = edited.replace("@version 1", "@version 2")funcs = parse_content_for_file("lib.rs", bumped, config)check_version_staleness(funcs, "lib.rs", config, bumped, head_funcs, head)→ Then
✓ violation.check equals "version"✓ check_version_staleness(funcs, "lib.rs", config, bumped, head_funcs, head) 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.
… 41 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 loop (line 793) loop opt (line 795) opt loop (line 651) loop opt (line 653) opt opt (line 733) opt main 42–43. load_config → _fresh_defaults 42 _fresh_defaults +1 more 44. apply_opt_in_languages → deep_merge 44 deep_merge ▶ test enters 45. deep_merge → deep_merge 45 deep_merge 46. load_config → deep_merge 46 deep_merge 47. _run → run_precommit 47 run_precommit … 56 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/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 opt (line 786) opt loop (line 647) loop opt (line 652) opt main 104–105. parse_source_file → parse_source_file_with_content 104 parse_source_file_with_content +1 more 106. parse_content_for_file → get_language_config 106 get_language_config ▶ test enters 107. get_language_config → get_validate 107 get_validate 108–109. parse_content_for_file → resolve_parse_settings 108 resolve_parse_settings +1 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–121. parse_functions_ts → _collect_functions 118 _collect_functions +3 more 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 658) opt elif (line 379) elif opt (line 400) 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–132. _collect_functions → _resolve_function_node 129 _resolve_function_node +3 more 133. _extract_function_name → _name_from_declarator 133 _name_from_declarator 134–139. _collect_functions → _function_carrier 134 _function_carrier +5 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 loop (line 146) loop elif (line 153) elif 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–168. parse_doxygen_tags → _mask_escaped_at 165 _mask_escaped_at +3 more 169. parse_doxygen_tags → _finalize_tag 169 _finalize_tag 170. parse_doxygen_tags → _finalize_tag 170 _finalize_tag 171. _check_file_block_tags → apply_autobrief 171 apply_autobrief 172–174. apply_autobrief → _mask_escaped_at 172 _mask_escaped_at +2 more 175. validate_file → check_presence 175 check_presence 176. check_presence → get_validate 176 get_validate … 55 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 opt (line 265) opt loop (line 458) loop loop ×2 (line 459) loop ×2 main 232. validate_file → parse_content_for_file 232 parse_content_for_file 233. validate_file → check_version_staleness 233 check_version_staleness 234. check_version_staleness → get_validate 234 get_validate ▶ test enters 235–237. check_version_staleness → _index_by_identity 235 _index_by_identity +2 more 238–239. _pair_copies → _body_text 238 _body_text ×2 240. _pair_copies → 240 … 1 call not run 241–243. check_version_staleness → _pair_by_name 241 _pair_by_name +2 more 244. _validate_files → _report_skips 244 _report_skips 245. run_precommit → report_dir 245 report_dir … 112 later steps
tests/guard/test_guard_rust.py:172 · its file's page
What it checks (2) assert violation.check == "version" not attributed assert check_version_staleness(funcs, "lib.rs", config, bumped, head_funcs, head) == [] observes check_version_staleness Where the product reaches it main → _run → run_precommit → _validate_files → validate_file → check_version_staleness (flow) main → _run → run_precommit → _validate_files → validate_file → parse_content_for_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.
Also reaches 8 requirements Its run touches their code; that is reach, not proof.