test_a_missing_doxygen_is_refused_not_traced_back

Tests › tests/test_packaging.py

passed Passed in the packaged run.

What this test is for

Why it exists

doxygen is the one prerequisite that CANNOT be a pip dependency — it is a C++ program shipped as a system package, and `pip install doxygen` finds no distribution. So on a clean machine it is the most likely thing to be missing, and it was the worst-handled: `subprocess.Popen` raised `FileNotFoundError: ... 'doxygen'` from twelve frames down, which reads as a crash in this tool rather than a missing prerequisite.

Given

  1. monkeypatch.setattr(doxygen_module.shutil, "which", lambda _name: None)
→

When

  1. doxygen_module.run_doxygen(REPO_ROOT / "nonexistent-Doxyfile", REPO_ROOT)
  2. message = str(exc.value)
→

Then

  1. ✓ raises DoxygenUnavailableError
  2. ✓ message contains "not on PATH"
  3. ✓ message contains "apt install doxygen"
  4. ✓ message contains "PyPI"

tests/test_packaging.py:227 · its file's page

What it checks (3)

  1. assert "not on PATH" in message not attributed
  2. assert "apt install doxygen" in message, "the refusal must carry an install command" not attributed
  3. assert "PyPI" in message, "it must explain WHY it is not just another dependency" 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_a_missing_doxygen_is_refused_not_traced_back→run_doxygen

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_missing_doxygen_is_refused_not_traced_back · 3 checksrun_doxygendoxygen_supports_sqlite3REQ-DDB-CLI-002 · inferredrun_doxygenREQ-DDB-INDEX-001 · measuredrun_doxygen_build_doxyfile_contentextra_input_clears_excludeREQ-DDB-PIPE-003 · inferredrun_doxygenclean_subprocess_envREQ-DDB-PIPE-006 · inferred
Also reaches 4 requirements

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