An invariant is a predicate that must hold at any point in the stateful test. They are evaluated on the initial state and after every valid step. The invariant function should throw when the invariant is violated.
More...
template<typename T>
class hegel::stateful::Invariant< T >
An invariant is a predicate that must hold at any point in the stateful test. They are evaluated on the initial state and after every valid step. The invariant function should throw when the invariant is violated.
- Template Parameters
-
| T | The state-machine type the invariant checks |