|
Hegel 0.18.3
Property-based testing for C++
|
Arguments for the Invariant constructor. More...
#include <stateful.h>
Public Attributes | |
| std::string | name |
| The name of the invariant. | |
| bool | always_check = false |
| bool | pause_faults = false |
| std::function< void(const T &)> | invariant |
| The predicate. It throws when the invariant is violated. | |
Arguments for the Invariant constructor.
| T | The state-machine type the invariant checks |
| bool hegel::stateful::InvariantParams< T >::always_check = false |
If true, check the invariant after every step or round instead of sampling it.
| bool hegel::stateful::InvariantParams< T >::pause_faults = false |
If true, fault injection is paused for the duration of each check of the invariant.