test_source_unknown_function_is_none

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. q.source(rich_db, "no_such_function_xyz", repo_root)
→

Then

  1. ✓ q.source(rich_db, "no_such_function_xyz", repo_root) is None

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

… 169 earlier steps

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesopt (line 201)optbuild_wiki170. _entry_rowids → identity_rowids170identity_rowids171. identity_rowids → function_candidates171function_candidates172. function_candidates → table_exists172table_exists▶ test enters173–175. function_candidates → _test_scope_term173_test_scope_term +2 more176–177. matching_identity → qualified_name_of176qualified_name_of +1 more

… 223 later steps

1 more

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

What it checks (1)

  1. assert q.source(rich_db, "no_such_function_xyz", repo_root) is None observes source

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_source_unknown_function_is_none→source

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_source_unknown_function_is_none · 1 checkssourcesymbol_provenanceREQ-DDB-INDEX-004 · inferredsourceREQ-DDB-QUERY-001 · measuredsourcefunction_candidatesREQ-DDB-QUERY-003 · measuredsourcefunction_candidatesREQ-DDB-QUERY-010 · measured

Requirements it verifies (1)

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

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