wag: github.com/tsavola/wag/internal/test/runner Index | Files | Directories

package runner

import "github.com/tsavola/wag/internal/test/runner"

Index

Package Files

littleendian.go minion.go runner.go snapshot.go spectest.go stack.go

Variables

var Resolver res

type Executor Uses

type Executor struct {
    // contains filtered or unexported fields
}

func (*Executor) Wait Uses

func (e *Executor) Wait() (result int32, err error)

type Program Uses

type Program struct {
    Text     []byte
    DebugMap debug.InsnMap
    // contains filtered or unexported fields
}

func NewProgram Uses

func NewProgram(maxTextSize int, startFunc, entryFunc uint32) (p *Program, err error)

func (*Program) CallSites Uses

func (p *Program) CallSites() map[int]callSite

func (*Program) Close Uses

func (p *Program) Close() (first error)

func (*Program) NewRunner Uses

func (p *Program) NewRunner(initMemorySize, growMemorySize, stackSize int) (r *Runner, err error)

func (*Program) Seal Uses

func (p *Program) Seal() (err error)

func (*Program) SetData Uses

func (p *Program) SetData(data []byte, memoryOffset int)

func (*Program) SetEntryAddr Uses

func (p *Program) SetEntryAddr(addr uint32)

func (*Program) TextAddr Uses

func (p *Program) TextAddr() uintptr

type Runner Uses

type Runner struct {
    Snapshots []*Snapshot
    // contains filtered or unexported fields
}

func (*Runner) Close Uses

func (r *Runner) Close() (first error)

func (*Runner) NewExecutor Uses

func (r *Runner) NewExecutor(sigs []wa.FuncType, printer io.Writer) (e *Executor, eventHandler func(event.Event))

func (*Runner) Run Uses

func (r *Runner) Run(testArg int64, sigs []wa.FuncType, printer io.Writer) (result int32, err error)

func (*Runner) WriteStacktraceTo Uses

func (r *Runner) WriteStacktraceTo(w io.Writer, funcs []wa.FuncType, ns *section.NameSection) (err error)

type Snapshot Uses

type Snapshot struct {
    // contains filtered or unexported fields
}

func (*Snapshot) NewRunner Uses

func (s *Snapshot) NewRunner(p *Program, growMemorySize, stackSize int) (r *Runner, err error)

Directories

PathSynopsis
imports

Package runner imports 19 packages (graph). Updated 2020-09-27. Refresh now. Tools for package owners.