test_dry_run_writes_nothing

Tests › tests/test_init.py

passed Passed in the packaged run.

What this test is for

Why it exists

--dry-run prints the ENTRY it would write, and writes nothing at all.

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.

clew — `main` (clew/cli.py) · 57 of 400 steps

… 10 earlier steps

command-line usercommand-line usercommand-line usercommand-line userclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyother filesother filesother filesother filesalt (line 1171)altopt (line 485)optmain11. propose → build_context11build_context12. build_context → derive_scope12derive_scope13. derive_scope → _declared_index_scope13_declared_index_scope14. _declared_index_scope → load_declaration_located14load_declaration_located15. load_declaration_located → _read_mapping15_read_mapping16. _read_mapping → _parsed_declaration16_parsed_declaration17. load_declaration_located → _checked_sections17_checked_sections

… 26 steps between

command-line usercommand-line usercommand-line usercommand-line usercommand-line userclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyother filesother filesother filesother filesother filesopt (line 696)opttry (line 1003)tryopt (line 847)optloop (line 746)looploop (line 1055)loopopt (line 1075)optloop (line 1117)loopmain44. _declared_index_scope → _existing_paths44_existing_paths45. derive_scope → whole_repo_scope45whole_repo_scope46. whole_repo_scope → _gitignored_paths46_gitignored_paths47. _gitignored_paths → git_argv47git_argv48–49. git_argv → _no_ext_diff48_no_ext_diff +1 more50. _gitignored_paths → git_env50git_env51. whole_repo_scope → list51list52–56. whole_repo_scope → nested_repo_roots52nested_repo_roots +4 more57. nested_repo_roots → _nested_repos_under57_nested_repos_under58. whole_repo_scope → _gitignored_paths58_gitignored_paths59–60. whole_repo_scope → _pruned_dirs59_pruned_dirs +1 more61. _pruned_dirs → _skip_dir61_skip_dir62. _pruned_dirs → _descendable62_descendable63–64. _descendable → _is_within63_is_within +1 more65–68. whole_repo_scope → _declaration_note65_declaration_note +3 more69. derive_scope → whole_repo_scope69whole_repo_scope70–71. build_context → repo_source_files70repo_source_files +1 more

… 85 steps between

command-line usercommand-line usercommand-line usercommand-line userclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyother filesother filesother filesother filesopt (line 4008)optmain157. export_main → stated_declaration157stated_declaration158. main → init_main158init_main159. init_main → build_parser159build_parser▶ test enters160–161. init_main → diagnose160diagnose +1 more162. _check_client_config → global_config_evidence162global_config_evidence163. global_config_evidence → claude_state_dir163claude_state_dir

… 1 step between

command-line usercommand-line usercommand-line usercommand-line usercommand-line userclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyother filesother filesother filesother filesother filesloop (line 312)looploop (line 314)looptry (line 1304)tryloop (line 710)looptry (line 683)tryopt (line 638)optopt (line 4018)optmain165. _check_client_config → global_config_available165global_config_available166. global_config_available → global_config_evidence166global_config_evidence167. diagnose → _check_server_command167_check_server_command168. _check_server_command → resolve_server_command168resolve_server_command169–171. resolve_server_command → _locate_script169_locate_script +2 more172–173. diagnose → _check_mcp_sdk172_check_mcp_sdk +1 more174. _check_doxygen → uses_rustdoc174uses_rustdoc175–176. uses_rustdoc → discover_doxyfile175discover_doxyfile +1 more177. _check_doxygen → _needs_doxygen177_needs_doxygen178. _needs_doxygen → claims178claims179. _check_doxygen → doxygen_supports_sqlite3179doxygen_supports_sqlite3180. doxygen_supports_sqlite3 → clean_subprocess_env180clean_subprocess_env181. diagnose → _check_indexable181_check_indexable182. _check_indexable → discover_doxyfile182discover_doxyfile183. _check_indexable → derive_scope183derive_scope184. diagnose → _check_declaration184_check_declaration185. init_main → _format_check185_format_check▶ test enters186–187. init_main → _register186_register +1 more188. _register → resolve_server_command188resolve_server_command189. _register → server_entry189server_entry190. _register → config_path190config_path191. config_path → global_config_path191global_config_path192. _register → plan_merge192plan_merge193–196. plan_merge → load_document193load_document +3 more197. _register → _execute197_execute198. _execute → _print_conflict198_print_conflict199–200. _execute → _emit199_emit +1 more201. _emit → apply_plan201apply_plan202. _execute → _print_next_steps202_print_next_steps203–204. main → query_main203query_main +1 more

… 196 later steps

4 more

tests/test_init.py:593 · its file's page

Where the product reaches it

Call flow

test_dry_run_writes_nothing→_run→_printed_json→_expected_entry

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.

test_dry_run_writes_nothing_runinit_mainREQ-DDB-CLI-001 · measured_runinit_mainbuild_parserREQ-DDB-CLI-002 · measured_run… 3 calls …derive_scopeREQ-DDB-CONFIG-001 · measured_run… 9 calls …_validate_nodeREQ-DDB-GUARD-012 · inferred_run… 3 calls …discover_doxyfileREQ-DDB-INDEX-001 · measured_expected_entryserver_entryREQ-DDB-MCP-001 · measured_run… 4 calls …clean_subprocess_envREQ-DDB-PIPE-006 · measured_run… 3 calls …_needs_doxygenREQ-DDB-PIPE-012 · inferred_run… 9 calls …allREQ-DDB-WIKI-054 · inferred
Also reaches 9 requirements

Its run touches their code; that is reach, not proof.