Documentation ¶
Index ¶
- type Executor
- type FakeExecutor
- func (e *FakeExecutor) AssertCalledWith(t *testing.T, expected [][]string)
- func (e *FakeExecutor) Execute(_ io.Writer, workingDir string, name string, args ...string) error
- func (e *FakeExecutor) ExecuteAndCapture(_ io.Writer, workingDir string, name string, args ...string) (string, error)
- func (e *FakeExecutor) SetVerbose(_ bool)
- type RealExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeExecutor ¶
type FakeExecutor struct { Handler func(workingDir string, name string, args ...string) error ReturningHandler func(workingDir string, name string, args ...string) (string, error) // contains filtered or unexported fields }
func NewAlwaysFailsFakeExecutor ¶
func NewAlwaysFailsFakeExecutor() *FakeExecutor
func NewAlwaysSucceedsFakeExecutor ¶
func NewAlwaysSucceedsFakeExecutor() *FakeExecutor
func NewFakeExecutor ¶
func (*FakeExecutor) AssertCalledWith ¶
func (e *FakeExecutor) AssertCalledWith(t *testing.T, expected [][]string)
func (*FakeExecutor) ExecuteAndCapture ¶
func (*FakeExecutor) SetVerbose ¶
func (e *FakeExecutor) SetVerbose(_ bool)
type RealExecutor ¶
type RealExecutor struct {
Verbose bool
}
func NewRealExecutor ¶
func NewRealExecutor() *RealExecutor
func (*RealExecutor) ExecuteAndCapture ¶
func (*RealExecutor) SetVerbose ¶
func (e *RealExecutor) SetVerbose(verbose bool)
Click to show internal directories.
Click to hide internal directories.