sandbox

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, pkg string) (f func(func(s *Sandbox)))

Run invokes `go run` on given package for sandbox tests.

Types

type Sandbox

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

func (*Sandbox) Files

func (s *Sandbox) Files(args ...string)

func (*Sandbox) Keep

func (s *Sandbox) Keep()

func (*Sandbox) Reply

func (s *Sandbox) Reply(args ...string) reply

Reply mocks a command for given arguments (Only works for `(Context).Command`).

func (*Sandbox) Run

func (s *Sandbox) Run(args ...string) run

Run executes the sandbox with given arguments.

Jump to

Keyboard shortcuts

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