Documentation ¶
Index ¶
- Variables
- func Pos(line, column int) *wast.Pos
- func RunScript(t *testing.T, loader Loader, path string, strict bool, ignore []string)
- type Action
- type Environment
- func (e *Environment) AssertExhaustion(t *testing.T, pos *wast.Pos, action Action, failure string, strict bool)
- func (e *Environment) AssertReturn(t *testing.T, pos *wast.Pos, action Action, strict bool, ...)
- func (e *Environment) AssertTrap(t *testing.T, pos *wast.Pos, action Action, failure string)
- func (e *Environment) AssertUnlinkable(t *testing.T, pos *wast.Pos, definition exec.ModuleDefinition, failure string, ...)
- func (e *Environment) InstantiateModule(t *testing.T, pos *wast.Pos, name string, definition exec.ModuleDefinition)
- func (e *Environment) Register(export, module string)
- func (e *Environment) RunCommand(t *testing.T, command wast.Command, strict bool)
- func (e *Environment) RunScript(t *testing.T, script *wast.Script, strict bool, ignore []string)
- type Loader
Constants ¶
This section is empty.
Variables ¶
View Source
var SpecTest exec.ModuleDefinition = exec.NewHostModuleDefinition(func() (*specTest, error) { return &specTest{ Global_i32: exec.NewGlobalI32(true, 666), Global_i64: exec.NewGlobalI64(true, 666), Global_f32: exec.NewGlobalF32(true, 0), Global_f64: exec.NewGlobalF64(true, 0), Table: exec.NewTable(10, 20), Memory: exec.NewMemory(1, 2), }, nil })
Functions ¶
Types ¶
type Action ¶
type Action interface { Pos() wast.Pos Run(e *Environment) ([]interface{}, error) }
func InstantiateModule ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func NewEnvironment ¶
func NewEnvironment(loader Loader) (*Environment, error)
func (*Environment) AssertExhaustion ¶
func (*Environment) AssertReturn ¶
func (*Environment) AssertTrap ¶
func (*Environment) AssertUnlinkable ¶
func (e *Environment) AssertUnlinkable(t *testing.T, pos *wast.Pos, definition exec.ModuleDefinition, failure string, strict bool)
func (*Environment) InstantiateModule ¶
func (e *Environment) InstantiateModule(t *testing.T, pos *wast.Pos, name string, definition exec.ModuleDefinition)
func (*Environment) Register ¶
func (e *Environment) Register(export, module string)
func (*Environment) RunCommand ¶
Click to show internal directories.
Click to hide internal directories.