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