Movatterモバイル変換


[0]ホーム

URL:


spectest

package
v1.10.1Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License:Apache-2.0Imports:14Imported by:0

Details

Repository

github.com/tetratelabs/wazero

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcRun

func Run(t *testing.T, testDataFSembed.FS, ctxcontext.Context, configwazero.RuntimeConfig)

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

funcRunCaseadded inv1.5.0

func RunCase(t *testing.T, testDataFSembed.FS, fstring, ctxcontext.Context, configwazero.RuntimeConfig, mandatoryLine, lineBegin, lineEndint)

RunCase runs the test case described by the given spectest file name (without .wast!) in the testDataFS file system.lineBegin and lineEnd are the line numbers to run. If lineBegin == 0 and lineEnd == math.MaxInt, all the lines are run.

For example, if you want to run memory_grow.wast:66 to 70, you can do:

RunCase(t, testDataFS, "memory_grow", ctx, config, mandatoryLine, 66, 70)

where mandatoryLine is the line number which can be run regardless of the lineBegin and lineEnd. It is useful whenwe only want to run specific command while running "module" command to instantiate a module. If you don't need it,just pass -1.

Types

This section is empty.

Source Files

View all Source files

Directories

PathSynopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp