test_doxygen_check_is_informational_for_a_rustdoc_repo

Tests › tests/test_init.py

passed Passed in the packaged run.

What this test is for

Why it exists

RUSTDOC_INTEGRATION_FEEDBACK.md, finding 4: `clew init` against a pure-Rust repo (no Doxyfile) reported `[fail] doxygen ... built WITHOUT sqlite3 support` and exited 1, even though that repo's build path (`run_rustdoc`) never shells out to doxygen at all. Confirmed live against `knots` before this fix — no doxygen binary needs to be present, broken, or even on PATH for the false failure to fire, since a `Cargo.toml` with no Doxyfile is enough to select `run_rustdoc` regardless of what `_check_doxygen` finds.

Verifies REQ-DDB-CLI-002

Given

  1. (repo / "Cargo.toml").write_text('[package]\nname = "x"\n', encoding="utf-8")
→

When

  1. check = init_command._check_doxygen(repo)
→

Then

  1. ✓ check.status equals CHECK_OK
  2. ✓ check.detail.lower() contains "rustdoc"

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

clew — `main` (clew/cli.py) · 3 of 400 steps

… 171 earlier steps

command-line usercommand-line usercommand-line usercommand-line userclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyother filesother filesother filesother filesloop (line 312)looploop (line 314)loopmain172–173. diagnose → _check_mcp_sdk172_check_mcp_sdk +1 more174. _check_doxygen → uses_rustdoc174uses_rustdoc▶ test enters175–176. uses_rustdoc → discover_doxyfile175discover_doxyfile +1 more177. _check_doxygen → _needs_doxygen177_needs_doxygen178. _needs_doxygen → claims178claims

… 222 later steps

tests/test_init.py:1462 · its file's page

What it checks (2)

  1. assert check.status == CHECK_OK, ( f"a repo with no C/C++ build path must not fail on doxygen; got {check.status!r}: " f"{check.detail}" ) observes _check_doxygen via check
  2. assert "rustdoc" in check.detail.lower() observes _check_doxygen via check

Where the product reaches it

  • main → init_main → diagnose → _check_doxygen (flow)

Call flow

test_doxygen_check_is_informational_for_a_rustdoc_repo→_check_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_doxygen_check_is_informational_for_a_rustdoc_repo · 2 checks_check_doxygendoxygen_supports_sqlite3REQ-DDB-CLI-002 · catalog_check_doxygenuses_rustdocdiscover_doxyfileREQ-DDB-INDEX-001 · measured_check_doxygendoxygen_supports_sqlite3clean_subprocess_envREQ-DDB-PIPE-006 · inferred_check_doxygen_needs_doxygenREQ-DDB-PIPE-012 · inferred

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-CLI-002catalog1 of 4: doxygen_supports_sqlite3
Also reaches 3 requirements

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