shelltest

package
v0.0.0-...-7a14b24 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidTest = errors.New("shelltest: command output appeared before command")

Functions

This section is empty.

Types

type Test

type Test struct {
	Filename       string
	Line           int
	Command        string
	ExpectedOutput string
}

func ParseTests

func ParseTests(filename, source string, lineOffset int) ([]*Test, error)

func (Test) Run

func (t Test) Run(ctx context.Context, runner *interp.Runner) error

Jump to

Keyboard shortcuts

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