pub struct TestReport {
pub suite_name: Option<String>,
pub total: usize,
pub passed: usize,
pub failed: usize,
pub skipped: usize,
pub errored: usize,
}Expand description
Lightweight test report summary counts.
Fields§
§suite_name: Option<String>§total: usize§passed: usize§failed: usize§skipped: usize§errored: usizeImplementations§
Source§impl TestReport
impl TestReport
pub const fn new() -> Self
pub fn success_rate(&self) -> Option<f64>
pub const fn is_success(&self) -> bool
Trait Implementations§
Source§impl Clone for TestReport
impl Clone for TestReport
Source§fn clone(&self) -> TestReport
fn clone(&self) -> TestReport
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 TestReport
impl Debug for TestReport
Source§impl Default for TestReport
impl Default for TestReport
Source§fn default() -> TestReport
fn default() -> TestReport
Returns the “default value” for a type. Read more
Source§impl Hash for TestReport
impl Hash for TestReport
Source§impl PartialEq for TestReport
impl PartialEq for TestReport
Source§fn eq(&self, other: &TestReport) -> bool
fn eq(&self, other: &TestReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TestReport
impl StructuralPartialEq for TestReport
Auto Trait Implementations§
impl Freeze for TestReport
impl RefUnwindSafe for TestReport
impl Send for TestReport
impl Sync for TestReport
impl Unpin for TestReport
impl UnsafeUnpin for TestReport
impl UnwindSafe for TestReport
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