test_the_refusal_names_the_root_and_the_patterns

Tests › tests/test_extra_input_patterns.py

passed Passed in the packaged run.

What this test is for

Why it exists

"Done means" for gh#3: an --extra-input root that contributes nothing is an error naming the pattern that excluded it, not a silent no-op. Both halves are load-bearing — the root tells the user which flag to drop, the patterns tell them what to widen, and either alone leaves them guessing.

Given

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

When

  1. with caplog.at_level("ERROR"), pytest.raises(SystemExit) as excinfo: _verify_extra_input_is_read(doxyfile, ["library"], None, tmp_path)
  2. message = caplog.text
→

Then

  1. ✓ excinfo.value.code equals 1
  2. ✓ message contains "library"
  3. ✓ message contains "*.h"
  4. ✓ message contains "FILE_PATTERNS"

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

What it checks (4)

  1. assert excinfo.value.code == 1 not attributed
  2. assert "library" in message, "the message must name the root the user passed" not attributed
  3. assert "*.h" in message, "the message must name the patterns that excluded it" not attributed
  4. assert "FILE_PATTERNS" in message, "the message must name the key to widen" not attributed

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_the_refusal_names_the_root_and_the_patterns→_doxyfile→_write→_verify_extra_input_is_read

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_the_refusal_names_the_root_and_the_patterns · 4 checks_verify_extra_input_is_readeffective_file_patternsREQ-DDB-CONFIG-001 · measured_verify_extra_input_is_readeffective_file_patternsREQ-DDB-INDEX-001 · measured
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.