[][src]Macro doc_comment::doctest

doctest!() { /* proc-macro */ }

This proc macro provides a simpler way to test an outer markdown file.

Example

This code runs with edition 2018
doc_comment::doctest! { "../README.md" }
// It is the equivalent of:
#[doc_comment::doc_comment(include_str!("../README.md"))]
extern {}

// If you want to have a name for your tests:
doc_comment::doctest! { "../README.md", another }