test_an_unknown_identity_walks_nothing

Tests › tests/test_identity_walk.py

passed Passed in the packaged run.

What this test is for

Why it exists

A qualified name the index does not hold yields an empty chain, never the union.

Given

  1. —
→

When

  1. chain_trace(namesakes, "execute", qualified="Nope::execute", max_depth=2)
→

Then

  1. ✓ chain_trace(namesakes, "execute", qualified="Nope::execute", max_depth=2).nodes 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.

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

… 45 earlier steps

callercallercallercallerclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/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 more54. resolve_selector → _ends_at_boundary54_ends_at_boundary55. matching_identity → qualified_name_of55qualified_name_of56. _flatten_subject → _gate_definitions56_gate_definitions

… 78 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)altdossier135. dossier → connect135connect136. dossier → identity_rowids136identity_rowids137–139. identity_rowids → function_candidates137function_candidates +2 more140–141. identity_rowids → qualified_name_of140qualified_name_of +1 more

… 23 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.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyopt (line 547)optdossier165. 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. _identity_walk → _make_node173_make_node

… 53 later steps

1 more

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

What it checks (1)

  1. assert chain_trace(namesakes, "execute", qualified="Nope::execute", max_depth=2).nodes == [] observes chain_trace

Where the product reaches it

  • dossier → _chain_for → chain_trace (flow)

Call flow

test_an_unknown_identity_walks_nothing→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_an_unknown_identity_walks_nothing · 1 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 · inferredchain_tracefunction_candidatesREQ-DDB-QUERY-010 · measured
Also reaches 6 requirements

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