#[non_exhaustive]pub struct TestSummary {
pub count: u64,
pub pass: u64,
pub fail: u64,
pub error: u64,
pub not_run: u64,
pub last_run_at: Option<String>,
pub branches_total: u32,
pub branches_covered: u32,
}Expand description
The results of a function’s tests (Store::function_test_summary): how many there are,
how many passed, failed, errored or have not run, the latest run and the branch counts.
Default is the summary of no tests (all zero, no run). Since 0.5.2.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.count: u64The tests counted.
pass: u64The tests whose last run passed.
fail: u64The tests whose last run failed.
error: u64The tests whose last run errored.
not_run: u64The tests that have not run (no last result).
last_run_at: Option<String>The latest last_run_at of the tests, if any has run (an instant; instants compare as
text).
branches_total: u32The branches of the function (the value replicated on its tests; 0 when none).
branches_covered: u32The branches covered by the function’s tests (replicated as branches_total).
Trait Implementations§
Source§impl Clone for TestSummary
impl Clone for TestSummary
Source§impl Debug for TestSummary
impl Debug for TestSummary
Auto Trait Implementations§
impl Forget for TestSummary
impl Freeze for TestSummary
impl Move for TestSummary
impl RefUnwindSafe for TestSummary
impl Send for TestSummary
impl Sync for TestSummary
impl Unpin for TestSummary
impl UnsafeUnpin for TestSummary
impl UnwindSafe for TestSummary
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