test_a_qualified_walk_follows_only_that_identity

Tests › tests/test_identity_walk.py

passed Passed in the packaged run.

What this test is for

Why it exists

The ServerManager walk reaches helper_a and not ClientSession's helper_b.

Given

  1. —
→

When

  1. chain = chain_trace(namesakes, "execute", qualified="ServerManager::execute", max_depth=2)
  2. reached = {n.name for n in chain.nodes}
  3. seed = next(n for n in chain.nodes if n.depth == 0)
→

Then

  1. ✓ reached contains "helper_a"
  2. ✓ reached does not contain "helper_b"
  3. ✓ seed.rowid equals 1
  4. ✓ seed.qualified equals "ServerManager::execute"

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 · 29 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)optalt (line 780)altopt (line 1014)optdossier135. dossier → connect135connect136. dossier → identity_rowids136identity_rowids137–139. identity_rowids → function_candidates137function_candidates +2 more140. identity_rowids → qualified_name_of140qualified_name_of141. identity_rowids → qualified_name_of141qualified_name_of142. dossier → _selector_from_signature142_selector_from_signature143. _selector_from_signature → qualified_name_of143qualified_name_of

… 21 steps between

callercallercallercallercallerclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyother filesother filesother filesother filesother filesopt (line 547)optloop (line 429)looploop (line 362)looploop (line 368)loopdossier165. dossier → _chain_for165_chain_for166. _chain_for → chain_trace166chain_trace167. chain_trace → _normalize_direction167_normalize_direction▶ test enters168. chain_trace → _identity_chain168_identity_chain169. _identity_chain → connect169connect170. _identity_chain → _identity_walk170_identity_walk171. _identity_walk → identity_rowids171identity_rowids172. _identity_walk → qualified_name_of172qualified_name_of173–174. _identity_walk → _make_node173_make_node +1 more175. termini_for → table_exists175table_exists176. _make_node → _reqs_for176_reqs_for177. _reqs_for → table_exists177table_exists178. _identity_walk → _identity_call_hops178_identity_call_hops179. _identity_call_hops → table_exists179table_exists180. _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–187. _identity_walk → _cap_at_depth185_cap_at_depth +2 more188. chain_trace → connect188connect189. chain_trace → function_candidates189function_candidates

… 37 later steps

1 more

tests/test_identity_walk.py:66 · its file's page

What it checks (2)

  1. assert "helper_a" in reached and "helper_b" not in reached, reached not attributed
  2. assert seed.rowid == 1 and seed.qualified == "ServerManager::execute" not attributed

Where the product reaches it

  • dossier → _chain_for → chain_trace (flow)

Call flow

test_a_qualified_walk_follows_only_that_identity→chain_trace

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_qualified_walk_follows_only_that_identity · 2 checkschain_tracecandidate_rowssymbol_provenanceREQ-DDB-INDEX-004 · inferredchain_traceconnectREQ-DDB-QUERY-001 · measuredchain_traceREQ-DDB-QUERY-002 · measuredchain_tracefunction_candidatesREQ-DDB-QUERY-003 · measuredchain_trace_make_nodeREQ-DDB-QUERY-005 · measuredchain_tracefunction_candidatesREQ-DDB-QUERY-010 · measured
Also reaches 6 requirements

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