pub enum CoverageObservation {
Absent,
Unreadable(String),
Read(CoverageRecord),
}Expand description
The last coverage measurement scripts/rust-coverage recorded, as it recorded it.
use majordomus_cli::environment::preflight::{derive, CoverageObservation, Observations, Verdict};
let mut o = Observations::empty("demo", 0);
o.coverage = CoverageObservation::Unreadable("schema 9".into());
assert_eq!(derive(&o).check("verification.coverage").unwrap().verdict, Verdict::Unknown);Variants§
Absent
No record: nothing in this checkout has measured coverage.
Unreadable(String)
A record this executable cannot read; the reason.
Read(CoverageRecord)
The record.
Trait Implementations§
Source§impl Clone for CoverageObservation
impl Clone for CoverageObservation
Source§fn clone(&self) -> CoverageObservation
fn clone(&self) -> CoverageObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoverageObservation
impl Debug for CoverageObservation
Source§impl Default for CoverageObservation
impl Default for CoverageObservation
Source§fn default() -> CoverageObservation
fn default() -> CoverageObservation
Returns the “default value” for a type. Read more
impl Eq for CoverageObservation
Source§impl PartialEq for CoverageObservation
impl PartialEq for CoverageObservation
Source§fn eq(&self, other: &CoverageObservation) -> bool
fn eq(&self, other: &CoverageObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CoverageObservation
Auto Trait Implementations§
impl Freeze for CoverageObservation
impl RefUnwindSafe for CoverageObservation
impl Send for CoverageObservation
impl Sync for CoverageObservation
impl Unpin for CoverageObservation
impl UnsafeUnpin for CoverageObservation
impl UnwindSafe for CoverageObservation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.