Fix code coverage
timw4mail/rusty-numbers/pipeline/head This commit looks good Details

This commit is contained in:
Timothy Warren 2020-09-15 10:31:44 -04:00
parent 19fa9bf6c7
commit 5b445add4b
6 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,5 @@
use criterion::{criterion_group, criterion_main};
#[cfg_attr(tarpaulin, skip)]
#[cfg(not(tarpaulin_include))]
mod sf {
use criterion::{black_box, BenchmarkId, Criterion};
use rusty_numbers::num::Unsigned;

View File

@ -600,7 +600,7 @@ impl_from_smaller!((i8, u8), (i16, u16), (i32, u32), (i64, u64));
impl_ord_literal!(i8, u8, i16, u16, i32, u32, i64, u64, i128, u128);
#[cfg(test)]
#[cfg_attr(tarpaulin, skip)]
#[cfg(not(tarpaulin_include))]
mod tests {
use super::*;

View File

@ -209,7 +209,7 @@ pub fn approx_factorial(n: f64) -> Option<f64> {
}
#[cfg(test)]
#[cfg_attr(tarpaulin, skip)]
#[cfg(not(tarpaulin_include))]
mod tests {
use super::*;

View File

@ -30,7 +30,7 @@ pub enum FracOp {
}
impl Default for Sign {
#[cfg_attr(tarpaulin, skip)]
#[cfg(not(tarpaulin_include))]
fn default() -> Self {
Sign::Positive
}
@ -304,7 +304,7 @@ impl_unsigned!(u8, u16, u32, u64, u128, usize);
impl_empty!(Signed, (i8, i16, i32, i64, i128, isize));
#[cfg(test)]
#[cfg_attr(tarpaulin, skip)]
#[cfg(not(tarpaulin_include))]
mod tests {
use super::*;

View File

@ -308,7 +308,7 @@ impl<T: Unsigned> Neg for Frac<T> {
}
#[cfg(test)]
#[cfg_attr(tarpaulin, skip)]
#[cfg(not(tarpaulin_include))]
mod tests {
use super::*;

View File

@ -1,4 +1,4 @@
#[cfg_attr(tarpaulin, skip)]
#[cfg(not(tarpaulin_include))]
mod tests {
use rusty_numbers::frac;
use rusty_numbers::rational::Frac;