Modules§
- extracted 🔒
- 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§
- Create
Runnable 🔒DocTests - Global
Test 🔒Options - Options that apply to all doctests in a crate or Markdown file (for
rustdoc foo.md
). - Individual
Test 🔒Options - Runnable
DocTest 🔒 - Information needed for running a bundle of doctests.
- Scraped
DocTest 🔒 - A doctest scraped from the code, ready to be turned into a runnable test.
- Unused
Externs 🔒
Enums§
- DirState 🔒
- Test
Failure 🔒 - Documentation test failure modes.
Traits§
Functions§
- add_
exe_ 🔒suffix - doctest_
run_ 🔒fn - generate_
args_ 🔒file - generate_
test_ 🔒desc_ and_ fn - get_
doctest_ 🔒dir - make_
maybe_ 🔒absolute_ path - 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
. - run_
tests 🔒 - scrape_
test_ 🔒config - split_
args 🔒 - Function used to split command line arguments just like a shell would.
- wrapped_
rustc_ 🔒command