pub enum Outcome {
TestsPassed,
TestsFailed,
CompileError,
}
pub struct Report {
pub outcome: Outcome,
pub detail: Option<String>,
}
impl Report {
pub fn title(&self) -> &'static str {
match self.outcome {
Outcome::TestsPassed => "Tests passed",
Outcome::TestsFailed => "Tests failed",
Outcome::CompileError => "Error",
}
}
}