pub struct Case {
pub id: CaseId,
pub task: TaskId,
pub name: String,
pub kind: CaseKind,
pub input_path: PathBuf,
pub expected: Option<ExpectedOutput>,
}Expand description
A single test case belonging to a task.
Fields§
§id: CaseIdCase identifier.
task: TaskIdTask this case tests.
name: StringHuman-readable case name (e.g. sample_1, gen_seed_42).
kind: CaseKindOrigin of the case.
input_path: PathBufPath to the input file.
expected: Option<ExpectedOutput>Expected output, when one exists. None limits the run to an
execution check — it is never treated as a correctness pass
(ADR-0005 invariant 1, AC-05).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Case
impl<'de> Deserialize<'de> for Case
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 Case
Auto Trait Implementations§
impl Forget for Case
impl Freeze for Case
impl Move for Case
impl RefUnwindSafe for Case
impl Send for Casewhere
RawVecInner: Send,
impl Sync for Casewhere
RawVecInner: Sync,
impl Unpin for Case
impl UnsafeUnpin for Case
impl UnwindSafe for Casewhere
RawVecInner: UnwindSafe,
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