Skip to main content

Module mock

Module mock 

Source

Re-exportsยง

use crate::Cheatcode; ๐Ÿ”’
use crate::CheatcodesCore; ๐Ÿ”’
use crate::CheatsCtxt; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::Bytes; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_primitives::map::HashMap; ๐Ÿ”’
use evm2::bytecode::Bytecode; ๐Ÿ”’
use foundry_evm_core::evm::FoundryEvmNetwork; ๐Ÿ”’
use std::cmp::Ordering; ๐Ÿ”’
use std::collections::BTreeMap; ๐Ÿ”’
use std::collections::VecDeque; ๐Ÿ”’
use crate::Vm::*; ๐Ÿ”’

Structsยง

MockCallDataContext
Mocked call data.
MockCallReturnData
Mocked return data.

Functionsยง

advance_mock_returns ๐Ÿ”’
Consumes the front return data of a mock, keeping the last one for every later call.
find_mock_returns ๐Ÿ”’
Finds the return data queue of the mock matching a call.
make_acc_non_empty ๐Ÿ”’
mock_call ๐Ÿ”’
mock_calls ๐Ÿ”’