test_no_declaration_emits_no_doxyfile_lines

Tests › tests/test_preprocessor.py

passed Passed in the packaged run.

What this test is for

Why it exists

The other half of inertness, and the one a build test cannot show: not merely that an undeclared target indexes the same rows, but that doxygen is fed the same BYTES. `ENABLE_PREPROCESSING` is checked by name because forcing it unconditionally would be an invisible policy change on every existing target.

Verifies REQ-DDB-CONFIG-004 REQ-DDB-PIPE-014

Given

  1. root = _fixture_repo(tmp_path)
→

When

  1. content = doxyfile_content_for(root / "Doxyfile")
  2. doxyfile_content_for(root / "Doxyfile", predefined="")
→

Then

  1. ✓ content does not contain "PREDEFINED"
  2. ✓ content does not contain "ENABLE_PREPROCESSING"
  3. ✓ content equals doxyfile_content_for(root / "Doxyfile", predefined="")

tests/test_preprocessor.py:426 · its file's page

What it checks (3)

  1. assert "PREDEFINED" not in content observes doxyfile_content_for via content
  2. assert "ENABLE_PREPROCESSING" not in content observes doxyfile_content_for via content
  3. assert content == doxyfile_content_for(root / "Doxyfile", predefined="") observes doxyfile_content_for

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_no_declaration_emits_no_doxyfile_lines→_fixture_repo→doxyfile_content_for

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_no_declaration_emits_no_doxyfile_lines · 3 checksdoxyfile_content_forREQ-DDB-INDEX-001 · measureddoxyfile_content_for_build_doxyfile_contentextra_input_clears_excludeREQ-DDB-PIPE-003 · measured

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-004catalogunknown
REQ-DDB-PIPE-014catalogunknown
Also reaches 2 requirements

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