test_a_measured_depth_bounds_measured_expansion

Tests › tests/test_wiki_tuning.py

passed Passed in the packaged run.

What this test is for

Why it exists

C1: a call measured as run expands past the flow's depth only up to `measured_depth`.

Given

  1. db, repo = indexed
→

When

  1. deep = derive_flow(db, repo, "main", depth=1, executed=_RAN_LOAD_ONLY)
  2. held = derive_flow(db, repo, "main", depth=1, executed=_RAN_LOAD_ONLY, measured_depth=1)
→

Then

  1. ✓ {(s.caller, s.callee) for s in deep.steps} contains ("load", "parse")
  2. ✓ {(s.caller, s.callee) for s in held.steps} does not contain ("load", "parse")

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_tuning.py:65 · its file's page

What it checks (2)

  1. assert ("load", "parse") in {(s.caller, s.callee) for s in deep.steps} observes derive_flow via deep
  2. assert ("load", "parse") not in {(s.caller, s.callee) for s in held.steps} observes derive_flow via held

Where the product reaches it

  • build_wiki → _build_site → flow_page → derive_flow (flow)

Call flow

test_a_measured_depth_bounds_measured_expansion→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_measured_depth_bounds_measured_expansion · 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
Also reaches 8 requirements

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