rustdoc::doctest - Rust (original) (raw)
Module doctest
Modules§
Rustdoc’s doctest extraction.
make 🔒
Logic for transforming the raw code given by the user into something actually runnable, e.g. by adding a main
function if it doesn’t already exist.
markdown 🔒
Doctest functionality used only for doctests in .md
Markdown files.
runner 🔒
rust 🔒
Doctest functionality used only for doctests in .rs
source files.
Structs§
Options that apply to all doctests in a crate or Markdown file (for rustdoc foo.md
).
Information needed for running a bundle of doctests.
A doctest scraped from the code, ready to be turned into a runnable test.
Enums§
DirState 🔒
Documentation test failure modes.
Traits§
Functions§
Converts a path intended to use as a command to absolute if it is relative, and not a single component.
run 🔒
run_test 🔒
Execute a RunnableDoctest
.