pub enum TestStatement {
Statement(Statement),
Assert(AssertStatement),
Expect(ExpectStatement),
Should(ShouldStatement),
Fixture(TestFixture),
}Expand description
Statements that can appear in tests
Variants§
Statement(Statement)
Regular statement
Assert(AssertStatement)
Assertion
Expect(ExpectStatement)
Expect-style assertion
Should(ShouldStatement)
Should-style assertion
Fixture(TestFixture)
Test fixture
Trait Implementations§
Source§impl Clone for TestStatement
impl Clone for TestStatement
Source§fn clone(&self) -> TestStatement
fn clone(&self) -> TestStatement
Returns a duplicate 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 TestStatement
impl Debug for TestStatement
Source§impl<'de> Deserialize<'de> for TestStatement
impl<'de> Deserialize<'de> for TestStatement
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
Auto Trait Implementations§
impl Freeze for TestStatement
impl RefUnwindSafe for TestStatement
impl Send for TestStatement
impl Sync for TestStatement
impl Unpin for TestStatement
impl UnsafeUnpin for TestStatement
impl UnwindSafe for TestStatement
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