test_a_refused_request_exits_2_with_the_reason

Tests › tests/test_query_cli.py

passed Passed in the packaged run.

What this test is for

Why it exists

An unknown corpus (the library's ValueError) exits 2, reason on stderr.

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.

clew — `main` (clew/cli.py) · 5 of 400 steps

… 201 earlier steps

command-line usercommand-line usercommand-line usercommand-line userclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyother filesother filesother filesother filesopt (line 4018)opttry (line 155)trymain202. _execute → _print_next_steps202_print_next_steps203. main → query_main203query_main204. query_main → _parser204_parser▶ test enters205. query_main → _locate205_locate206–208. _locate → target_for206target_for +2 more209–211. query_main → _payload209_payload +2 more212. corpus_payload → _symbol_corpus212_symbol_corpus213. _symbol_corpus → search_counted213search_counted

… 187 later steps

1 more

tests/test_query_cli.py:104 · its file's page

Where the product reaches it

Call flow

test_a_refused_request_exits_2_with_the_reason→_run

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_a_refused_request_exits_2_with_the_reason_run… 4 calls …records_provenanceREQ-DDB-INDEX-004 · inferred_runquery_main_locatetarget_forREQ-DDB-MCP-001 · inferred_run… 3 calls …read_build_signatureREQ-DDB-PIPE-005 · inferred_runquery_main_payloadoneREQ-DDB-QUERY-001 · inferred_run… 5 calls …directory_rollupREQ-DDB-QUERY-002 · inferred_run… 4 calls …table_existsREQ-DDB-QUERY-003 · inferred_run… 7 calls …_in_default_buildREQ-DDB-QUERY-004 · inferred_run… 7 calls …_make_nodeREQ-DDB-QUERY-005 · inferred_run… 4 calls …kconfig_spaceREQ-DDB-QUERY-006 · inferred_run… 5 calls …prose_emptinessREQ-DDB-QUERY-007 · inferred_runquery_main_payloadgraph_statsREQ-DDB-QUERY-008 · inferred_run… 5 calls …identity_rowidsREQ-DDB-QUERY-010 · inferred

and 6 more requirement paths, listed below.

Also reaches 18 requirements

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