[][src]Struct serial_unit_testing::tests::test_case::TestCaseSettings

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>,
}

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.

Methods

impl TestCaseSettings[src]

pub fn merge_weak(&mut self, other: &TestCaseSettings)[src]

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

impl Clone for TestCaseSettings[src]

impl Default for TestCaseSettings[src]

impl Debug for TestCaseSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]