pub struct ModelReport { /* private fields */ }Available on crate features
testing only.Expand description
Failures and skipped checks of one model.
Implementations§
Source§impl ModelReport
impl ModelReport
Sourcepub fn failures(&self) -> &[CheckFailure]
pub fn failures(&self) -> &[CheckFailure]
Checks that failed, each with its message.
Sourcepub fn skipped(&self) -> &[SkippedCheck]
pub fn skipped(&self) -> &[SkippedCheck]
Checks skipped, each with its reason: an exemption, a declared property, or a missing device.
Sourcepub fn thread_count_jobs(&self) -> Option<usize>
pub fn thread_count_jobs(&self) -> Option<usize>
Number of jobs a step split into when ModelCheck::ThreadCount passed, None when it did not run to a pass.
Sourcepub fn skip_reason(&self, check: ModelCheck) -> Option<&SkipReason>
pub fn skip_reason(&self, check: ModelCheck) -> Option<&SkipReason>
Returns the reason check was skipped, or None when it ran.
Sourcepub fn assert_passed(&self)
pub fn assert_passed(&self)
Asserts that no check failed.
§Panics
Panics with a summary line naming the failed checks, then every failure.
Trait Implementations§
Source§impl Debug for ModelReport
impl Debug for ModelReport
Auto Trait Implementations§
impl Freeze for ModelReport
impl RefUnwindSafe for ModelReport
impl Send for ModelReport
impl Sync for ModelReport
impl Unpin for ModelReport
impl UnsafeUnpin for ModelReport
impl UnwindSafe for ModelReport
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> 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