test_an_unknown_entry_is_refused_by_name

Tests › tests/test_wiki_flow.py

passed Passed in the packaged run.

What this test is for

Why it exists

No flow is invented for an entry the index does not hold.

Verifies REQ-DDB-WIKI-008 REQ-DDB-WIKI-047

Given

  1. db, repo = indexed
→

When

  1. derive_flow(db, repo, "no_such_entry")
→

Then

  1. ✓ raises ValueError

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.

Build this wiki from the index · 8 of 400 steps

… 165 earlier steps

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyother filesother filesother filesother filesopt (line 201)optbuild_wiki166. flow_page → _executed166_executed167. flow_page → derive_flow167derive_flow168. derive_flow → connect168connect▶ test enters169. derive_flow → _entry_rowids169_entry_rowids170. _entry_rowids → identity_rowids170identity_rowids171–175. identity_rowids → function_candidates171function_candidates +4 more176–177. matching_identity → qualified_name_of176qualified_name_of +1 more

… 223 later steps

1 more

tests/test_wiki_flow.py:99 · its file's page

Where the product reaches it

  • build_wiki → _build_site → flow_page → derive_flow (flow)

Call flow

test_an_unknown_entry_is_refused_by_name→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_an_unknown_entry_is_refused_by_namederive_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

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-008catalogunknown
REQ-DDB-WIKI-047catalogunknown
Also reaches 5 requirements

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