pub struct TestCaseSettings {
pub ignore_case: Option<bool>,
pub repeat: Option<u32>,
pub delay: Option<Duration>,
pub timeout: Option<Duration>,
pub allow_failure: Option<bool>,
pub verbose: Option<bool>,
}
Expand description
Settings for running a test.
All not set properties will be overwritten by the test suite.
Fields§
§ignore_case: Option<bool>
Ignore case for string comparison.
repeat: Option<u32>
Repeat the test given times.
delay: Option<Duration>
Wait given milliseconds before executing the test.
timeout: Option<Duration>
Timeout duration before the test will fail.
allow_failure: Option<bool>
Allow the test to fail.
verbose: Option<bool>
Print additional information when executing the test.
Implementations§
Source§impl TestCaseSettings
impl TestCaseSettings
Sourcepub fn merge_weak(&mut self, other: &TestCaseSettings)
pub fn merge_weak(&mut self, other: &TestCaseSettings)
Merge test settings with other test settings.
Properties will be set if own property is not set but other’s is. Own properties will not be overwritten.
Trait Implementations§
Source§impl Clone for TestCaseSettings
impl Clone for TestCaseSettings
Source§fn clone(&self) -> TestCaseSettings
fn clone(&self) -> TestCaseSettings
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 TestCaseSettings
impl Debug for TestCaseSettings
Source§impl Default for TestCaseSettings
impl Default for TestCaseSettings
Source§fn default() -> TestCaseSettings
fn default() -> TestCaseSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestCaseSettings
impl RefUnwindSafe for TestCaseSettings
impl Send for TestCaseSettings
impl Sync for TestCaseSettings
impl Unpin for TestCaseSettings
impl UnwindSafe for TestCaseSettings
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