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§
Source§impl<T> Suite<T>
impl<T> Suite<T>
pub fn new<N, H>(name: N, cb: H) -> Suite<T>
pub fn run(&mut self) -> LabResult
pub fn spec(self) -> Self
pub fn min(self) -> Self
pub fn dot(self) -> Self
pub fn list(self) -> Self
pub fn tap(self) -> Self
pub fn rust(self) -> Self
pub fn json(self) -> Self
pub fn json_pretty(self) -> Self
pub fn nano(self) -> Self
pub fn micro(self) -> Self
pub fn milis(self) -> Self
pub fn sec(self) -> Self
pub fn ignore_errors(self) -> Self
pub fn state(self, state: T) -> Self
Auto Trait Implementations§
impl<T> Freeze for Suite<T>
impl<T> !RefUnwindSafe for Suite<T>
impl<T> !Send for Suite<T>
impl<T> !Sync for Suite<T>
impl<T> Unpin for Suite<T>
impl<T> !UnwindSafe for Suite<T>
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