Guest tests
cargo test against guest/Cargo.toml.
MockHost
MockHost records calls and accepts typed handlers:
Coverage to include
- valid and invalid input/config/output schemas;
- provider errors and rate-limit diagnostics;
- cancellation and timeout;
- retry and idempotency behavior;
- every migration handler;
- absence of undeclared calls; and
- redaction of logs and errors.
wasm32-unknown-unknown and run them through sandbox-plugin-runtime, not a JavaScript replacement. Runtime tests enforce missing ambient imports, memory, fuel, time, network, storage, signature, tamper, and revocation controls.