wasi-module-sdk-go/integration
2023-05-18 18:21:44 +02:00
..
go.mod fix: module path 2023-05-18 18:21:44 +02:00
go.sum feat: initial draft of SDK 2023-05-08 15:21:31 +02:00
logging.go feat: initial draft of SDK 2023-05-08 15:21:31 +02:00
mem_mgr.go feat: provide plugin inventory 2023-05-13 17:46:09 +02:00
README.md feat: initial draft of SDK 2023-05-08 15:21:31 +02:00
test_host.go fix: module path 2023-05-18 18:21:44 +02:00

Integration module

The integration module is meant as a helper to blackbox test a WASI module. It's a shortcut to instantiate and execute a module in the context of buildr.

The workflow basically looks like this:

  1. Compile module e.g. with tinygo to *.wasm file
  2. Create a integration.Host (with integration.NewHost(...) function)
  3. Specify the scenario (category, type, ...)
  4. Execute the module

A very basic example can be found in the hello_world_go example