pub struct Report {
pub results: Vec<PlanResult>,
}Expand description
One result per plan, in plan order.
Fields§
§results: Vec<PlanResult>Implementations§
Source§impl Report
impl Report
Sourcepub fn passed(&self) -> bool
pub fn passed(&self) -> bool
Nothing failed. Tests that aren’t supported yet, or weren’t run, don’t count against it.
pub fn count(&self, status: Status) -> usize
Sourcepub fn merge(self, other: Report) -> Report
pub fn merge(self, other: Report) -> Report
Plan by plan, the more informative of the two: a result that ran over one that’s unsupported, and either over none. Merges the runs of different drivers.
Sourcepub fn verdicts(&self, suite: &Suite, plans: &[Plan]) -> Vec<Verdict>
pub fn verdicts(&self, suite: &Suite, plans: &[Plan]) -> Vec<Verdict>
Each expectation’s verdict, from the checks it contributed.
Sourcepub fn save(&self, plans: &[Plan]) -> String
pub fn save(&self, plans: &[Plan]) -> String
The results as text, one line per plan, step and check, keyed by each plan’s slug so they load back onto a suite that has changed since.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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