test_the_pipeline_refuses_before_running_doxygen

Tests › tests/test_extra_input_patterns.py

passed Passed in the packaged run.

What this test is for

Why it exists

A check that is right in isolation and never called changes nothing a user sees — and an unwired guard is indistinguishable from the silent no-op it replaced, which is precisely gh#3. This drives the real entry point.

Given

  1. doxyfile = _doxyfile(tmp_path, "# patterns are forced; this declaration is ignored")
  2. _write(tmp_path / "library" / "notes.txt")
  3. args = argparse.Namespace( doxyfile=str(doxyfile), output=str(tmp_path / "out" / "clew.db"), repo_root=str(tmp_path), ## From `scope`, the owning module. The 22->6 collapse deleted the `--scope` flag ## whose `choices=` was the only reason this constant was imported into `cli`. scope=SCOPE_DOXYFILE, guard_config=None, extra_input=["library"], extra_exclude=None, )
→

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 "contributes NOTHING"
  3. ✓ caplog.text contains "*.h"

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_extra_input_patterns.py:238 · its file's page

What it checks (3)

  1. assert excinfo.value.code == 1 not attributed
  2. assert "contributes NOTHING" in caplog.text not attributed
  3. assert "*.h" in caplog.text 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_pipeline_refuses_before_running_doxygen→_doxyfile→_write→_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_pipeline_refuses_before_running_doxygen · 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 · measured_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.