pub struct TpsTestResult {
pub test_case: TpsTestCase,
pub h0_rejected: bool,
pub p_value: f64,
pub effect_size: f64,
pub confidence_level: f64,
pub summary: String,
pub metrics: TpsMetrics,
}Expand description
Result of running a TPS test case.
Fields§
§test_case: TpsTestCaseTest case identifier
h0_rejected: boolWhether the null hypothesis was rejected (falsified)
p_value: f64P-value from statistical test
effect_size: f64Effect size (e.g., Cohen’s d)
confidence_level: f64Confidence level used
summary: StringSummary of results
metrics: TpsMetricsDetailed metrics
Implementations§
Source§impl TpsTestResult
impl TpsTestResult
Sourcepub fn new(test_case: TpsTestCase) -> Self
pub fn new(test_case: TpsTestCase) -> Self
Create a new test result.
Sourcepub fn with_metrics(self, metrics: TpsMetrics) -> Self
pub fn with_metrics(self, metrics: TpsMetrics) -> Self
Set metrics.
Sourcepub fn with_summary(self, summary: &str) -> Self
pub fn with_summary(self, summary: &str) -> Self
Set summary.
Trait Implementations§
Source§impl Clone for TpsTestResult
impl Clone for TpsTestResult
Source§fn clone(&self) -> TpsTestResult
fn clone(&self) -> TpsTestResult
Returns a duplicate of the value. Read more
1.0.0 · 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 TpsTestResult
impl Debug for TpsTestResult
Source§impl<'de> Deserialize<'de> for TpsTestResult
impl<'de> Deserialize<'de> for TpsTestResult
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 TpsTestResult
impl RefUnwindSafe for TpsTestResult
impl Send for TpsTestResult
impl Sync for TpsTestResult
impl Unpin for TpsTestResult
impl UnsafeUnpin for TpsTestResult
impl UnwindSafe for TpsTestResult
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