Skip to main content

Module expect

Module expect 

Source

Structsยง

ExpectedCallData
ExpectedCreate
ExpectedRevert

Enumsยง

CreateScheme
ExpectedCallType
The type of expected call.
ExpectedRevertKind
The type of expected revert.

Functionsยง

call_scheme_rank ๐Ÿ”’
expect_call ๐Ÿ”’
Handles expected calls specified by the expectCall cheatcodes.
expect_create ๐Ÿ”’
expect_emit ๐Ÿ”’
expect_keychain_verified ๐Ÿ”’
expect_logo_uri_updated ๐Ÿ”’
expect_revert ๐Ÿ”’
expect_safe_memory ๐Ÿ”’
first_unmet_call ๐Ÿ”’
Returns the failure message for the smallest unmet call expectation, if any.
first_unmet_create ๐Ÿ”’
Returns the failure message for the first unmet create expectation, if any.
handle_expect_emit ๐Ÿ”’
Applies an expectEmit failure for log by reverting the current call, when an interpreter is available.
observe_call ๐Ÿ”’
Counts a call against every matching expectation registered for one target.
observe_create ๐Ÿ”’
Removes the first create expectation matched by a completed create.

Type Aliasesยง

ExpectedCallTracker
Tracks the expected calls per address.
ExpectedCallsForTarget
Tracks calldata, scheme and count expectations for one target.