Game some more test coverage
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good

This commit is contained in:
Timothy Warren 2020-04-03 10:04:12 -04:00
parent b8ab76bbf6
commit 322ccfe78a

View File

@ -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!(),
}
}