test_the_cli_refusal_uses_the_new_message

Tests › tests/test_doxyfile_refusal_messages.py

passed Passed in the packaged run.

What this test is for

Why it exists

End-to-end at the real refusal site, because a classifier that is correct in isolation and unwired changes nothing a user sees. Only the no-repo-root branches reach sys.exit; the synthesis branches are covered by the integration build tests.

Given

  1. missing = tmp_path / "nope" / "Doxyfile"
  2. args = _args(doxyfile=str(missing), output=str(tmp_path / "clew.db"))
→

When

  1. with caplog.at_level("ERROR"), pytest.raises(SystemExit) as excinfo: cli._run_pipeline(args)
→

Then

  1. ✓ excinfo.value.code equals 1
  2. ✓ caplog.text contains str(missing.resolve())
  3. ✓ caplog.text.lower() does not contain "pass --doxyfile"

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.

thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 2 of 142 steps

… 60 earlier steps

thread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyother filesother filesother filesother filestry (line 3260)try_first_build_worker61. _run_build_walked → captured_output61captured_output62. _run_build_walked → build_lock62build_lock63. build_lock → _os_lock63_os_lock▶ test enters64. _os_lock → lock_path64lock_path65. _run_build_walked → db_status65db_status66. db_status → _options_meta66_options_meta

… 76 later steps

tests/test_doxyfile_refusal_messages.py:206 · its file's page

What it checks (3)

  1. assert excinfo.value.code == 1 not attributed
  2. assert str(missing.resolve()) in caplog.text not attributed
  3. assert "pass --doxyfile" not in caplog.text.lower() 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_the_cli_refusal_uses_the_new_message→_args→_run_pipeline

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_the_cli_refusal_uses_the_new_message · 3 checks_run_pipeline_run_pipeline_innerreport_statsREQ-DDB-CLI-001 · inferred_run_pipeline… 6 calls …doxygen_supports_sqlite3REQ-DDB-CLI-002 · inferred_run_pipeline_run_pipeline_inner_apply_declared_documentstated_document_metaREQ-DDB-CONFIG-001 · inferred_run_pipeline… 3 calls …_is_flat_req_listREQ-DDB-CONFIG-003 · inferred_run_pipeline_run_pipeline_inner_build_stagesresolve_preprocessorREQ-DDB-CONFIG-004 · inferred_run_pipeline_run_pipeline_inner_build_stagesimport_kconfigREQ-DDB-CONFIG-005 · inferred_run_pipeline_run_pipeline_inner_recorded_entry_patternsrecorded_explicitREQ-DDB-CONFIG-006 · measured_run_pipeline_run_pipeline_inner_build_stageswrite_build_signatureREQ-DDB-CONFIG-007 · inferred_run_pipeline_run_pipeline_inner_apply_toolchain_exclusionsload_toolchain_configREQ-DDB-CONFIG-009 · inferred_run_pipeline… 4 calls …read_requirements_sectionREQ-DDB-GUARD-012 · inferred_run_pipeline… 4 calls …parse_doxygen_tagsREQ-DDB-GUARD-019 · inferred_run_pipeline… 4 calls …apply_autobriefREQ-DDB-GUARD-024 · inferred

and 42 more requirement paths, listed below.

Also reaches 55 requirements

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