Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeResult ¶
FakeResult the expected results
type FakeRunner ¶
type FakeRunner struct { // Commands sorted commands Commands []*cmdrunner.Command // OrderedCommands recorded commands in order OrderedCommands []*cmdrunner.Command // CommandRunner if specified this callback returns the results and error CommandRunner cmdrunner.CommandRunner // ResultOutput default output if no CommandRunner ResultOutput string // ResultError default error output if no CommandRunner ResultError error }
FakeRunner for testing command runners
func (*FakeRunner) ExpectResults ¶
func (f *FakeRunner) ExpectResults(t *testing.T, results ...FakeResult)
Expects expects the given results
Click to show internal directories.
Click to hide internal directories.