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ยง
Sourceยงimpl 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ยง
Sourceยงimpl Clone for TestTimeOptions
impl Clone for TestTimeOptions
Sourceยงfn clone(&self) -> TestTimeOptions
fn clone(&self) -> TestTimeOptions
Returns a copy 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 TestTimeOptions
impl Debug for TestTimeOptions
Sourceยงimpl Default for TestTimeOptions
impl Default for TestTimeOptions
Sourceยงfn default() -> TestTimeOptions
fn default() -> TestTimeOptions
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl PartialEq for TestTimeOptions
impl PartialEq for TestTimeOptions
impl Copy for TestTimeOptions
impl Eq for TestTimeOptions
impl StructuralPartialEq for TestTimeOptions
Auto Trait Implementationsยง
impl Freeze for TestTimeOptions
impl RefUnwindSafe for TestTimeOptions
impl Send for TestTimeOptions
impl Sync for TestTimeOptions
impl Unpin for TestTimeOptions
impl UnwindSafe for TestTimeOptions
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