Expand description
Shared test driver for the virtualization forwarder API.
The cases exercised here only use the public Module / Instance / Execution
surface, so they can be invoked from two distinct contexts:
- Runtime-side, compiled into
sc-runtime-testand dispatched through the wasm executor — this exercises the full host-function FFI round-trip. - Host-side, invoked as a regular
#[test]fromsc-virtualization— this exercises the native dispatch path with no wasm involved.
Entry point: run. Tests that need pre-populated externalities (e.g. the storage
fallback path of Module::from_storage_key) live as standalone host-only #[test]s
in sc-virtualization rather than here.
Enums§
- RunResult
- The result of running a program to completion.
Constants§
- GAS_MAX
- Default gas budget used by every test driver.
Functions§
- make_
handler - The standard syscall handler for the test fixture.
- run
- Run every test that uses only the public forwarder API.
- run_
loop - Drives the prepare/run loop calling
handlerfor each syscall.