Skip to main content

Module result

Module result 

Source

Structsยง

InvariantFuzzTestResult
The outcome of an invariant fuzz test
RichInvariantResults ๐Ÿ”’
Enriched results of an invariant run check.

Functionsยง

assert_after_invariant ๐Ÿ”’
Given the executor state, asserts conditions within afterInvariant function. If call fails then the invariant test is considered failed.
assert_invariants ๐Ÿ”’
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.
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.
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 ๐Ÿ”’