Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearEnvironmentVariables ¶ added in v1.40.0
func ExpectLines ¶
func GetHostOrSkip ¶ added in v1.26.0
Types ¶
type CmdStubber ¶
type CmdStubber struct { Stubs []*OutputStub Count int Calls []*exec.Cmd }
func InitCmdStubber ¶
func InitCmdStubber() (*CmdStubber, func())
func (*CmdStubber) Stub ¶
func (cs *CmdStubber) Stub(desiredOutput string)
func (*CmdStubber) StubError ¶
func (cs *CmdStubber) StubError(errText string)
type OutputStub ¶
OutputStub implements a simple utils.Runnable
func (OutputStub) Output ¶
func (s OutputStub) Output() ([]byte, error)
func (OutputStub) Run ¶
func (s OutputStub) Run() error
Click to show internal directories.
Click to hide internal directories.