test_the_pipeline_refuses_before_running_doxygen¶
Tests › tests/test_extra_input_patterns.py
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
doxyfile = _doxyfile(tmp_path, "# patterns are forced; this declaration is ignored")_write(tmp_path / "library" / "notes.txt")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
with caplog.at_level("ERROR"), pytest.raises(SystemExit) as excinfo: cli._run_pipeline(args)
Then
- ✓ excinfo.value.code equals 1
- ✓ caplog.text contains "contributes NOTHING"
- ✓ 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
… 76 later steps
tests/test_extra_input_patterns.py:238 · its file's page
What it checks (3)
assert excinfo.value.code == 1not attributedassert "contributes NOTHING" in caplog.textnot attributedassert "*.h" in caplog.textnot 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_pipelineWhat 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.
and 42 more requirement paths, listed below.
Also reaches 55 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CLI-001 inferred
- REQ-DDB-CLI-002 inferred
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-003 inferred
- REQ-DDB-CONFIG-004 inferred
- REQ-DDB-CONFIG-005 inferred
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 inferred
- REQ-DDB-CONFIG-009 inferred
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-GUARD-019 inferred
- REQ-DDB-GUARD-024 inferred
- REQ-DDB-INDEX-001 measured
- REQ-DDB-INDEX-002 measured
- REQ-DDB-INDEX-003 inferred
- REQ-DDB-INDEX-004 inferred
- REQ-DDB-INDEX-005 inferred
- REQ-DDB-INDEX-006 inferred
- REQ-DDB-INDEX-007 inferred
- REQ-DDB-INDEX-008 inferred
- REQ-DDB-INDEX-009 inferred
- REQ-DDB-INDEX-010 inferred
- REQ-DDB-INDEX-011 inferred
- REQ-DDB-MCP-001 measured
- REQ-DDB-MCP-004 measured
- REQ-DDB-PIPE-001 inferred
- REQ-DDB-PIPE-003 inferred
- REQ-DDB-PIPE-004 inferred
- REQ-DDB-PIPE-005 inferred
- REQ-DDB-PIPE-006 inferred
- REQ-DDB-PIPE-007 inferred
- REQ-DDB-PIPE-008 inferred
- REQ-DDB-PIPE-009 inferred
- REQ-DDB-PIPE-010 inferred
- REQ-DDB-PIPE-011 inferred
- REQ-DDB-PIPE-012 inferred
- REQ-DDB-PIPE-013 inferred
- REQ-DDB-PIPE-014 inferred
- REQ-DDB-PIPE-015 inferred
- REQ-DDB-QUERY-003 inferred
- REQ-DDB-QUERY-011 inferred
- REQ-DDB-SCHEMA-001 inferred
- REQ-DDB-SCHEMA-002 inferred
- REQ-DDB-SCHEMA-003 inferred
- REQ-DDB-SCHEMA-004 inferred
- REQ-DDB-SCHEMA-005 inferred
- REQ-DDB-SCHEMA-006 inferred
- REQ-DDB-SCHEMA-007 inferred
- REQ-DDB-SCHEMA-009 inferred
- REQ-DDB-SCHEMA-011 inferred
- REQ-DDB-SCHEMA-012 inferred
- REQ-DDB-SCHEMA-013 inferred
- REQ-DDB-SCHEMA-014 inferred
- REQ-DDB-SCHEMA-015 inferred
- REQ-DDB-WIKI-054 inferred