Struct test::test::TestTimeOptions
source · [−]pub struct TestTimeOptions {
pub error_on_excess: bool,
pub unit_threshold: TimeThreshold,
pub integration_threshold: TimeThreshold,
pub doctest_threshold: TimeThreshold,
}
🔬This is a nightly-only experimental API. (
test
)Expand description
Structure with parameters for calculating test execution time.
Fields
error_on_excess: bool
🔬This is a nightly-only experimental API. (
test
)Denotes if the test critical execution time limit excess should be considered a test failure.
unit_threshold: TimeThreshold
🔬This is a nightly-only experimental API. (
test
)integration_threshold: TimeThreshold
🔬This is a nightly-only experimental API. (
test
)doctest_threshold: TimeThreshold
🔬This is a nightly-only experimental API. (
test
)Implementations
sourceimpl TestTimeOptions
impl TestTimeOptions
pub fn new_from_env(error_on_excess: bool) -> Self
🔬This is a nightly-only experimental API. (
test
)pub fn is_warn(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool
🔬This is a nightly-only experimental API. (
test
)pub fn is_critical(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool
🔬This is a nightly-only experimental API. (
test
)Trait Implementations
sourceimpl Clone for TestTimeOptions
impl Clone for TestTimeOptions
sourcefn clone(&self) -> TestTimeOptions
fn clone(&self) -> TestTimeOptions
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TestTimeOptions
impl Debug for TestTimeOptions
sourceimpl Default for TestTimeOptions
impl Default for TestTimeOptions
sourcefn default() -> TestTimeOptions
fn default() -> TestTimeOptions
Returns the “default value” for a type. Read more
sourceimpl PartialEq<TestTimeOptions> for TestTimeOptions
impl PartialEq<TestTimeOptions> for TestTimeOptions
sourcefn eq(&self, other: &TestTimeOptions) -> bool
fn eq(&self, other: &TestTimeOptions) -> bool
impl Copy for TestTimeOptions
impl Eq for TestTimeOptions
impl StructuralEq for TestTimeOptions
impl StructuralPartialEq for TestTimeOptions
Auto Trait Implementations
impl RefUnwindSafe for TestTimeOptions
impl Send for TestTimeOptions
impl Sync for TestTimeOptions
impl Unpin for TestTimeOptions
impl UnwindSafe for TestTimeOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more