mirror of
https://github.com/maplibre/martin.git
synced 2024-12-20 21:31:49 +03:00
[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:
parent
9ab0f9d335
commit
8b35f09461
13
src/lib.rs
13
src/lib.rs
@ -7,3 +7,16 @@ pub mod server;
|
||||
pub mod source;
|
||||
pub mod table_source;
|
||||
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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user