[][src]Struct test::test::TestTimeOptions

pub struct TestTimeOptions {
    pub error_on_excess: bool,
    pub colored: bool,
    pub unit_threshold: TimeThreshold,
    pub integration_threshold: TimeThreshold,
    pub doctest_threshold: TimeThreshold,
}

Structure with parameters for calculating test execution time.

Fields

error_on_excess: bool

Denotes if the test critical execution time limit excess should be considered a test failure.

colored: boolunit_threshold: TimeThresholdintegration_threshold: TimeThresholddoctest_threshold: TimeThreshold

Implementations

impl TestTimeOptions[src]

pub fn new_from_env(error_on_excess: bool, colored: bool) -> Self[src]

pub fn is_warn(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool[src]

pub fn is_critical(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool[src]

Trait Implementations

impl Clone for TestTimeOptions[src]

impl Copy for TestTimeOptions[src]

impl Debug for TestTimeOptions[src]

impl Default for TestTimeOptions[src]

impl Eq for TestTimeOptions[src]

impl PartialEq<TestTimeOptions> for TestTimeOptions[src]

impl StructuralEq for TestTimeOptions[src]

impl StructuralPartialEq for TestTimeOptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.