test_an_excluded_file_does_not_count_as_a_match

Tests › tests/test_extra_input_patterns.py

passed Passed in the packaged run.

What this test is for

Why it exists

The enumeration must honour the same EXCLUDE the build honours, or the guard would be satisfied by a file doxygen never reads — the exact "it looks like it worked" failure it exists to catch.

Given

  1. doxyfile = _doxyfile(tmp_path, "# patterns are forced; this declaration is ignored")
  2. _write(tmp_path / "gen" / "notes.txt")
  3. _write(tmp_path / "gen" / "vendor" / "api.h")
→

When

  1. ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["gen"], None, tmp_path)
  2. flagged = ts.roots_matching_no_file_pattern( doxyfile, tmp_path, ["gen"], ["gen/vendor"], tmp_path )
→

Then

  1. ✓ ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["gen"], None, tmp_path) equals []
  2. ✓ _flagged(flagged) equals ["gen"]

tests/test_extra_input_patterns.py:155 · its file's page

What it checks (2)

  1. assert ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["gen"], None, tmp_path) == [] observes roots_matching_no_file_pattern
  2. assert _flagged(flagged) == ["gen"] observes _flagged

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_an_excluded_file_does_not_count_as_a_match→_doxyfile→_write→roots_matching_no_file_pattern→_flagged

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_an_excluded_file_does_not_count_as_a_match · 2 checksroots_matching_no_file_patterneffective_file_patternsREQ-DDB-CONFIG-001 · measuredroots_matching_no_file_patternREQ-DDB-INDEX-001 · measured
Also reaches 2 requirements

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