Module tests
Available on crate features
__fuzzing only.Expand description
Internal tests and testing utilities. Not public API.
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 - MEMORY_
WHAT_ INTERPRETER_ SAYS - OTHER_
ADDR - RETURN_
WHAT_ INTERPRETER_ SAYS - STACK_
WHAT_ INTERPRETER_ SAYS
Statics§
Functions§
- 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).
- memory_
gas_ cost - Memory gas calculation:
num_words * 3 + num_words**2 / 512. - run_
test_ case - set_
test_ dump - with_
evm_ context - with_
jit_ compiler llvm