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
impl Copy for TestTimeOptions
Sourceยงimpl Debug for TestTimeOptions
impl Debug for TestTimeOptions
Sourceยงimpl Default for TestTimeOptions
impl Default for TestTimeOptions
impl Eq for TestTimeOptions
Sourceยงimpl PartialEq for TestTimeOptions
impl PartialEq for TestTimeOptions
impl StructuralPartialEq for TestTimeOptions
Auto Trait Implementationsยง
impl Forget for TestTimeOptions
impl Freeze for TestTimeOptions
impl Move for TestTimeOptions
impl RefUnwindSafe for TestTimeOptions
impl Send for TestTimeOptions
impl Sync for TestTimeOptions
impl Unpin for TestTimeOptions
impl UnsafeUnpin 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