pub struct TestAttributesDecoration {
pub name: Option<&'static str>,
pub description: Option<&'static str>,
pub location: ComponentLocation,
pub allow_fail: Option<bool>,
pub ignore: Option<bool>,
pub warning_time_limit: Option<Duration>,
pub time_limit: Option<Duration>,
pub concurrency_mode: Option<ConcurrencyMode>,
}
Fields
name: Option<&'static str>
description: Option<&'static str>
location: ComponentLocation
The source code location of this test
allow_fail: Option<bool>
Indicates that test should be run, however failures should be ignored and do not cascade.
ignore: Option<bool>
Indicates that test should not be run.
warning_time_limit: Option<Duration>
The the duration after which a test is flagged as exceeded is expected duration. This can be used to give early warnings before a test exceeds some critical threshold. For example, a HTTP request time out.
time_limit: Option<Duration>
The maximum duration a test can take before it is forcibly aborted
concurrency_mode: Option<ConcurrencyMode>
The concurrency mode which this test will adhere to.
ConcurrencyMode::Parallel
will allow this test for be run at the same time as other tests within this tests suite
ConcurrencyMode::Sequential
will ensure that this test wont run at the same time as any other test from this suite
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TestAttributesDecoration
impl Send for TestAttributesDecoration
impl Sync for TestAttributesDecoration
impl Unpin for TestAttributesDecoration
impl UnwindSafe for TestAttributesDecoration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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