passed Passed in the packaged run.
What this test is for Why it exists
gh#26, the half a query-layer fix CAN reach, pinned on the real data shape.
Given
db = tmp_path / "fanout.db"_fanout_collision_db(db)→ When
d = q.function_dossier(db, "_classify")by_name = {c.name: c for c in d.callers if c.edge_class == "call"}for fabricated in ("_guard_scope", "plan_merge", "_classify"): assert by_name[fabricated].confidence == "fuzzy", ( f"{fabricated} reaches a DIFFERENT module's _classify; " "reporting it as 'exact' is the gh#26 defect" ) assert by_name[fabricated].source == "ast"→ Then
✓ d is not None✓ d.file equals "pkg/guidance.py"✓ by_name["plan_guidance"].confidence equals "exact"✓ by_name["plan_guidance"].source equals "doxygen_sqlite"✓ [c.name for c in d.callees if c.edge_class == "call"] equals []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.
… 17 earlier steps
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/recovery.pyclew/query/recovery.py clew/query/recovery.pyclew/query/recovery.py dossier 18. _documentation_mentions → table_exists 18 table_exists 19. _documentation_mentions → has_columns 19 has_columns 20. has_columns → table_exists 20 table_exists 21–22. _hint_from → _name_exists 21 _name_exists +1 more … 23 steps between
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files dossier 46. _ambiguity_counts → table_exists 46 table_exists 47. _ambiguity_counts → function_candidates 47 function_candidates 48–51. function_candidates → table_exists 48 table_exists +3 more 52–53. matching_identity → qualified_name_of 52 qualified_name_of +1 more … 4 steps between
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files dossier 58. macro_definitions → connect 58 connect 59. macro_definitions → macro_definitions_conn 59 macro_definitions_conn 60. macro_definitions_conn → has_columns 60 has_columns ▶ test enters 61–62. macro_definitions_conn → _macro_def 61 _macro_def +1 more 63. gates_covering → table_exists 63 table_exists ▶ test enters 64. gates_covering → has_columns 64 has_columns 65. gates_covering → _gate_columns 65 _gate_columns … 12 steps between
callercaller callercaller clew/query/payload.pyclew/query/payload.py clew/query/payload.pyclew/query/payload.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files dossier 78. _referenced_by → table_exists 78 table_exists 79. _macro_def → symbol_provenance 79 symbol_provenance 80–81. symbol_provenance → records_provenance 80 records_provenance +1 more 82. _gate_definitions → _gate_definition_gaps 82 _gate_definition_gaps 83. _flatten_subject → _empty_callers_note 83 _empty_callers_note … 51 steps between
callercaller callercaller clew/query/subject.pyclew/query/subject.py clew/query/subject.pyclew/query/subject.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py opt (line 1012) opt opt (line 777) opt alt (line 780) alt opt (line 1014) opt dossier 135. dossier → connect 135 connect 136. dossier → identity_rowids 136 identity_rowids 137. identity_rowids → function_candidates 137 function_candidates ▶ test enters 138–139. identity_rowids → qualified_name_of 138 qualified_name_of +1 more 140–141. identity_rowids → qualified_name_of 140 qualified_name_of +1 more 142. dossier → _selector_from_signature 142 _selector_from_signature 143. _selector_from_signature → qualified_name_of 143 qualified_name_of … 29 steps between
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/traversal.pyclew/query/traversal.py clew/query/traversal.pyclew/query/traversal.py dossier 173–174. _identity_walk → _make_node 173 _make_node +1 more 175. termini_for → table_exists 175 table_exists ▶ test enters 176. _make_node → _reqs_for 176 _reqs_for 177. _reqs_for → table_exists 177 table_exists … 3 steps between
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/traversal.pyclew/query/traversal.py clew/query/traversal.pyclew/query/traversal.py other filesother files other filesother files loop (line 362) loop loop (line 368) loop loop (line 429) loop dossier 181. _identity_call_hops → qualified_name_of 181 qualified_name_of 182. _identity_call_hops → _collapse_variants 182 _collapse_variants 183. _collapse_variants → _variant_rank 183 _variant_rank ▶ test enters 184. _identity_walk → identity_rowids 184 identity_rowids 185. _identity_walk → _cap_at_depth 185 _cap_at_depth … 3 steps between
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/traversal.pyclew/query/traversal.py clew/query/traversal.pyclew/query/traversal.py dossier 189. chain_trace → function_candidates 189 function_candidates 190. chain_trace → candidate_rows 190 candidate_rows 191. candidate_rows → symbol_provenance 191 symbol_provenance ▶ test enters 192–193. candidate_rows → qualified_name_of 192 qualified_name_of +1 more 194. chain_trace → is_overloaded 194 is_overloaded 195. chain_trace → _make_node 195 _make_node … 5 steps between
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/traversal.pyclew/query/traversal.py clew/query/traversal.pyclew/query/traversal.py other filesother files other filesother files loop (line 191) loop dossier 201. _neighbors → _key_hops 201 _key_hops 202. _key_hops → _key_edge_rows 202 _key_edge_rows 203. _key_edge_rows → table_exists 203 table_exists ▶ test enters 204. _key_edge_rows → _key_r1_projection 204 _key_r1_projection 205. _key_r1_projection → has_columns 205 has_columns … 21 later steps
3 more tests/test_query.py:1801 · its file's page
What it checks (6) assert d is not None and d.file == "pkg/guidance.py" observes function_dossier via d assert by_name["plan_guidance"].confidence == "exact" not attributed assert by_name["plan_guidance"].source == "doxygen_sqlite" not attributed assert by_name[fabricated].confidence == "fuzzy", ( f"{fabricated} reaches a DIFFERENT module's _classify; " "reporting it as 'exact' is the gh#26 defect" ) not attributed assert by_name[fabricated].source == "ast" not attributed assert [c.name for c in d.callees if c.edge_class == "call"] == [] observes function_dossier via d 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_namesake_fanout_is_no_longer_laundered_into_exact→ _fanout_collision_db → function_dossier 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.
and 2 more requirement paths, listed below.
Also reaches 14 requirements Its run touches their code; that is reach, not proof.