test_dossier_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.function_dossier(rich_db, "no_such_function_xyz")
→

Then

  1. ✓ q.function_dossier(rich_db, "no_such_function_xyz") 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.

Look up one name: everything the index holds about it · 7 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_exists21–22. _hint_from → _name_exists21_name_exists +1 more

… 23 steps between

callercallercallercallerclew/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. function_candidates → table_exists48table_exists▶ test enters49–51. function_candidates → _test_scope_term49_test_scope_term +2 more52–53. matching_identity → qualified_name_of52qualified_name_of +1 more

… 4 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesdossier58. macro_definitions → connect58connect59. macro_definitions → macro_definitions_conn59macro_definitions_conn60. macro_definitions_conn → has_columns60has_columns▶ test enters61. macro_definitions_conn → _macro_def61_macro_def62. _macro_def → gates_covering62gates_covering63. gates_covering → table_exists63table_exists

… 163 later steps

3 more

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

What it checks (1)

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

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_dossier_unknown_function_is_none→function_dossier

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_dossier_unknown_function_is_none · 1 checksfunction_dossier_dossier_connsymbol_provenanceREQ-DDB-INDEX-004 · inferredfunction_dossier… 5 calls …is_python_treeREQ-DDB-PIPE-003 · inferredfunction_dossier… 5 calls …_parseable_fileREQ-DDB-PIPE-011 · inferredfunction_dossier… 5 calls …has_languageREQ-DDB-PIPE-012 · inferredfunction_dossierconnectREQ-DDB-QUERY-001 · measuredfunction_dossier_dossier_connunresolved_inbound_for_rowidsREQ-DDB-QUERY-002 · catalogfunction_dossier_dossier_connfunction_candidatesREQ-DDB-QUERY-003 · measuredfunction_dossierREQ-DDB-QUERY-004 · measuredfunction_dossier_dossier_conngates_coveringREQ-DDB-QUERY-006 · inferredfunction_dossierREQ-DDB-QUERY-009 · measuredfunction_dossierREQ-DDB-QUERY-010 · measuredfunction_dossier_dossier_conn_macro_dossierREQ-DDB-QUERY-012 · measured

and 2 more requirement paths, listed below.

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-QUERY-002catalog2 of 9: termini_for, unresolved_inbound_for_rowids
Also reaches 13 requirements

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