pub enum GivenClause {
Input {
fields: Vec<TestField>,
span: SourceSpan,
},
Fact {
ty: Ident,
fields: Vec<TestField>,
span: SourceSpan,
},
Signal {
name: String,
fields: Vec<TestField>,
span: SourceSpan,
},
Clock {
at: StringLiteral,
span: SourceSpan,
},
Tracker {
tracker: String,
fields: Vec<TestField>,
span: SourceSpan,
},
File {
store: String,
path: StringLiteral,
content: StringLiteral,
span: SourceSpan,
},
}Variants§
Input
Fact
Signal
Clock
Tracker
File
given file <store> at <path> "<content>" seeds a fixture file in the
named file store so a read during whip test resolves deterministic
content (the harness redirects the store root to a temp dir).
Trait Implementations§
Source§impl Clone for GivenClause
impl Clone for GivenClause
Source§fn clone(&self) -> GivenClause
fn clone(&self) -> GivenClause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GivenClause
impl Debug for GivenClause
impl Eq for GivenClause
Source§impl PartialEq for GivenClause
impl PartialEq for GivenClause
impl StructuralPartialEq for GivenClause
Auto Trait Implementations§
impl Freeze for GivenClause
impl RefUnwindSafe for GivenClause
impl Send for GivenClause
impl Sync for GivenClause
impl Unpin for GivenClause
impl UnsafeUnpin for GivenClause
impl UnwindSafe for GivenClause
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