[noop] Include readme code in the unit tests (#402)

This is a noop (we don't have any code in the readme at the moment),
but it ensures that if any is added, it all will compile properly.
This commit is contained in:
Yuri Astrakhan 2022-09-16 01:29:32 -04:00 committed by GitHub
parent 9ab0f9d335
commit 8b35f09461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,3 +7,16 @@ pub mod server;
pub mod source; pub mod source;
pub mod table_source; pub mod table_source;
pub mod utils; pub mod utils;
// Ensure README.md contains valid code
#[cfg(doctest)]
mod test_readme {
macro_rules! external_doc_test {
($x:expr) => {
#[doc = $x]
extern "C" {}
};
}
external_doc_test!(include_str!("../README.md"));
}