Module doctest

Source

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Β§

CreateRunnableDocTests πŸ”’
GlobalTestOptions πŸ”’
Options that apply to all doctests in a crate or Markdown file (for rustdoc foo.md).
IndividualTestOptions πŸ”’
RunnableDocTest πŸ”’
Information needed for running a bundle of doctests.
ScrapedDocTest πŸ”’
A doctest scraped from the code, ready to be turned into a runnable test.
UnusedExterns πŸ”’

EnumsΒ§

DirState πŸ”’
TestFailure πŸ”’
Documentation test failure modes.

TraitsΒ§

DocTestVisitor πŸ”’

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 πŸ”’