pub enum GoldenError {
NotFound(PathBuf),
Mismatch {
file: PathBuf,
reason: String,
},
ChecksumMismatch {
expected: String,
actual: String,
},
ReadFailed(Error),
WriteFailed(String),
LineEndingNormalization(String),
}Expand description
Golden file comparison and validation errors
Variants§
NotFound(PathBuf)
Mismatch
ChecksumMismatch
ReadFailed(Error)
WriteFailed(String)
LineEndingNormalization(String)
Trait Implementations§
Source§impl Debug for GoldenError
impl Debug for GoldenError
Source§impl Display for GoldenError
impl Display for GoldenError
Source§impl Error for GoldenError
impl Error for GoldenError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for GoldenError
impl From<Error> for GoldenError
Source§impl From<GoldenError> for E2EError
impl From<GoldenError> for E2EError
Source§fn from(source: GoldenError) -> Self
fn from(source: GoldenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GoldenError
impl !RefUnwindSafe for GoldenError
impl Send for GoldenError
impl Sync for GoldenError
impl Unpin for GoldenError
impl !UnwindSafe for GoldenError
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