Struct stateright::Checker[][src]

pub struct Checker<'a, SM, I> where
    SM: 'a + StateMachine,
    I: Fn(&SM, &SM::State) -> bool
{ pub visited: FxHashSet<u64>, // some fields omitted }

Visits every state reachable by a state machine, and verifies that an invariant holds.

Fields

Methods

impl<'a, SM, I> Checker<'a, SM, I> where
    SM: 'a + StateMachine,
    SM::State: Hash,
    I: Fn(&SM, &SM::State) -> bool
[src]

Visits up to a specified number of states checking the model's invariant. May return earlier when all states have been visited or a state is found in which the invariant fails to hold.

Identifies the action-state "behavior" path by which a visited state was reached.

Blocks the thread until model checking is complete. Periodically emits a status while checking, tailoring the block size to the checking speed. Emits a report when complete.

Auto Trait Implementations

impl<'a, SM, I> Send for Checker<'a, SM, I> where
    I: Send,
    SM: Sync,
    <SM as StateMachine>::State: Send

impl<'a, SM, I> Sync for Checker<'a, SM, I> where
    I: Sync,
    SM: Sync,
    <SM as StateMachine>::State: Sync