passed Passed in the packaged run.
What this test is for Why it exists
The test says nothing about why.
Given
js = b"/** Adds. */\nfunction add(a, b) { return a + b; }\nmodule.exports = { add };\n"tsx = b"export function App() { return <div>{x}</div>; }\n"→ → Then
✓ [f["name"] for f in harvest_definitions(_tree("javascript", js), js)["functions"]] equals [ "add" ]✓ [f["name"] for f in harvest_definitions(_tree("tsx", tsx), tsx)["functions"]] equals ["App"]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.
… 127 earlier steps
program launcherprogram launcher program launcherprogram launcher program launcher 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 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 128. _append_declaration → _extract_signature 128 _extract_signature 129. _collect_functions → _resolve_function_node 129 _resolve_function_node 130. _resolve_function_node → _unwrap_decorated 130 _unwrap_decorated ▶ test enters 131. _resolve_function_node → _bound_function 131 _bound_function 132–134. _collect_functions → _extract_function_name 132 _extract_function_name +2 more 135. _function_carrier → _bound_function 135 _bound_function 136. _collect_functions → _find_preceding_doxygen 136 _find_preceding_doxygen 137. _find_preceding_doxygen → _preceding_node 137 _preceding_node ▶ test enters 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–147. _collect_functions → _qualified_enclosing 146 _qualified_enclosing +1 more 148. _extract_signature → _function_carrier 148 _function_carrier ▶ test enters 149–151. _collect_functions → _js_returns_void 149 _js_returns_void +2 more 152. _produced_class → _function_carrier 152 _function_carrier ▶ test enters 153–154. _collect_functions → _collect_functions 153 _collect_functions +1 more … 8 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 opt (line 149) opt 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–166. parse_doxygen_tags → _mask_escaped_at 165 _mask_escaped_at +1 more 167–169. parse_doxygen_tags → _finalize_tag 167 _finalize_tag +2 more 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 … 181 later steps
tests/test_jsts.py:90 · its file's page
What it checks (2) assert [f["name"] for f in harvest_definitions(_tree("javascript", js), js)["functions"]] == [ "add" ] observes _tree assert [f["name"] for f in harvest_definitions(_tree("tsx", tsx), tsx)["functions"]] == ["App"] observes _tree 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.
Call flow test_definitions_in_plain_javascript_and_tsx→ _tree
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 5 requirements Its run touches their code; that is reach, not proof.