test_a_legitimately_empty_root_is_not_flagged

Tests › tests/test_extra_input_patterns.py

passed Passed in the packaged run.

What this test is for

Why it exists

A guard that fires on the benign case is worse than no guard. An empty directory contributes zero files whatever the patterns say, so blaming FILE_PATTERNS for it would be a false alarm — and would train the reader to ignore the message in the case that matters.

Given

  1. doxyfile = _doxyfile(tmp_path, "FILE_PATTERNS = *.h")
  2. (tmp_path / "empty").mkdir()
→

When

  1. ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["empty"], None, tmp_path)
  2. ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["absent"], None, tmp_path)
→

Then

  1. ✓ ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["empty"], None, tmp_path) equals []
  2. ✓ ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["absent"], None, tmp_path) equals []

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

What it checks (2)

  1. assert ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["empty"], None, tmp_path) == [] observes roots_matching_no_file_pattern
  2. assert ts.roots_matching_no_file_pattern(doxyfile, tmp_path, ["absent"], None, tmp_path) == [] observes roots_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

test_a_legitimately_empty_root_is_not_flagged→_doxyfile→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_legitimately_empty_root_is_not_flagged · 2 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.