Skip to main content

Module result

Module result 

Source

Structsยง

ContinueOutcome ๐Ÿ”’
Outcome of a per-call invariant check.
InvariantFuzzTestResult
The outcome of an invariant fuzz test

Functionsยง

assert_after_invariant ๐Ÿ”’
Given the executor state, asserts conditions within afterInvariant function.
assert_invariants ๐Ÿ”’
Given the executor state, asserts that no invariant has been broken. Otherwise, it fills the external invariant_failures.failed_invariant map.
can_continue ๐Ÿ”’
Returns if invariant test can continue and last successful call result of the invariant test function (if it can continue).
did_fail_on_assert ๐Ÿ”’
Returns whether the current fuzz call should be treated as an assertion failure.
invariant_inner_sequence ๐Ÿ”’
Helper function to initialize invariant inner sequence.
invariant_preflight_check ๐Ÿ”’
Given the executor state, asserts that no invariant has been broken. Otherwise, it fills the external invariant_failures.failed_invariant map and returns a generic error. Either returns the call result if successful, or nothing if there was an error.
is_assert_panic ๐Ÿ”’
is_assertion_failure ๐Ÿ”’
Returns true if this call failed due to a Solidity assertion:
is_cheatcode_assert_revert ๐Ÿ”’
is_revert_assertion_failure ๐Ÿ”’
logged_assertion_failure ๐Ÿ”’