Help us shape the future of Go! Take the 2026 Go Developer Survey

hostmodtest

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package hostmodtest is a host module for tests ("wctr_test"): the executors' tests run testdata/wasm/hostmod against it, natively and in the browser, so both sides of the seam are exercised by one guest.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Opened, Closed atomic.Int32
	Label          atomic.Value
}

Module is the test module. Opened and Closed count instances; Label is the label of the last process that opened it.

func (*Module) Funcs

func (*Module) Funcs() []wasi.HostFunc

Funcs implements wasi.HostModule.

func (*Module) Module

func (*Module) Module() string

Module implements wasi.HostModule.

func (*Module) Open

func (m *Module) Open(p *wasi.Proc) wasi.Instance

Open implements wasi.HostModule.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL