test_a_flow_follows_the_calls_in_order_with_frames

Tests › tests/test_wiki_flow.py

passed Passed in the packaged run.

What this test is for

Why it exists

main → load → parse, then main → save inside `if`, lanes by package.

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

Given

  1. db, repo = indexed
→

When

  1. flow = derive_flow(db, repo, "main", depth=3, lanes="packages")
  2. steps = [(s.caller, s.callee, [f.kind for f in s.frames]) for s in flow.steps]
→

Then

  1. ✓ steps equals [ ("main", "load", []), ("load", "parse", []), ("main", "save", ["if"]), ]
  2. ✓ [lane.id for lane in flow.lanes] equals ["app", "lib"]
  3. ✓ flow.steps[0].from_lane equals "app"
  4. ✓ flow.steps[0].to_lane equals "lib"

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:66 · its file's page

What it checks (3)

  1. assert steps == [ ("main", "load", []), ("load", "parse", []), ("main", "save", ["if"]), ], steps not attributed
  2. assert [lane.id for lane in flow.lanes] == ["app", "lib"] observes derive_flow via flow
  3. assert flow.steps[0].from_lane == "app" and flow.steps[0].to_lane == "lib" observes derive_flow via flow

Where the product reaches it

  • build_wiki → _build_site → flow_page → derive_flow (flow)

Call flow

test_a_flow_follows_the_calls_in_order_with_frames→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_a_flow_follows_the_calls_in_order_with_frames · 3 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 9 requirements

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