Attempt CI coverage report
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
This commit is contained in:
parent
35c99a3ba1
commit
38c2d93c0a
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -15,5 +15,16 @@ pipeline {
|
||||
sh "cargo test"
|
||||
}
|
||||
}
|
||||
stage('Coverage') {
|
||||
steps {
|
||||
sh "cargo install cargo-tarpaulin"
|
||||
sh "make coverage"
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
cobertura coberturaReportFile: '*/.xml'
|
||||
}
|
||||
}
|
||||
}
|
@ -30,7 +30,6 @@ pub struct Frac<T: Unsigned = usize> {
|
||||
sign: Sign,
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
/// Create a [Frac](rational/struct.Frac.html) type with signed or unsigned number literals
|
||||
///
|
||||
/// Example:
|
||||
@ -49,6 +48,7 @@ pub struct Frac<T: Unsigned = usize> {
|
||||
/// // Whole numbers and fractions
|
||||
/// frac!(1 1/2);
|
||||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! frac {
|
||||
($w:literal $n:literal / $d:literal) => {
|
||||
frac!($w) + frac!($n / $d)
|
||||
|
Loading…
Reference in New Issue
Block a user