Skip to content

Commit

Permalink
Automatically test code examples in the README file (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez authored and seanmonstar committed Nov 25, 2019
1 parent 8a3361f commit fd84409
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -37,6 +37,7 @@ rand = "0.7.0"
seahash = "3.0.5"
serde = "1.0"
serde_json = "1.0"
doc-comment = "0.3"

[[bench]]
name = "header_map"
Expand Down
7 changes: 7 additions & 0 deletions src/lib.rs
Expand Up @@ -160,6 +160,13 @@

#![deny(warnings, missing_docs, missing_debug_implementations)]

#[cfg(test)]
#[macro_use]
extern crate doc_comment;

#[cfg(test)]
doctest!("../README.md");

pub mod header;
pub mod method;
pub mod request;
Expand Down

0 comments on commit fd84409

Please sign in to comment.