test_build_doxyfile_extra_exclude_applies_standalone

Tests › tests/test_build_docs_db.py

passed Passed in the packaged run.

What this test is for

Why it exists

--extra-exclude must work WITHOUT --extra-input (the natural way to just trim scope). Regression: the loader early-returned when extra_input was None, silently dropping extra_exclude. It is now APPENDED to the repo's own EXCLUDE (kept, not cleared — no extra_input means no submodule to un-hide).

Verifies REQ-DDB-PIPE-001 REQ-DDB-PIPE-010

Given

  1. f = tmp_path / "Doxyfile"
  2. f.write_text("EXCLUDE = vendor\n")
→

When

  1. out = _build_doxyfile_content(f, extra_input=None, extra_exclude=["src/legacy"])
  2. plain = _build_doxyfile_content(f, extra_input=None, extra_exclude=None)
→

Then

  1. ✓ out contains "EXCLUDE += src/legacy"
  2. ✓ out contains "EXCLUDE = vendor"
  3. ✓ plain does not contain "EXCLUDE +="

tests/test_build_docs_db.py:302 · its file's page

What it checks (3)

  1. assert "EXCLUDE += src/legacy" in out observes _build_doxyfile_content via out
  2. assert "EXCLUDE = vendor" in out observes _build_doxyfile_content via out
  3. assert "EXCLUDE +=" not in plain observes _build_doxyfile_content via plain

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_build_doxyfile_extra_exclude_applies_standalone→_build_doxyfile_content

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_build_doxyfile_extra_exclude_applies_standalone · 3 checks_build_doxyfile_contentREQ-DDB-INDEX-001 · measured_build_doxyfile_contentextra_input_clears_excludeREQ-DDB-PIPE-003 · measured

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-001catalogunknown
REQ-DDB-PIPE-010catalogunknown
Also reaches 2 requirements

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