pub enum TestExpectation {
Success,
Panics(PanicExpectation),
}Expand description
Expectation for a result of a test.
Variants§
Success
Running the test should not panic.
Panics(PanicExpectation)
Running the test should result in a panic.
Trait Implementations§
source§impl Clone for TestExpectation
impl Clone for TestExpectation
source§fn clone(&self) -> TestExpectation
fn clone(&self) -> TestExpectation
Returns a copy of the value. Read more
1.0.0 · 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 TestExpectation
impl Debug for TestExpectation
source§impl<'de> Deserialize<'de> for TestExpectation
impl<'de> Deserialize<'de> for TestExpectation
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 TestExpectation
impl PartialEq for TestExpectation
source§fn eq(&self, other: &TestExpectation) -> bool
fn eq(&self, other: &TestExpectation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TestExpectation
impl Serialize for TestExpectation
impl StructuralPartialEq for TestExpectation
Auto Trait Implementations§
impl Freeze for TestExpectation
impl RefUnwindSafe for TestExpectation
impl Send for TestExpectation
impl Sync for TestExpectation
impl Unpin for TestExpectation
impl UnwindSafe for TestExpectation
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
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