test_req_trace_findme

Tests › tests/test_query.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-QUERY-002

Given

  1. —
→

When

  1. rt = q.req_trace(rich_db, "REQ-0621")
  2. impls = {i.name: i for i in rt.implementers}
→

Then

  1. ✓ rt.title equals "Find-my-robot audible ping"
  2. ✓ rt.priority equals "P1"
  3. ✓ impls contains "sound_play_findme"
  4. ✓ impls["sound_play_findme"].liveness equals "live"
  5. ✓ rt.tests contains "test_findme_chime_plays"
  6. ✓ impls does not contain "test_findme_chime_plays"

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

What it checks (6)

  1. assert rt.title == "Find-my-robot audible ping" observes req_trace via rt
  2. assert rt.priority == "P1" observes req_trace via rt
  3. assert "sound_play_findme" in impls not attributed
  4. assert impls["sound_play_findme"].liveness == "live" not attributed
  5. assert "test_findme_chime_plays" in rt.tests observes req_trace via rt
  6. assert "test_findme_chime_plays" not in impls not attributed

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_req_trace_findme→req_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_req_trace_findme · 6 checksreq_traceREQ-DDB-QUERY-001 · measuredreq_tracetable_existsREQ-DDB-QUERY-003 · 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 5 requirements

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