foundry_evm::executors::invariant

Module result

Source

Structsยง

Functionsยง

  • 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).