#[non_exhaustive]pub struct TestCase {
pub kind: TestKind,
pub step: String,
pub rule: Option<String>,
pub args: Vec<String>,
pub trace: Option<TraceReport>,
pub sql: Option<String>,
pub note: Option<String>,
}Expand description
One generated test case from Model::generate_tests (N11).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: TestKindAllowed flow, refused guard test, dead step, unreachable guard, or unknown.
step: StringThe step predicate tested.
rule: Option<String>For Refused and UnreachableGuard, the guard condition or trigger name.
args: Vec<String>Concrete witness argument atoms bound to the step under test (B40).
trace: Option<TraceReport>The witness trace, for Allowed and Refused.
sql: Option<String>Executable SQL replay script (when requested with with_sql = true).
note: Option<String>Additional note (for DeadStep, UnreachableGuard, or Unknown).
Trait Implementations§
Auto Trait Implementations§
impl Forget for TestCase
impl Freeze for TestCasewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<Atoms> is !null: Freeze,
PhantomData<ArcInner<Atoms>>: Freeze,
PhantomData<(Relation, TupleSet)>: Freeze,
PhantomData<Instance>: Freeze,
PhantomData<StepReport>: Freeze,
impl Move for TestCase
impl RefUnwindSafe for TestCase
impl Send for TestCase
impl Sync for TestCase
impl Unpin for TestCase
impl UnsafeUnpin for TestCasewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<Atoms> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atoms>>: UnsafeUnpin,
PhantomData<(Relation, TupleSet)>: UnsafeUnpin,
PhantomData<Instance>: UnsafeUnpin,
PhantomData<StepReport>: UnsafeUnpin,
impl UnwindSafe for TestCasewhere
RawVecInner: UnwindSafe,
Arc<Atoms>: UnwindSafe,
Arc<Declared>: UnwindSafe,
BTreeMap<u64, SetValZST>: 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