Documentation
¶
Overview ¶
Package wasmtest builds minimal WASM plugin modules for tests, so runtime limits can be exercised without a TinyGo toolchain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Module ¶
Module returns a WASM plugin whose gk_register reports manifest (JSON) and whose gk_call dispatches on the first byte of the function name:
- "s…" (e.g. "spin") loops forever;
- "g…" (e.g. "grow") grows memory by growPages and returns true, or false when the memory limit refuses;
- anything else returns "ok".
Memory starts at one page and declares no maximum, so the runtime's memory limit applies. gk_malloc is a bump allocator; there is no gk_free.
Types ¶
This section is empty.