pub enum TestingError {
MockError(String),
AssertionFailed(String),
FixtureError(String),
EnvironmentError(String),
Timeout(String),
SerializationError(String),
}Expand description
测试错误类型
Variants§
MockError(String)
Mock 错误
AssertionFailed(String)
断言失败
FixtureError(String)
数据生成错误
EnvironmentError(String)
环境设置错误
Timeout(String)
超时错误
SerializationError(String)
序列化错误
Trait Implementations§
Source§impl Debug for TestingError
impl Debug for TestingError
Source§impl Display for TestingError
impl Display for TestingError
Source§impl Error for TestingError
impl Error for TestingError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for TestingError
impl RefUnwindSafe for TestingError
impl Send for TestingError
impl Sync for TestingError
impl Unpin for TestingError
impl UnsafeUnpin for TestingError
impl UnwindSafe for TestingError
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