package spectest
import "github.com/tetratelabs/wazero/internal/integration_test/spectest"
Index ¶
- func Run(t *testing.T, testDataFS embed.FS, ctx context.Context, newEngine func(context.Context, wasm.Features) wasm.Engine, enabledFeatures wasm.Features)
- func TestBinaryEncoder(t *testing.T, testDataFS embed.FS, enabledFeatures wasm.Features)
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 ¶
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 ¶
Directories ¶
Path | Synopsis |
---|---|
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.