pub struct TestCaseFixture {
pub name: &'static str,
pub status: TestCaseFixtureStatus,
/* private fields */
}Fields§
§name: &'static str§status: TestCaseFixtureStatusImplementations§
Source§impl TestCaseFixture
impl TestCaseFixture
pub fn new(name: &'static str, status: TestCaseFixtureStatus) -> Self
pub fn with_property(self, property: TestCaseFixtureProperty) -> Self
pub fn has_property(&self, property: TestCaseFixtureProperty) -> bool
Sourcepub fn should_skip(&self, properties: u64) -> bool
pub fn should_skip(&self, properties: u64) -> bool
Determines if this test should be skipped based on run properties and filters.
Sourcepub fn expected_result(&self, properties: u64) -> CheckResult
pub fn expected_result(&self, properties: u64) -> CheckResult
Determines the expected test result based on test status and run properties.
Trait Implementations§
Source§impl Clone for TestCaseFixture
impl Clone for TestCaseFixture
Source§fn clone(&self) -> TestCaseFixture
fn clone(&self) -> TestCaseFixture
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 TestCaseFixture
impl Debug for TestCaseFixture
Source§impl IdOrdItem for TestCaseFixture
impl IdOrdItem for TestCaseFixture
Source§fn upcast_key<'short, 'long: 'short>(
long: Self::Key<'long>,
) -> Self::Key<'short>where
Self: 'long,
fn upcast_key<'short, 'long: 'short>(
long: Self::Key<'long>,
) -> Self::Key<'short>where
Self: 'long,
Upcasts the key to a shorter lifetime, in effect asserting that the
lifetime
'a on [IdOrdItem::Key] is covariant. Read moreSource§impl PartialEq<TestNameAndFilterMatch<'_>> for TestCaseFixture
impl PartialEq<TestNameAndFilterMatch<'_>> for TestCaseFixture
Auto Trait Implementations§
impl Freeze for TestCaseFixture
impl RefUnwindSafe for TestCaseFixture
impl Send for TestCaseFixture
impl Sync for TestCaseFixture
impl Unpin for TestCaseFixture
impl UnwindSafe for TestCaseFixture
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