Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gen ¶
func Gen(seed []byte, enabledFeature wasm.Features, numTypes, numFunctions, numImports, numExports, numGlobals, numElements, numData uint32, needStartSection bool, ) *wasm.Module
Gen generates a pseudo random compilable module based on `seed`. The size of each section is controlled by the corresponding params. For example, `numImports` controls the number of segment in the import section.
Note: "pseudo" here means the determinism of the generated results, e.g. giving same seed returns exactly the same module for the same code base in Gen.
Note: this is only used for testing wazero runtime.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.