test_no_file_reading_command_survives_a_hostile_source_comment

Tests › tests/test_doxyfile_injection.py

passed Passed in the packaged run.

What this test is for

Why it exists

Every file-reading doxygen command is neutered by a forced alias.

Verifies REQ-DDB-PIPE-014

tests/test_doxyfile_injection.py:291 · its file's page

What it checks (4)

  1. assert ours, f"@{command} reads a repo-chosen file and is not neutered"
  2. assert "ATTACKER-WINS" not in ours[-1], (f"the LAST ALIASES assignment for @{command} is the repository's " f"({ours[-1]!r}); doxygen takes the last one, so the command still reads files" )
  3. assert values and not values[-1], (f"{key} ends as {values[-1:]!r}, so the repository still chooses where " f"doxygen looks for files to inline" )
  4. assert _assignments(text, "EXAMPLE_RECURSIVE")[-1].upper() == "NO", ("EXAMPLE_RECURSIVE is a boolean, and an empty value would read as doxygen's own " "default rather than as a refusal" )

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_file_reading_command_survives_a_hostile_source_comment→_build_doxyfile_content→_assignments

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_file_reading_command_survives_a_hostile_source_comment · 4 checks_build_doxyfile_contentREQ-DDB-INDEX-001 · measured_build_doxyfile_contentextra_input_clears_excludeREQ-DDB-PIPE-003 · measured

Requirements it verifies (1)

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

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