test_all_req_edges_agrees_with_req_trace

Tests › tests/test_query.py

passed Passed in the packaged run.

What this test is for

Why it exists

all_req_edges lists the implementer edges, agreeing with req_trace.

Verifies REQ-DDB-QUERY-002

Given

  1. —
→

When

  1. rt = q.req_trace(rich_db, "REQ-0621")
  2. bulk_impl = {e.fn for e in q.all_req_edges(rich_db) if e.req_id == "REQ-0621"}
→

Then

  1. ✓ {i.name for i in rt.implementers} is at most bulk_impl

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 · 4 of 226 steps

… 17 earlier steps

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pydossier18. _documentation_mentions → table_exists18table_exists19. _documentation_mentions → has_columns19has_columns20. has_columns → table_exists20table_exists▶ test enters21–22. _hint_from → _name_exists21_name_exists +1 more

… 25 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pydossier48–49. function_candidates → table_exists48table_exists +1 more50. _test_scope_term → table_exists50table_exists51–52. function_candidates → matching_identity51matching_identity +1 more

… 156 steps between

callercallercallercallerclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/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 558)looploop (line 570)loopopt (line 239)optopt (line 285)optdossier209. chain_trace → _expand_neighbor209_expand_neighbor210. _expand_neighbor → resolve_rowid210resolve_rowid211. resolve_rowid → table_exists211table_exists▶ test enters212. resolve_rowid → function_candidates212function_candidates213. resolve_rowid → _test_scope_term213_test_scope_term214. _expand_neighbor → _make_node214_make_node215. subject_payload → _flatten_subject215_flatten_subject

… 11 later steps

3 more

tests/test_query.py:96 · its file's page

What it checks (1)

  1. assert {i.name for i in rt.implementers} <= bulk_impl observes all_req_edges via bulk_impl

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_all_req_edges_agrees_with_req_trace→req_trace→all_req_edges

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_all_req_edges_agrees_with_req_trace · 1 checksreq_traceREQ-DDB-QUERY-001 · measuredall_req_edgestable_existsREQ-DDB-QUERY-003 · measuredall_req_edgesREQ-DDB-QUERY-004 · measuredreq_trace_req_implementersresolve_rowidREQ-DDB-QUERY-010 · measuredreq_trace_req_failure_modesREQ-DDB-SCHEMA-006 · measuredreq_trace_req_linksREQ-DDB-SCHEMA-015 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-QUERY-002catalogunknown
Also reaches 6 requirements

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