pub struct ContractReport {
pub checked: usize,
pub skipped: usize,
pub mutations: Vec<MutationReport>,
}Expand description
Aggregate result of validating every mutation’s contract.
Fields§
§checked: usizeDB-backed mutations checked.
skipped: usizeNon-DB-backed mutations skipped.
mutations: Vec<MutationReport>Mutations with at least one violation.
Implementations§
Source§impl ContractReport
impl ContractReport
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Total error-severity violations across all mutations.
Sourcepub fn warn_count(&self) -> usize
pub fn warn_count(&self) -> usize
Total warning-severity violations across all mutations.
Sourcepub fn print_text(&self)
pub fn print_text(&self)
Print the report in human-readable form to stdout.
Trait Implementations§
Source§impl Clone for ContractReport
impl Clone for ContractReport
Source§fn clone(&self) -> ContractReport
fn clone(&self) -> ContractReport
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 ContractReport
impl Debug for ContractReport
Source§impl Default for ContractReport
impl Default for ContractReport
Source§fn default() -> ContractReport
fn default() -> ContractReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContractReport
impl RefUnwindSafe for ContractReport
impl Send for ContractReport
impl Sync for ContractReport
impl Unpin for ContractReport
impl UnsafeUnpin for ContractReport
impl UnwindSafe for ContractReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more