test_doxygen_check_is_informational_for_a_rustdoc_repo¶
Tests › tests/test_init.py
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
(repo / "Cargo.toml").write_text('[package]\nname = "x"\n', encoding="utf-8")
When
check = init_command._check_doxygen(repo)
Then
- ✓ check.status equals CHECK_OK
- ✓ 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
… 222 later steps
tests/test_init.py:1462 · its file's page
What it checks (2)
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_doxygenviacheckassert "rustdoc" in check.detail.lower()observes_check_doxygenviacheck
Where the product reaches it
main→init_main→diagnose→_check_doxygen(flow)
Call flow
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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CLI-002 | catalog | 1 of 4: doxygen_supports_sqlite3 |
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-001 measured
- REQ-DDB-PIPE-006 inferred
- REQ-DDB-PIPE-012 inferred