testutil

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputErrorPrefix   = "ERROR: "
	OutputReady         = "READY"
	OutputAddressPrefix = "ADDRESS: "
)

Variables

This section is empty.

Functions

func GetProjectRoot

func GetProjectRoot() (string, error)

Types

type Compiler

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

func NewCompiler

func NewCompiler(srcPath string) (*Compiler, error)

func NewTesterCompiler added in v0.17.0

func NewTesterCompiler() (*Compiler, error)

func (*Compiler) BinaryPath

func (c *Compiler) BinaryPath() string

func (*Compiler) Close

func (c *Compiler) Close() error

func (*Compiler) Compile

func (c *Compiler) Compile(ctx context.Context) error

type Tester added in v0.17.0

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

func NewMappedTester added in v0.17.0

func NewMappedTester(ctx context.Context, c *Compiler, mappedFile string, mapOffset, writeOffset int, data []byte, perms string) (*Tester, error)

func NewTester added in v0.17.0

func NewTester(ctx context.Context, c *Compiler, data []byte, perms string) (*Tester, error)

func (*Tester) Close added in v0.17.0

func (t *Tester) Close() error

func (*Tester) PID added in v0.17.0

func (t *Tester) PID() int

func (*Tester) WriteDataAndGetAddress added in v0.17.0

func (t *Tester) WriteDataAndGetAddress() (uintptr, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL