testutils

package
v0.8.2-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRunner

type MockRunner struct {
	Output string
	Err    error
}

MockRunner needed for testing plans

func (*MockRunner) ClearRunCommand

func (r *MockRunner) ClearRunCommand()

ClearRunCommand undoes any output configured by SetRunCommand

func (*MockRunner) RunCommand

func (r *MockRunner) RunCommand(_ string, _ io.Reader) (string, error)

RunCommand returns the test Output and Err values

func (*MockRunner) SetRunCommand

func (r *MockRunner) SetRunCommand(out string, err error)

SetRunCommand allows you to configure the output for RunCommand

Jump to

Keyboard shortcuts

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