pub struct CaseLock {
pub cases: Vec<String>,
pub slow: Vec<String>,
}Expand description
The cases a run must cover, read from validation/cases/lock.toml.
Loft lesson L78: a suite that quietly skips a case and reports green is worse than a red one, so the lock names every case that has to run and the harness fails if one is missing.
Fields§
§cases: Vec<String>The case ids that must run, in report order.
slow: Vec<String>The ids --fast may leave out, which must all be in cases.
Implementations§
Source§impl CaseLock
impl CaseLock
Sourcepub fn wanted(&self, fast: bool) -> Vec<String>
pub fn wanted(&self, fast: bool) -> Vec<String>
The ids a run covers: every locked case, or the ones that are not slow.
Sourcepub fn skipped(&self, fast: bool) -> Vec<String>
pub fn skipped(&self, fast: bool) -> Vec<String>
The ids a run leaves out, which is empty unless it is a fast one.
Sourcepub fn unknown_slow(&self) -> Vec<String>
pub fn unknown_slow(&self) -> Vec<String>
The ids named as slow that are not cases at all.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CaseLock
impl<'de> Deserialize<'de> for CaseLock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CaseLock
Auto Trait Implementations§
impl Freeze for CaseLock
impl RefUnwindSafe for CaseLock
impl Send for CaseLock
impl Sync for CaseLock
impl Unpin for CaseLock
impl UnsafeUnpin for CaseLock
impl UnwindSafe for CaseLock
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