Module invariant
Modules§
- IInvariant
Test - Module containing a contract’s types and functions.
Structs§
- Check
Sequence Options - Invariant
Executor - Wrapper around any
Executorimplementer which provides fuzzing support using [proptest]. - Invariant
Failures - Stores information about failures and reverts of the invariant tests.
- Invariant
Fuzz Test Result - The outcome of an invariant fuzz test
- Invariant
Metrics - Contains invariant metrics for a single fuzzed selector.
Enums§
Functions§
- check_
sequence - Checks if the given call sequence breaks the invariant.
- check_
sequence_ value - Executes a call sequence and returns the optimization value (int256) from the invariant function. Used during shrinking for optimization mode.
- replay_
error - Replays and shrinks a call sequence, collecting logs and traces.
- replay_
run - Replays a call sequence for collecting logs and traces. Returns counterexample to be used when the call sequence is a failed scenario.