Skip to main content

Module gentests

Module gentests 

Source
Expand description

Generated artifacts from markdown code blocks: a test file per markdown source (plain rust blocks) and a runnable example per capture block. CI compares regenerated content against disk, so stale artifacts fail.

Constants§

GENERATED_HEADER
First line of every generated file; docs check uses it to tell generated artifacts from hand-written ones.

Functions§

capture_examples
Example-file contents for the capture blocks of one markdown doc, in capture order: (example_name, content).
sanitized_stem
docs/measuring.md → soothfast_doc_docs_measuring.
test_file
Test-file content for one markdown doc, or None when it has no testable blocks (all ignored / non-rust / capture).