test_stats_and_cull_are_cli_verbs

Tests › tests/test_surface_2_0.py

passed Passed in the packaged run.

What this test is for

Why it exists

`clew query stats` grades an index; `clew cull` sweeps the registry.

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.

thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 55 of 142 steps

thread startthread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyother filesother filesother filesother filesother filestry (line 1664)trytry (line 1003)tryopt (line 847)optloop (line 746)looploop (line 1055)loopopt (line 1075)optloop (line 1117)loop_first_build_worker1. _first_build_worker → first_party_sub_index1first_party_sub_index2. first_party_sub_index → whole_repo_scope2whole_repo_scope3. whole_repo_scope → _gitignored_paths3_gitignored_paths▶ test enters4. _gitignored_paths → git_argv4git_argv5–6. git_argv → _no_ext_diff5_no_ext_diff +1 more7. list → link7link8. _gitignored_paths → git_env8git_env9. whole_repo_scope → list9list10–14. whole_repo_scope → nested_repo_roots10nested_repo_roots +4 more15. nested_repo_roots → _nested_repos_under15_nested_repos_under16. whole_repo_scope → _gitignored_paths16_gitignored_paths17–18. whole_repo_scope → _pruned_dirs17_pruned_dirs +1 more19. _pruned_dirs → _skip_dir19_skip_dir20. _pruned_dirs → _descendable20_descendable21–22. _descendable → _is_within21_is_within +1 more23–26. whole_repo_scope → _declaration_note23_declaration_note +3 more27–28. first_party_sub_index → _under_any27_under_any +1 more

… 4 steps between

thread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pytry (line 1664)tryopt (line 1666)optopt (line 352)opt_first_build_worker33. _first_build_worker → target_for33target_for34. target_for → _safe_index_name34_safe_index_name35. target_for → state_home35state_home▶ test enters36. _first_build_worker → _run_build36_run_build37. _run_build → nested_tree_cache37nested_tree_cache

… 23 steps between

thread startthread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyother filesother filesother filesother filesother filestry (line 3260)tryalt (line 1171)altopt (line 485)opt_first_build_worker61. _run_build_walked → captured_output61captured_output62. _run_build_walked → build_lock62build_lock63. build_lock → _os_lock63_os_lock▶ test enters64. _os_lock → lock_path64lock_path65. _run_build_walked → db_status65db_status66. db_status → _options_meta66_options_meta▶ test enters67. _options_meta → _meta_section67_meta_section68. _meta_section → meta_section68meta_section69. db_status → stated_options69stated_options70. db_status → read_build_signature70read_build_signature71–79. db_status → _source_drift71_source_drift +8 more80. db_status → list80list81–84. db_status → _diagnostics_meta81_diagnostics_meta +3 more85. db_status → code_identity85code_identity86–88. code_identity → source_fingerprint86source_fingerprint +2 more89. db_status → notices89notices90–91. notices → code_identity90code_identity +1 more92–94. _data_notice → _cost_clause92_cost_clause +2 more95–98. notices → _schema_notice95_schema_notice +3 more99. _run_build_walked → declared_scope_rejection99declared_scope_rejection100. declared_scope_rejection → _declared_index_scope100_declared_index_scope▶ test enters101. _declared_index_scope → load_declaration_located101load_declaration_located102. load_declaration_located → _read_mapping102_read_mapping103. _read_mapping → _parsed_declaration103_parsed_declaration104. load_declaration_located → _checked_sections104_checked_sections

… 30 steps between

thread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyother filesother filesother filesother filescatch (line 3328)catch_first_build_worker135. _sub_index_scope → declared_sub_index_excludes135declared_sub_index_excludes136. declared_sub_index_excludes → load_declaration136load_declaration137. load_declaration → load_declaration_located137load_declaration_located▶ test enters138. _run_build_walked → _bounded_output138_bounded_output139. _bounded_output → all139all

… 3 later steps

9 more

tests/test_surface_2_0.py:83 · its file's page

Where the product reaches it

Call flow

test_stats_and_cull_are_cli_verbs→_indexed→query_main→cull_main

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_stats_and_cull_are_cli_verbs_indexed_run_pipeline_run_pipeline_innerreport_statsREQ-DDB-CLI-001 · measured_indexed… 7 calls …doxygen_supports_sqlite3REQ-DDB-CLI-002 · inferred_indexed… 3 calls …stated_document_metaREQ-DDB-CONFIG-001 · measured_indexed… 4 calls …_is_flat_req_listREQ-DDB-CONFIG-003 · inferred_indexed… 3 calls …resolve_preprocessorREQ-DDB-CONFIG-004 · measured_indexed… 3 calls …import_kconfigREQ-DDB-CONFIG-005 · measured_indexed… 3 calls …recorded_explicitREQ-DDB-CONFIG-006 · measured_indexed… 3 calls …write_build_signatureREQ-DDB-CONFIG-007 · measured_indexed… 3 calls …load_toolchain_configREQ-DDB-CONFIG-009 · measured_indexed… 5 calls …read_requirements_sectionREQ-DDB-GUARD-012 · inferred_indexed… 5 calls …parse_doxygen_tagsREQ-DDB-GUARD-019 · measured_indexed… 5 calls …apply_autobriefREQ-DDB-GUARD-024 · measured

and 54 more requirement paths, listed below.

Also reaches 67 requirements

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