test_an_excluded_file_does_not_count_as_a_match¶
Tests › tests/test_extra_input_patterns.py
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
doxyfile = _doxyfile(tmp_path, "# patterns are forced; this declaration is ignored")_write(tmp_path / "gen" / "notes.txt")_write(tmp_path / "gen" / "vendor" / "api.h")
When
ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["gen"], None, tmp_path)flagged = ts.roots_matching_no_file_pattern( doxyfile, tmp_path, ["gen"], ["gen/vendor"], tmp_path )
Then
- ✓ ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["gen"], None, tmp_path) equals []
- ✓ _flagged(flagged) equals ["gen"]
tests/test_extra_input_patterns.py:155 · its file's page
What it checks (2)
assert ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["gen"], None, tmp_path) == []observesroots_matching_no_file_patternassert _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→_flaggedWhat 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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-INDEX-001 measured