pub struct DifferentialResult {
pub case_id: String,
pub packet_id: String,
pub operation: FixtureOperation,
pub mode: RuntimeMode,
pub replay_key: String,
pub trace_id: String,
pub oracle_source: FixtureOracleSource,
pub status: CaseStatus,
pub drift_records: Vec<DriftRecord>,
pub evidence_records: usize,
pub retired_reason: Option<String>,
}Expand description
Full differential comparison result for a single fixture case.
Fields§
§case_id: String§packet_id: String§operation: FixtureOperation§mode: RuntimeMode§replay_key: String§trace_id: String§oracle_source: FixtureOracleSource§status: CaseStatus§drift_records: Vec<DriftRecord>§evidence_records: usize§retired_reason: Option<String>Why this case was retired, when status is CaseStatus::Retired.
br-frankenpandas-fixture-corpus-stale-vs-oracle-p6srr. Deliberately a
dedicated field rather than a synthetic drift record: a retirement is
not drift, and folding it into drift_records would inflate the drift
summary with cases that were never even executed.
Implementations§
Source§impl DifferentialResult
impl DifferentialResult
Sourcepub fn retired(fixture: &PacketFixture, reason: &str) -> Self
pub fn retired(fixture: &PacketFixture, reason: &str) -> Self
A case that was retired and therefore NOT executed.
No drift records and no evidence: nothing ran. The status is
CaseStatus::Retired, never Pass, so it cannot be mistaken for a
fixture that was checked.
Source§impl DifferentialResult
impl DifferentialResult
Sourcepub fn to_case_result(&self) -> CaseResult
pub fn to_case_result(&self) -> CaseResult
Convert to backward-compatible CaseResult.
Trait Implementations§
Source§impl Clone for DifferentialResult
impl Clone for DifferentialResult
Source§impl Debug for DifferentialResult
impl Debug for DifferentialResult
Source§impl<'de> Deserialize<'de> for DifferentialResult
impl<'de> Deserialize<'de> for DifferentialResult
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
Source§impl PartialEq for DifferentialResult
impl PartialEq for DifferentialResult
Source§impl Serialize for DifferentialResult
impl Serialize for DifferentialResult
impl StructuralPartialEq for DifferentialResult
Auto Trait Implementations§
impl Freeze for DifferentialResult
impl RefUnwindSafe for DifferentialResult
impl Send for DifferentialResult
impl Sync for DifferentialResult
impl Unpin for DifferentialResult
impl UnsafeUnpin for DifferentialResult
impl UnwindSafe for DifferentialResult
Blanket Implementations§
impl<T> Allocation for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more