Skip to main content

Module test

Module test 

Source
Expand description

Implementations of Testing cheatcodes.

Re-exportsยง

use crate::Cheatcode; ๐Ÿ”’
use crate::Cheatcodes; ๐Ÿ”’
use crate::CheatcodesCore; ๐Ÿ”’
use crate::CheatsCtxt; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use alloy_chains::Chain as AlloyChain; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::Bytes; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_sol_types::SolValue; ๐Ÿ”’
use foundry_common::version::SEMVER_VERSION; ๐Ÿ”’
use foundry_evm_core::constants::MAGIC_SKIP; ๐Ÿ”’
use foundry_evm_core::evm::FoundryEvmNetwork; ๐Ÿ”’
use std::str::FromStr; ๐Ÿ”’
use crate::Vm::*; ๐Ÿ”’

Modulesยง

assert ๐Ÿ”’
assume ๐Ÿ”’
expect ๐Ÿ”’
revert_handlers ๐Ÿ”’

Functionsยง

breakpoint ๐Ÿ”’
Adds or removes the given breakpoint to the state.
get_chain ๐Ÿ”’
Gets chain information for the given alias.
skip ๐Ÿ”’
Reverts with the magic skip payload and records it in the state, so that the executor can distinguish this genuine skip from user-crafted revert data carrying the same prefix.