test_rust_module_doc_comment_is_extracted

Tests › tests/test_filedocs.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. 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

  1. ✓ doc contains "Efferent"
  2. ✓ doc contains "best-effort heuristic"

tests/test_filedocs.py:111 · its file's page

What it checks (2)

  1. assert "Efferent" in doc observes extract_file_doc via doc
  2. assert "best-effort heuristic" in doc observes extract_file_doc via doc

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_rust_module_doc_comment_is_extracted→extract_file_doc

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_rust_module_doc_comment_is_extracted · 2 checksextract_file_docREQ-DDB-PIPE-008 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-SCHEMA-014catalogunknown
Also reaches 1 requirement

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