Skip to main content

Module tests

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
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§

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_test_case
set_test_dump
with_evm_context
with_jit_compilerllvm