foundry_cheatcodes::test::expect

Type Alias ExpectedCallTracker

Source
pub type ExpectedCallTracker = HashMap<Address, HashMap<Bytes, (ExpectedCallData, u64)>>;
Expand description

Tracks the expected calls per address.

For each address, we track the expected calls per call data. We track it in such manner so that we don’t mix together calldatas that only contain selectors and calldatas that contain selector and arguments (partial and full matches).

This then allows us to customize the matching behavior for each call data on the ExpectedCallData struct and track how many times we’ve actually seen the call on the second element of the tuple.

Aliased Type§

struct ExpectedCallTracker { /* private fields */ }

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes