pub struct TestReliability {
pub name: String,
pub passes: u32,
pub failures: u32,
}Expand description
Per-test reliability record.
Fields§
§name: StringFull test path (e.g. crate::module::test_name).
passes: u32Number of iterations in which this test passed.
failures: u32Number of iterations in which this test failed.
Implementations§
Source§impl TestReliability
impl TestReliability
Sourcepub fn reliability(&self) -> f64
pub fn reliability(&self) -> f64
Fraction of runs that passed, in the range [0.0, 1.0].
Sourcepub fn reliability_pct(&self) -> f64
pub fn reliability_pct(&self) -> f64
Reliability as a percentage in [0.0, 100.0].
Sourcepub fn classification(&self, threshold_pct: Option<f64>) -> Classification
pub fn classification(&self, threshold_pct: Option<f64>) -> Classification
Classification per REPS § 4.
Trait Implementations§
Source§impl Clone for TestReliability
impl Clone for TestReliability
Source§fn clone(&self) -> TestReliability
fn clone(&self) -> TestReliability
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 TestReliability
impl Debug for TestReliability
Source§impl<'de> Deserialize<'de> for TestReliability
impl<'de> Deserialize<'de> for TestReliability
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
Auto Trait Implementations§
impl Freeze for TestReliability
impl RefUnwindSafe for TestReliability
impl Send for TestReliability
impl Sync for TestReliability
impl Unpin for TestReliability
impl UnsafeUnpin for TestReliability
impl UnwindSafe for TestReliability
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