test_an_entry_no_test_ran_is_walked_statically

Tests › tests/test_wiki_flow.py

passed Passed in the packaged run.

What this test is for

Why it exists

W-8 (owner review 2026-11-22): `flow-main-clew-cli-py` drew ONE step, "main … 11 not run", call site `clew/cli.py:0`. The tests call the subcommands, never `main`, so every call was folded as not run, although nothing about `main` was measured: its file was, it was not. A caller none of whose lines ran is unmeasured and walked as the static flow is.

Verifies REQ-DDB-WIKI-008 REQ-DDB-WIKI-047

Given

  1. db, repo = indexed
→

When

  1. static = [(s.caller, s.callee) for s in derive_flow(db, repo, "main", depth=1).steps]
  2. flow = derive_flow(db, repo, "main", depth=1, executed={"app/main.py": {1}})
→

Then

  1. ✓ [(s.caller, s.callee) for s in flow.steps] equals static
  2. ✓ any(s.not_run for s in flow.steps) is false

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.

Look up one name: everything the index holds about it · 14 of 226 steps

… 45 earlier steps

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesdossier46. _ambiguity_counts → table_exists46table_exists47. _ambiguity_counts → function_candidates47function_candidates48–51. function_candidates → table_exists48table_exists +3 more52–53. matching_identity → qualified_name_of52qualified_name_of +1 more

… 81 steps between

callercallercallercallerclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyopt (line 1012)optopt (line 777)optopt (line 1014)optdossier135. dossier → connect135connect136. dossier → identity_rowids136identity_rowids137. identity_rowids → function_candidates137function_candidates▶ test enters138–141. identity_rowids → qualified_name_of138qualified_name_of +3 more142. dossier → _selector_from_signature142_selector_from_signature143. _selector_from_signature → qualified_name_of143qualified_name_of

… 33 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyother filesother filesother filesother filesloop (line 429)looploop (line 362)looploop (line 368)loopdossier177. _reqs_for → table_exists177table_exists178. _identity_walk → _identity_call_hops178_identity_call_hops179. _identity_call_hops → table_exists179table_exists▶ test enters180. _identity_call_hops → qualified_name_of180qualified_name_of181. _identity_call_hops → qualified_name_of181qualified_name_of182. _identity_call_hops → _collapse_variants182_collapse_variants183. _collapse_variants → _variant_rank183_variant_rank184. _identity_walk → identity_rowids184identity_rowids185. _identity_walk → _cap_at_depth185_cap_at_depth

… 41 later steps

2 more

tests/test_wiki_flow.py:395 · its file's page

What it checks (2)

  1. assert [(s.caller, s.callee) for s in flow.steps] == static, flow.steps observes derive_flow via flow
  2. assert not any(s.not_run for s in flow.steps) observes derive_flow via flow

Where the product reaches it

  • build_wiki → _build_site → flow_page → derive_flow (flow)

Call flow

test_an_entry_no_test_ran_is_walked_statically→derive_flow

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_an_entry_no_test_ran_is_walked_statically · 2 checksderive_flowconnectREQ-DDB-QUERY-001 · measuredderive_flowqualified_name_ofREQ-DDB-QUERY-003 · measuredderive_flow_entry_rowidsfunction_candidatesREQ-DDB-QUERY-010 · measuredderive_flowREQ-DDB-WIKI-001 · measuredderive_flowREQ-DDB-WIKI-041 · measured

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-008catalogunknown
REQ-DDB-WIKI-047catalogunknown
Also reaches 8 requirements

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