Struct evmodin::util::EvmTester[][src]

pub struct EvmTester { /* fields omitted */ }
Expand description

Tester that executes EVM bytecode with MockedHost context and runs set checks.

Implementations

Create new EvmTester.

Set code to be executed.

Queue function that will modify the host before execution.

Set EVM revision for this tester.

Set message depth.

Set provided gas.

Set static message flag.

Set message destination.

Set message sender.

Set message sender.

Check how much gas will be used. Mutually exclusive with EvmTester::gas_left.

Check how much gas will be left after execution. Mutually exclusive with EvmTester::gas_used.

Set provided input data.

Check returned status.

Check returned status to be one of these.

Check output to be equal to provided integer.

Check output data to be equal to provided byte string.

Inspect output with provided function.

Inspect host with provided function.

Inspect host and output with provided function.

Execute provided code, run checks and return bytecode returned by EVM.

Execute provided code and run checks.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.