test_a_root_that_contributes_files_is_not_flagged

Tests › tests/test_extra_input_patterns.py

passed Passed in the packaged run.

What this test is for

Why it exists

The ordinary case must stay silent. One matching file under the root is enough — doxygen will read it, so the flag did its job.

Given

  1. doxyfile = _doxyfile(tmp_path, "FILE_PATTERNS = *.h")
  2. _write(tmp_path / "include" / "aes.h")
  3. _write(tmp_path / "include" / "notes.txt")
→

When

  1. flagged = ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["include"], None, tmp_path)
→

Then

  1. ✓ flagged equals []

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

What it checks (1)

  1. assert flagged == [] observes roots_matching_no_file_pattern via 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_a_root_that_contributes_files_is_not_flagged→_doxyfile→_write→roots_matching_no_file_pattern

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_a_root_that_contributes_files_is_not_flagged · 1 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.