testutils

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestT

func GetTestT(ctx context.Context) *testing.T

Types

type WasmTestFixture

type WasmTestFixture struct {
	Context  context.Context
	WasmHost wasmhost.WasmHost
	Plugin   *plugins.Plugin
	// contains filtered or unexported fields
}

func NewWasmTestFixture

func NewWasmTestFixture(wasmFilePath string, customTypes map[string]reflect.Type, registrations []func(wasmhost.WasmHost) error) *WasmTestFixture

func (*WasmTestFixture) AddCustomType

func (f *WasmTestFixture) AddCustomType(name string, typ reflect.Type)

func (*WasmTestFixture) CallFunction

func (f *WasmTestFixture) CallFunction(t *testing.T, name string, paramValues ...any) (any, error)

func (*WasmTestFixture) Close

func (f *WasmTestFixture) Close()

func (*WasmTestFixture) NewPlanner

func (f *WasmTestFixture) NewPlanner() langsupport.Planner

Jump to

Keyboard shortcuts

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