pub struct ComparisonSummary {
pub total: usize,
pub both_passed_equivalent: usize,
pub both_passed_different: usize,
pub both_failed_same: usize,
pub both_failed_different: usize,
pub only_a_passed: usize,
pub only_b_passed: usize,
pub duration_ms: u64,
pub results: Vec<ComparisonResult>,
}Expand description
Summary of a comparison run.
Fields§
§total: usizeTotal tests compared.
both_passed_equivalent: usizeTests where both runtimes passed equivalently.
both_passed_different: usizeTests where both passed but differed.
both_failed_same: usizeTests where both failed the same way.
both_failed_different: usizeTests where both failed differently.
only_a_passed: usizeTests where only runtime A passed.
only_b_passed: usizeTests where only runtime B passed.
duration_ms: u64Total duration.
results: Vec<ComparisonResult>Individual comparison results.
Implementations§
Source§impl ComparisonSummary
impl ComparisonSummary
Sourcepub fn all_acceptable(&self) -> bool
pub fn all_acceptable(&self) -> bool
Check if all tests had acceptable outcomes.
Sourcepub fn add_result(&mut self, result: ComparisonResult)
pub fn add_result(&mut self, result: ComparisonResult)
Add a comparison result.
Trait Implementations§
Source§impl Clone for ComparisonSummary
impl Clone for ComparisonSummary
Source§fn clone(&self) -> ComparisonSummary
fn clone(&self) -> ComparisonSummary
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 ComparisonSummary
impl Debug for ComparisonSummary
Source§impl Default for ComparisonSummary
impl Default for ComparisonSummary
Source§fn default() -> ComparisonSummary
fn default() -> ComparisonSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComparisonSummary
impl<'de> Deserialize<'de> for ComparisonSummary
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 ComparisonSummary
impl RefUnwindSafe for ComparisonSummary
impl Send for ComparisonSummary
impl Sync for ComparisonSummary
impl Unpin for ComparisonSummary
impl UnsafeUnpin for ComparisonSummary
impl UnwindSafe for ComparisonSummary
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request