pub struct Case {
pub name: &'static str,
pub fixture: Module<Naive>,
pub expected: Module<Naive>,
pub json: Option<&'static [u8]>,
pub throws: bool,
}Expand description
A corpus fixture and what it is expected to be, one row of the generated
gen.expected/mod.rs.
Fields§
§name: &'static strThe fixture’s Rust module name.
fixture: Module<Naive>The compiled fixture’s module, of the runtime value it is given.
expected: Module<Naive>The expectation’s module: the interpreter’s value as a graph, or the
throw it ended in, of the runtime value it is given and never reads.
json: Option<&'static [u8]>The UTF-8 bytes of the default’s JSON text, where it has a JSON form.
throws: boolWhether the fixture is expected to throw while it initializes.
Auto Trait Implementations§
impl Freeze for Case
impl RefUnwindSafe for Case
impl Send for Case
impl Sync for Case
impl Unpin for Case
impl UnsafeUnpin for Case
impl UnwindSafe for Case
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