pub struct CheckResult { /* private fields */ }Expand description
The result of running a check. Use its methods to assert on status, findings, and evidence.
Implementations§
Source§impl CheckResult
impl CheckResult
pub fn expect_pass(&self) -> &Self
pub fn expect_warn(&self) -> &Self
pub fn expect_fail(&self) -> &Self
pub fn expect_target(&self, expected: &str) -> &Self
pub fn expect_target_contains(&self, substring: &str) -> &Self
pub fn expect_target_matches_dir(&self) -> &Self
pub fn expect_observed(&self, expected: u64) -> &Self
pub fn expect_evidence_rule(&self, index: usize, rule: &str) -> &Self
pub fn expect_evidence_count(&self, expected: usize) -> &Self
pub fn expect_evidence_found_contains( &self, index: usize, substring: &str, ) -> &Self
pub fn expect_evidence_has_expected(&self, index: usize) -> &Self
pub fn expect_evidence_expected_contains( &self, index: usize, substring: &str, ) -> &Self
pub fn expect_evidence_no_expected(&self, index: usize) -> &Self
pub fn expect_finding_count(&self, expected: usize) -> &Self
pub fn expect_no_findings(&self) -> &Self
pub fn expect_error(&self, code: &str) -> &Self
pub fn debug(&self) -> &Self
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnsafeUnpin for CheckResult
impl UnwindSafe for CheckResult
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