Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestWASIP1 ¶
func TestWASIP1(t *testing.T, filePaths []string, makeSystem MakeSystem)
TestWASIP1 is a generic test suite which runs the list of WebAssembly programs passed as file paths, creating a system and runtime to execute each of the test programs.
Tests pass if the execution completed without trapping nor calling proc_exit with a non-zero exit code.
Types ¶
type MakeSystem ¶
type MakeSystem func(TestConfig) (wasi.System, func(), error)
MakeSystem is a function used to create a system to run the test suites against.
The function returns the system and a callback that will be invoked after completing a test to tear down resources allocated by the system.
Click to show internal directories.
Click to hide internal directories.