#[derive(Debug, Clone)]
pub struct GateResult {
pub gate_id: String,
pub outcome: GateOutcome,
pub stdout: String,
pub stderr: String,
pub duration_ms: u64,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum GateOutcome {
Pass,
Fail,
Skip,
Error,
}
impl GateResult {
pub fn passed(&self) -> bool {
self.outcome == GateOutcome::Pass
}
pub fn failed(&self) -> bool {
self.outcome == GateOutcome::Fail
}
}