Available on crate features
__fuzzing only.Expand description
Internal tests and testing utilities. Not public API.
Modulesยง
- arith ๐
- bitwise ๐
- call_
gas ๐ - calldata ๐
- cmp ๐
- code ๐
- codecopy_
fix ๐ - control_
flow ๐ - dedup ๐
- env ๐
- extcode ๐
- fibonacci ๐
- host ๐
- i256_
lanes ๐ - macros ๐
- memory ๐
- meta ๐
- regressions ๐
- resume ๐
- resume_
at_ ๐call - ret ๐
- returndata ๐
- runner ๐
- spec_id ๐
- stack ๐
- system ๐
Structsยง
- DefBlock
- DefCfg
- DefEnv
- Default test environment struct for test expected values.
- DefTx
- Test
Case - Test
Host - Test host that implements [
Host] trait for testing.
Constantsยง
- ACTION_
WHAT_ INTERPRETER_ SAYS - DEF_
ADDR - Default code address.
- DEF_BN
- DEF_
CALLER - DEF_
GAS_ LIMIT - DEF_
GAS_ LIMIT_ U256 - DEF_
SPEC - DEF_
VALUE - GAS_
WHAT_ INTERPRETER_ SAYS - I256_
MAX ๐ - I256_
MIN ๐ - MEMORY_
WHAT_ INTERPRETER_ SAYS - OTHER_
ADDR - RETURN_
WHAT_ INTERPRETER_ SAYS - STACK_
WHAT_ INTERPRETER_ SAYS
Staticsยง
Functionsยง
- asm ๐
- bytecode_
binop ๐ - bytecode_
binop_ ๐mixed - bytecode_
ternop ๐ - bytecode_
ternop_ ๐mixed - bytecode_
unop ๐ - bytecode_
unop_ ๐opaque - Build opaque unop bytecode: MSTORE(a, 0), MLOAD(0),
<op>. - def_
codemap - def_env
- Returns the default test environment.
- def_
storage - init_
tracing - Initializes
tracing_subscriberfor tests. Safe to call multiple times. - insert_
call_ outcome_ test - Insert a call outcome into the interpreter state (for testing call_with_interpreter).
- keccak256_
cost ๐ KECCAK256opcode gas cost (base + dynamic).- log_
cost ๐ LOGopcode gas cost (base + topics + dynamic).- memory_
gas_ cost - Memory gas calculation:
num_words * 3 + num_words**2 / 512. - push_
const_ ๐or_ load - run_
test_ case - set_
test_ dump - store_
dynamic_ ๐operands - verylowcopy_
cost ๐ CALLDATACOPY,CODECOPY,RETURNDATACOPYopcode gas cost (base + dynamic).- with_
evm_ context - with_
jit_ compiler llvm