Struct laboratory::Suite [−][src]
pub struct Suite<T> { pub name: String, pub only: bool, pub cb: Box<dyn Fn(&mut SuiteContext<T>)>, pub context: SuiteContext<T>, pub duration_type: DurationType, pub suite_duration: u128, pub total_duration: u128, pub depth: u32, pub reporter: Reporter, pub start_time: String, pub end_time: String, pub ignore_errors: bool, }
Fields
name: String
only: bool
cb: Box<dyn Fn(&mut SuiteContext<T>)>
context: SuiteContext<T>
duration_type: DurationType
suite_duration: u128
total_duration: u128
depth: u32
reporter: Reporter
start_time: String
end_time: String
ignore_errors: bool
Implementations
impl<T> Suite<T>
[src]
impl<T> Suite<T>
[src]pub fn new<N, H>(name: N, cb: H) -> Suite<T> where
N: Into<String> + Display,
H: Fn(&mut SuiteContext<T>) + 'static,
[src]
N: Into<String> + Display,
H: Fn(&mut SuiteContext<T>) + 'static,
pub fn run(&mut self) -> LabResult
[src]
pub fn spec(self) -> Self
[src]
pub fn min(self) -> Self
[src]
pub fn dot(self) -> Self
[src]
pub fn list(self) -> Self
[src]
pub fn tap(self) -> Self
[src]
pub fn rust(self) -> Self
[src]
pub fn json(self) -> Self
[src]
pub fn json_pretty(self) -> Self
[src]
pub fn nano(self) -> Self
[src]
pub fn micro(self) -> Self
[src]
pub fn milis(self) -> Self
[src]
pub fn sec(self) -> Self
[src]
pub fn ignore_errors(self) -> Self
[src]
pub fn state(self, state: T) -> Self
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Suite<T>
impl<T> !RefUnwindSafe for Suite<T>
impl<T> !UnwindSafe for Suite<T>
impl<T> !UnwindSafe for Suite<T>