test_discover_doxyfile¶
Tests › tests/test_mcp_server.py
What this test is for
Why it exists
Root Doxyfile wins; a one-level-down Doxyfile is the fallback; neither present yields None.
Verifies REQ-DDB-MCP-001 REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
repo = tmp_path / "repo"(repo / "docs").mkdir(parents=True)
2 more
(repo / "docs" / "Doxyfile").write_text("")(repo / "Doxyfile").write_text("")
When
- —
Then
- ✓ st.discover_doxyfile(repo) is None
- ✓ st.discover_doxyfile(repo) equals repo / "docs" / "Doxyfile"
- ✓ st.discover_doxyfile(repo) equals repo / "Doxyfile"
tests/test_mcp_server.py:2482 · its file's page
What it checks (3)
assert st.discover_doxyfile(repo) is Nonenot attributedassert st.discover_doxyfile(repo) == repo / "docs" / "Doxyfile"not attributedassert st.discover_doxyfile(repo) == repo / "Doxyfile"not attributed
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 (5)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-MCP-001 | catalog | unknown |
| REQ-DDB-MCP-003 | catalog | unknown |
| REQ-DDB-QUERY-006 | catalog | unknown |
| REQ-DDB-QUERY-008 | catalog | unknown |
| REQ-DDB-QUERY-009 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-001 measured