test_pattern_matching_is_case_insensitive¶
Tests › tests/test_extra_input_patterns.py
What this test is for
Why it exists
`*.h` against `AES.H`. The two possible errors here are not symmetric: a false alarm refuses a build that would have worked, a missed case leaves the pre-existing silent behaviour. Case-insensitive matching admits MORE files and therefore flags FEWER roots, which is the safe direction for a hard failure.
Given
doxyfile = _doxyfile(tmp_path, "FILE_PATTERNS = *.h")_write(tmp_path / "include" / "AES.H")
When
ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["include"], None, tmp_path)
Then
- ✓ ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["include"], None, tmp_path) equals []
tests/test_extra_input_patterns.py:176 · its file's page
What it checks (1)
assert ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["include"], None, tmp_path) == []observesroots_matching_no_file_pattern
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