From 322ccfe78a3c27a6adf928628f5fbee1f5e53d67 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 3 Apr 2020 10:04:12 -0400 Subject: [PATCH] Game some more test coverage --- src/num.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/num.rs b/src/num.rs index 20e2d8d..8764ad5 100644 --- a/src/num.rs +++ b/src/num.rs @@ -30,6 +30,7 @@ pub enum FracOp { } impl Default for Sign { + #[cfg_attr(tarpaulin, skip)] fn default() -> Self { Sign::Positive } @@ -159,6 +160,7 @@ macro_rules! impl_int { self == 0 } + #[cfg_attr(tarpaulin, skip)] fn max_value() -> $type { <$type>::max_value() } @@ -251,6 +253,7 @@ macro_rules! impl_unsigned { let (x, y) = (min(x, y), max(x, y)); Self::stein_gcd((y - x) >> 1, x) } + #[cfg_attr(tarpaulin, skip)] _ => unreachable!(), } }