test_a_root_matching_no_pattern_is_flagged

Tests › tests/test_extra_input_patterns.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE GUARD'S QUESTION NARROWED WITH gh#340 and it still has one. It used to be "does the target's declared pattern list exclude this root" — impossible now that patterns are forced. It is now "does this root contain ANY file doxygen can parse at all", which is still reachable and still worth refusing: an `--extra-input` root contributing zero files is a flag the operator should be told to drop.

Given

  1. doxyfile = _doxyfile(tmp_path, "# patterns are forced; this declaration is ignored")
  2. _write(tmp_path / "library" / "notes.txt")
  3. _write(tmp_path / "library" / "README.rst")
→

When

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

Then

  1. ✓ _flagged(flagged) equals ["library"]

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

What it checks (1)

  1. assert _flagged(flagged) == ["library"] 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_a_root_matching_no_pattern_is_flagged→_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_matching_no_pattern_is_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.