From 34a19899256a2d471f16e08b380d7cec48ae7a0a Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 5 Mar 2020 21:53:33 -0500 Subject: [PATCH] Tests should not be listed in test coverage report --- src/bigint.rs | 1 + src/num.rs | 1 + src/rational.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bigint.rs b/src/bigint.rs index 61f865f..cb87012 100644 --- a/src/bigint.rs +++ b/src/bigint.rs @@ -300,6 +300,7 @@ impl_from_smaller!((i8, u8), (i16, u16), (i32, u32), (i64, u64)); static BITS:usize = 64; #[cfg(test)] +#[cfg_attr(tarpaulin, skip)] mod tests { use super::*; diff --git a/src/num.rs b/src/num.rs index 15236b0..dac4372 100644 --- a/src/num.rs +++ b/src/num.rs @@ -272,6 +272,7 @@ impl_unsigned!(u8, u16, u32, u64, u128, usize); impl_empty!(Signed, (i8, i16, i32, i64, i128, isize)); #[cfg(test)] +#[cfg_attr(tarpaulin, skip)] mod tests { use super::*; diff --git a/src/rational.rs b/src/rational.rs index 613374b..f1ab36d 100644 --- a/src/rational.rs +++ b/src/rational.rs @@ -314,8 +314,8 @@ impl Neg for Frac { } } -#[cfg_attr(tarpaulin, skip)] #[cfg(test)] +#[cfg_attr(tarpaulin, skip)] mod tests { use super::*;