Documentation ¶
Index ¶
- type ExecCommandCall
- type Owl
- func (_m *Owl) Errorf(format string, args ...interface{})
- func (_m *Owl) ExecCommand(name string, arg ...string) *exec.Cmd
- func (_m *Owl) ExpectAssertFailure(t *testing.T, contains string)
- func (_m *Owl) ExpectRequireFailure(t *testing.T, contains string)
- func (_m *Owl) FailNow()
- func (_m *Owl) IsVerbose() bool
- func (_m *Owl) OnExecCommand(name string, arg ...string) *ExecCommandCall
- func (_m *Owl) Printf(format string, a ...interface{})
- func (_m *Owl) Println(a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecCommandCall ¶ added in v0.2.0
type ExecCommandCall struct {
// contains filtered or unexported fields
}
ExecCommandCall is returned by OnExecCommand, see its methods to set the return value.
func (*ExecCommandCall) ExecBash ¶ added in v0.2.0
func (c *ExecCommandCall) ExecBash(shell string) *mock.Call
ExecBash configures the mock to run a bash one-liner instead of the specified command. Do this to avoid failing if the command is not available, or you want to be resilient to its behaviour changing.
func (*ExecCommandCall) Run ¶ added in v0.2.0
func (c *ExecCommandCall) Run() *mock.Call
Run configures the mock to actually run the specified command. Do this if the invoked command is a build dependency of your project and you control the side effets. Otherwise, see ExecBash instead.
type Owl ¶
Owl is an autogenerated mock type for the Owl type
func (*Owl) ExecCommand ¶ added in v0.2.0
ExecCommand provides a mock function with given fields: name, arg
func (*Owl) ExpectAssertFailure ¶
ExpectAssertFailure configures the mock to expect a testify/assert failure containing the given string.
func (*Owl) ExpectRequireFailure ¶
ExpectRequireFailure configures the mock to expect a testify/require failure containing the given string.
func (*Owl) OnExecCommand ¶ added in v0.2.0
func (_m *Owl) OnExecCommand(name string, arg ...string) *ExecCommandCall
OnExecCommand configures the mock to expect a call to ExecCommand and returns a ExecCommandCall that can be used to define what to return.