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Β§
- DocTest
Visitor π
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