pub enum Divergence {
Tool {
index: usize,
expected: String,
actual: String,
},
Arguments {
index: usize,
tool: String,
expected: Value,
actual: Value,
},
Extra {
index: usize,
actual: String,
},
Missing {
index: usize,
expected: String,
},
}Expand description
How a replayed run departed from its recording.
Variants§
Tool
A different tool entirely. The strongest signal there is.
Arguments
The right tool, different arguments. Worth reporting separately: a model that reads the same file by a different path spelling has not regressed, and grading it as though it had makes replay useless inside a week.
Extra
The replay kept going after the recording ran out.
Missing
The replay stopped early.
Implementations§
Source§impl Divergence
impl Divergence
Sourcepub fn is_structural(&self) -> bool
pub fn is_structural(&self) -> bool
Whether this changes what the model did rather than how it spelled it.
Only argument differences are ever cosmetic, and only the caller knows whether they are — hence a predicate rather than a filter applied here.
Trait Implementations§
Source§impl Clone for Divergence
impl Clone for Divergence
Source§fn clone(&self) -> Divergence
fn clone(&self) -> Divergence
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 Divergence
impl Debug for Divergence
Source§impl<'de> Deserialize<'de> for Divergence
impl<'de> Deserialize<'de> for Divergence
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 Divergence
impl PartialEq for Divergence
Source§impl Serialize for Divergence
impl Serialize for Divergence
impl StructuralPartialEq for Divergence
Auto Trait Implementations§
impl Freeze for Divergence
impl RefUnwindSafe for Divergence
impl Send for Divergence
impl Sync for Divergence
impl Unpin for Divergence
impl UnsafeUnpin for Divergence
impl UnwindSafe for Divergence
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