diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-14 12:58:20 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-14 12:58:20 +0200 |
commit | 7616c1d843d812b1a66757867f4ad561d349e2e3 (patch) | |
tree | 66dbd6e09cd1f5bd0db9d92ce8f5ba919e633cf3 /src | |
parent | ff8171de0d27500f282edfd8865b1a04a4c79333 (diff) | |
download | markdown-rs-7616c1d843d812b1a66757867f4ad561d349e2e3.tar.gz markdown-rs-7616c1d843d812b1a66757867f4ad561d349e2e3.tar.bz2 markdown-rs-7616c1d843d812b1a66757867f4ad561d349e2e3.zip |
Refactor to attempt to fix some coverage bugs
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -15,6 +15,7 @@ #![deny(clippy::pedantic)] #![allow(clippy::doc_link_with_quotes)] #![allow(clippy::too_many_lines)] +#![allow(clippy::missing_panics_doc)] #![doc( html_logo_url = "https://raw.githubusercontent.com/wooorm/markdown-rs/8924580/media/logo-monochromatic.svg?sanitize=true" )] @@ -1451,7 +1452,6 @@ impl Options { /// assert_eq!(to_html("# Hello, world!"), "<h1>Hello, world!</h1>"); /// ``` #[must_use] -#[allow(clippy::missing_panics_doc)] pub fn to_html(value: &str) -> String { to_html_with_options(value, &Options::default()).unwrap() } @@ -1582,6 +1582,8 @@ mod tests { fn test_constructs() { #![allow(unused_must_use)] Constructs::default(); + Constructs::gfm(); + Constructs::mdx(); let constructs = Constructs::default(); assert!(constructs.attention, "should default to `CommonMark` (1)"); @@ -1624,6 +1626,8 @@ mod tests { fn test_parse_options() { #![allow(unused_must_use)] ParseOptions::default(); + ParseOptions::gfm(); + ParseOptions::mdx(); let options = ParseOptions::default(); assert!( @@ -1691,6 +1695,7 @@ mod tests { fn test_compile_options() { #![allow(unused_must_use)] CompileOptions::default(); + CompileOptions::gfm(); let options = CompileOptions::default(); assert!( |