Skip to main content

Module runner

Module runner 

Source
Available on crate features __fuzzing only.

Structsยง

DefBlock
DefCfg
DefEnv
Default test environment struct for test expected values.
DefTx
MemDisplay ๐Ÿ”’
TestCase
TestHost
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ยง

DEF_CD
DEF_CODEMAP
DEF_DATA
DEF_OPINFOS
DEF_RD
DEF_STORAGE

Functionsยง

assert_actions ๐Ÿ”’
def_codemap
def_env
Returns the default test environment.
def_storage
init_tracing
Initializes tracing_subscriber for 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_compiled_test_case ๐Ÿ”’
run_test_case
set_test_dump
with_evm_context