pub struct Summary { /* private fields */ }Expand description
Result summary element for a CTRF report. Corresponds to the spec’s “Summary” object.
Implementations§
Source§impl Summary
impl Summary
Sourcepub fn new(start: SystemTime, stop: SystemTime) -> Self
pub fn new(start: SystemTime, stop: SystemTime) -> Self
Creates a report Summary instance
Sourcepub fn passed(&mut self, count: usize)
pub fn passed(&mut self, count: usize)
Sets the count of passed tests and updates the overall total
Sourcepub fn failed(&mut self, count: usize)
pub fn failed(&mut self, count: usize)
Sets the count of failed tests and updates the overall total
Sourcepub fn pending(&mut self, count: usize)
pub fn pending(&mut self, count: usize)
Sets the count of pending tests and updates the overall total
Sourcepub fn skipped(&mut self, count: usize)
pub fn skipped(&mut self, count: usize)
Sets the count of skipped tests and updates the overall total
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Summary
impl<'de> Deserialize<'de> for Summary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Extra for Summary
impl Extra for Summary
Source§fn insert_extra(&mut self, key: String, value: Value) -> Option<Value>
fn insert_extra(&mut self, key: String, value: Value) -> Option<Value>
Inserts an element into the Extra map. Returns the value that it replaced, if one was present, or None if not.
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnwindSafe for Summary
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