test_rust_module_doc_comment_is_extracted¶
Tests › tests/test_filedocs.py
What this test is for
Why it exists
Rust's `//!` is not a lookalike of doxygen's line-comment marker — it is the same syntax, reused by rustc for module docs. `CFamilyFileDoc` needs no Rust-specific branch, only `.rs` in its claimed suffixes; this pins that it stays claimed.
Verifies REQ-DDB-SCHEMA-014
Given
- —
When
doc = extract_file_doc( "src/coupling.rs", "//! File-level import coupling: Efferent (Ce) and Afferent (Ca).\n" "//!\n" "//! Resolution is a best-effort heuristic, not real module resolution.\n" "use std::path::Path;\n", )
Then
- ✓ doc contains "Efferent"
- ✓ doc contains "best-effort heuristic"
tests/test_filedocs.py:111 · its file's page
What it checks (2)
assert "Efferent" in docobservesextract_file_docviadocassert "best-effort heuristic" in docobservesextract_file_docviadoc
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
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-SCHEMA-014 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-008 measured