exectest

package
v0.0.0-...-ad7ab41 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCommander

type TestCommander struct {
	exec.Commander
	// contains filtered or unexported fields
}

TestCommander wraps a different Commander so that its stdout and stderr are recorded in testing.T by default.

func NewTestCommander

func NewTestCommander(t *testing.T, cmd exec.Commander) TestCommander

func (TestCommander) Command

func (c TestCommander) Command(ctx context.Context, args ...string) *exec.Command

Jump to

Keyboard shortcuts

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