#[non_exhaustive]
pub struct Context {
pub module: &'static str,
pub name: &'static str,
pub description: Option<&'static str>,
pub case: Option<usize>,
pub start: std::time::Instant,
}
impl Context {
pub fn new(
module: &'static str,
name: &'static str,
description: Option<&'static str>,
case: Option<usize>,
) -> Self {
Self {
module,
name,
description,
case,
start: std::time::Instant::now(),
}
}
}