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, api.CoreFeatures) wasm.Engine, enabledFeatures api.CoreFeatures)

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 api.CoreFeatures)

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-pre.3
Published
Oct 28, 2022
Platform
js/wasm
Imports
19 packages
Last checked
4 hours ago

Tools for package owners.