passed Passed in the packaged run.
What this test is for Why it exists
Malformed JSON is refused, and the file is not rewritten or truncated.
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.
… 10 earlier steps
command-line usercommand-line user command-line usercommand-line user clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py other filesother files other filesother files alt (line 1171) alt opt (line 485) opt main 11. propose → build_context 11 build_context 12. build_context → derive_scope 12 derive_scope 13. derive_scope → _declared_index_scope 13 _declared_index_scope 14. _declared_index_scope → load_declaration_located 14 load_declaration_located 15. load_declaration_located → _read_mapping 15 _read_mapping 16. _read_mapping → _parsed_declaration 16 _parsed_declaration 17. load_declaration_located → _checked_sections 17 _checked_sections … 26 steps between
command-line usercommand-line user command-line usercommand-line user command-line user clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py clew/scope.py other filesother files other filesother files other files opt (line 696) opt try (line 1003) try opt (line 847) opt loop (line 746) loop loop (line 1055) loop opt (line 1075) opt loop (line 1117) loop main 44. _declared_index_scope → _existing_paths 44 _existing_paths 45. derive_scope → whole_repo_scope 45 whole_repo_scope 46. whole_repo_scope → _gitignored_paths 46 _gitignored_paths 47. _gitignored_paths → git_argv 47 git_argv 48–49. git_argv → _no_ext_diff 48 _no_ext_diff +1 more 50. _gitignored_paths → git_env 50 git_env 51. whole_repo_scope → list 51 list 52–56. whole_repo_scope → nested_repo_roots 52 nested_repo_roots +4 more 57. nested_repo_roots → _nested_repos_under 57 _nested_repos_under 58. whole_repo_scope → _gitignored_paths 58 _gitignored_paths 59–60. whole_repo_scope → _pruned_dirs 59 _pruned_dirs +1 more 61. _pruned_dirs → _skip_dir 61 _skip_dir 62. _pruned_dirs → _descendable 62 _descendable 63–64. _descendable → _is_within 63 _is_within +1 more 65–68. whole_repo_scope → _declaration_note 65 _declaration_note +3 more 69. derive_scope → whole_repo_scope 69 whole_repo_scope 70–71. build_context → repo_source_files 70 repo_source_files +1 more … 85 steps between
command-line usercommand-line user command-line usercommand-line user clew/init_command.pyclew/init_command.py clew/init_command.pyclew/init_command.py other filesother files other filesother files opt (line 4008) opt main 157. export_main → stated_declaration 157 stated_declaration 158. main → init_main 158 init_main 159. init_main → build_parser 159 build_parser ▶ test enters 160–161. init_main → diagnose 160 diagnose +1 more 162. _check_client_config → global_config_evidence 162 global_config_evidence 163. global_config_evidence → claude_state_dir 163 claude_state_dir … 1 step between
command-line usercommand-line user command-line usercommand-line user command-line user clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py clew/scope.py clew/init_command.pyclew/init_command.py clew/init_command.pyclew/init_command.py clew/init_command.py other filesother files other filesother files other files loop (line 312) loop loop (line 314) loop try (line 1304) try loop (line 710) loop try (line 683) try main 165. _check_client_config → global_config_available 165 global_config_available 166. global_config_available → global_config_evidence 166 global_config_evidence 167. diagnose → _check_server_command 167 _check_server_command 168. _check_server_command → resolve_server_command 168 resolve_server_command 169–171. resolve_server_command → _locate_script 169 _locate_script +2 more 172–173. diagnose → _check_mcp_sdk 172 _check_mcp_sdk +1 more 174. _check_doxygen → uses_rustdoc 174 uses_rustdoc 175–176. uses_rustdoc → discover_doxyfile 175 discover_doxyfile +1 more 177. _check_doxygen → _needs_doxygen 177 _needs_doxygen 178. _needs_doxygen → claims 178 claims 179. _check_doxygen → doxygen_supports_sqlite3 179 doxygen_supports_sqlite3 180. doxygen_supports_sqlite3 → clean_subprocess_env 180 clean_subprocess_env 181. diagnose → _check_indexable 181 _check_indexable 182. _check_indexable → discover_doxyfile 182 discover_doxyfile 183. _check_indexable → derive_scope 183 derive_scope 184. diagnose → _check_declaration 184 _check_declaration 185. init_main → _format_check 185 _format_check ▶ test enters 186–187. init_main → _register 186 _register +1 more 188. _register → resolve_server_command 188 resolve_server_command 189. _register → server_entry 189 server_entry 190. _register → config_path 190 config_path 191. config_path → global_config_path 191 global_config_path 192. _register → plan_merge 192 plan_merge 193. plan_merge → load_document 193 load_document 194–195. plan_merge → _classify 194 _classify +1 more … 205 later steps
4 more tests/test_init.py:539 · its file's page
Where the product reaches it Call flow test_malformed_json_is_refused_and_left_alone→ _run
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 9 requirements Its run touches their code; that is reach, not proof.