Add --show-skipped (fix #501) (#502)

This commit is contained in:
Roey Darwish Dror
2020-08-21 23:04:36 +03:00
committed by GitHub
parent d48182e6bd
commit 417ca1257a
18 changed files with 73 additions and 54 deletions

View File

@@ -1,16 +1,16 @@
use std::borrow::Cow;
#[derive(Clone, Copy)]
pub enum StepResult {
Success,
Failure,
Ignored,
Skipped(String),
}
impl StepResult {
pub fn failed(self) -> bool {
pub fn failed(&self) -> bool {
match self {
StepResult::Success | StepResult::Ignored => false,
StepResult::Success | StepResult::Ignored | StepResult::Skipped(_) => false,
StepResult::Failure => true,
}
}