test_replacing_input_also_clears_the_repo_s_exclude_patterns

Tests › tests/test_build_docs_db.py

passed Passed in the packaged run.

What this test is for

Why it exists

gh#333. `EXCLUDE_PATTERNS` is the GLOB spelling of `EXCLUDE`, and clearing one while leaving the other standing silently defeated the whole scope change on the target it was built for.

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

Given

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

When

  1. replaced = _build_doxyfile_content( f, extra_input=["/repo"], extra_exclude=None, replace_input=True )
  2. kept = _build_doxyfile_content(f, extra_input=None, extra_exclude=["src/legacy"])
→

Then

  1. ✓ replaced contains "\nEXCLUDE_PATTERNS =\n"
  2. ✓ kept does not contain "\nEXCLUDE_PATTERNS =\n"
  3. ✓ kept contains "EXCLUDE_PATTERNS = */extern/* */tests/*"

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

What it checks (3)

  1. assert "\nEXCLUDE_PATTERNS =\n" in replaced, ( "an INPUT replacement that leaves EXCLUDE_PATTERNS standing admits a tree " "and then drops it again" ) observes _build_doxyfile_content via replaced
  2. assert "\nEXCLUDE_PATTERNS =\n" not in kept observes _build_doxyfile_content via kept
  3. assert "EXCLUDE_PATTERNS = */extern/* */tests/*" in kept observes _build_doxyfile_content via kept

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_replacing_input_also_clears_the_repo_s_exclude_patterns→_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_replacing_input_also_clears_the_repo_s_exclude_patterns · 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.