passed Passed in the packaged run.
What this test is for Why it exists
The test says nothing about why.
Given
content = dedent("""\ void Helper(int x); void Helper(int x) { do_stuff(x); } """)functions = parse_c(content)→ When
violations = check_presence(functions, "test.c", CONFIG_DEFAULTS)→ Then
✓ len(functions) equals 1✓ functions[0].name equals "Helper"✓ functions[0].doxygen is None✓ len(violations) equals 1✓ violations[0].message contains "no doxygen comment"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.
… 112 earlier steps
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 loop (line 647) loop opt (line 786) opt opt (line 658) opt opt (line 377) opt alt (line 380) alt opt (line 383) opt opt (line 384) opt opt (line 400) opt opt (line 681) opt opt (line 683) opt main 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 ▶ test enters 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–130. _collect_functions → _resolve_function_node 129 _resolve_function_node +1 more 131. _resolve_function_node → _bound_function 131 _bound_function 132–137. _collect_functions → _extract_function_name 132 _extract_function_name +5 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 … 20 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 195) opt loop (line 118) loop opt (line 120) opt opt (line 268) opt opt (line 138) opt opt (line 247) opt main 174. apply_autobrief → _unmask_escaped_at 174 _unmask_escaped_at 175. validate_file → check_presence 175 check_presence 176. check_presence → get_validate 176 get_validate ▶ test enters 177. check_presence → _is_void_function 177 _is_void_function 178. _is_void_function → _is_rust_unit_fn 178 _is_rust_unit_fn 179. check_presence → _suggest_skeleton 179 _suggest_skeleton 180. check_presence → _brief_hint 180 _brief_hint 181. validate_file → check_return_presence 181 check_return_presence … 176 later steps
tests/guard/test_guard_edge_cases.py:297 · its file's page
What it checks (5) assert len(functions) == 1 observes parse_c via functions assert functions[0].name == "Helper" observes parse_c via functions assert functions[0].doxygen is None observes parse_c via functions assert len(violations) == 1 observes check_presence via violations assert "no doxygen comment" in violations[0].message observes check_presence via violations Where the product reaches it main → _run → run_precommit → _validate_files → validate_file → check_presence (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.