passed Passed in the packaged run.
What this test is for Why it exists
The parser router covers Python as well as C/C++, so a Python file PARSES — and then contributes nothing, because a Python `function_definition` has no `declarator` chain and its calls are `call`, not `call_expression`. Counting parses would report a Python codebase as a MEASURED empty C repo: a claim about the repo, where the truth is a claim about the detector. clew's own indexed scope is exactly this case, so it is not hypothetical.
Given
root = tmp_path / "pyrepo"(root / "src").mkdir(parents=True)2 more (root / ".clew.yaml").write_text("index_scope:\n roots: [src]\n", encoding="utf-8")(root / "src" / "app.py").write_text("def main():\n return 0\n", encoding="utf-8")→ When
proposal = propose(root, None)for name in (SECTION_SHARED_KEY, SECTION_THREADS): section = _section(proposal, name) assert section.status is SectionStatus.NOT_APPLICABLE, f"{name}: {section.reason}" assert "not a measurement of the repo" in section.reason→ Then
✓ proposal.scope["files_in_scope"] is at least 1✓ proposal.scope["ast_readable_in_scope"] equals 0What 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.
… 3 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 529) opt main 4–5. propose_main → _refusal 4 _refusal +1 more 6. propose → db_status_summary 6 db_status_summary ▶ test enters 7–10. db_status_summary → index_defect 7 index_defect +3 more 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–18. load_declaration_located → _read_mapping 15 _read_mapping +3 more 19–20. _checked_section → _checked_list_section 19 _checked_list_section +1 more … 18 steps between
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 loop (line 598) loop opt (line 696) opt try (line 1003) try main 39–40. _checked_document → _checked_entries 39 _checked_entries +1 more 41. _checked_section → _check_section_keys 41 _check_section_keys 42–44. _declared_index_scope → _existing_paths 42 _existing_paths +2 more 45–46. derive_scope → whole_repo_scope 45 whole_repo_scope +1 more 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 … 15 steps between
command-line usercommand-line user command-line usercommand-line user clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py clew/propose/astdefs.pyclew/propose/astdefs.py clew/propose/astdefs.pyclew/propose/astdefs.py other filesother files other filesother files opt (line 385) opt loop (line 239) loop loop (line 268) loop opt (line 270) opt opt (line 168) opt main 67–68. whole_repo_scope → _vendored_clause 67 _vendored_clause +1 more 69. derive_scope → whole_repo_scope 69 whole_repo_scope 70–73. build_context → repo_source_files 70 repo_source_files +3 more 74–75. _grammar_available → has_language 74 has_language +1 more 76. _ts_language_for → _try_import_ts_module 76 _try_import_ts_module 77–85. build_context → scope_membership 77 scope_membership +8 more 86–88. _ast_parse_one_file → _disambiguate_header 86 _disambiguate_header +2 more 89. scan_repo → _absorb_file 89 _absorb_file 90. _absorb_file → definition_record 90 definition_record 91. definition_record → _signature 91 _signature 92–93. _signature → _macro_signature 92 _macro_signature +1 more … 2 steps between
command-line usercommand-line user command-line usercommand-line user clew/propose/astdefs.pyclew/propose/astdefs.py clew/propose/astdefs.pyclew/propose/astdefs.py main 96–97. _macro_body → text_of 96 text_of +1 more 98–99. _signature → _function_signature 98 _function_signature +1 more 100–101. _function_signature → _tail_name 100 _tail_name +1 more … 8 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 clew/propose/astdefs.pyclew/propose/astdefs.py clew/propose/astdefs.pyclew/propose/astdefs.py clew/propose/astdefs.py other filesother files other filesother files other files loop (line 268) loop elif (line 274) elif loop (line 369) loop main 110. _absorb_file → _accessor_site 110 _accessor_site 111. _accessor_site → callee_name 111 callee_name 112–113. build_context → load_declaration 112 load_declaration +1 more 114. propose → _sections 114 _sections ▶ test enters 115–117. _sections → _blocking 115 _blocking +2 more 118. _blocking → is_derived 118 is_derived 119–127. _sections → _blocked_section 119 _blocked_section +8 more 128. candidate_dirs → 128 … 1 call not run 129–130. report_not_indexed → _dir_lines 129 _dir_lines +1 more 131. propose → scope_summary 131 scope_summary 132. scope_summary → is_derived 132 is_derived 133. scope_summary → ast_readable_in_scope 133 ast_readable_in_scope 134–147. propose → render_declaration 134 render_declaration +13 more 148. _rejections → _wrap 148 _wrap 149–150. _section_block → _notes 149 _notes +1 more 151–152. propose_main → _resolve_db 151 _resolve_db +1 more … 248 later steps
4 more tests/test_propose.py:760 · its file's page
What it checks (4) assert proposal.scope["files_in_scope"] >= 1, "the Python file must be IN scope" observes propose via proposal assert proposal.scope["ast_readable_in_scope"] == 0 observes propose via proposal assert section.status is SectionStatus.NOT_APPLICABLE, f"{name}: {section.reason}" observes _section via section assert "not a measurement of the repo" in section.reason observes _section via section Where the product reaches it build_wiki → _build_site → symbol_pages → _section (flow) main → propose_main → propose (flow) Call flow test_a_non_c_indexed_scope_is_not_applicable_not_no_candidates→ propose → _section 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 6 requirements Its run touches their code; that is reach, not proof.