package spectest

import "github.com/tetratelabs/wazero/internal/integration_test/spectest"

Index

Functions

func Run

func Run(t *testing.T, testDataFS embed.FS, ctx context.Context, newEngine func(context.Context, wasm.Features) wasm.Engine, enabledFeatures wasm.Features)

Run runs all the test inside the testDataFS file system where all the cases are described via JSON files created from wast2json.

func TestBinaryEncoder

func TestBinaryEncoder(t *testing.T, testDataFS embed.FS, enabledFeatures wasm.Features)

TestBinaryEncoder ensures that binary.EncodeModule produces exactly the same binaries for wasm.Module via binary.DecodeModule modulo custom sections for all the valid binaries in spectests.

Source Files

spectest.go

Directories

PathSynopsis
internal/integration_test/spectest/v1
internal/integration_test/spectest/v2
Version
v1.0.0-beta1
Published
Aug 30, 2022
Platform
linux/amd64
Imports
19 packages
Last checked
1 hour ago

Tools for package owners.