Documentation
¶
Index ¶
- type MockCmdRunner
- type MockCmdRunner_Expecter
- type MockCmdRunner_Run_Call
- type MockInterface
- type MockInterface_Expecter
- type MockInterface_NewCommand_Call
- func (_c *MockInterface_NewCommand_Call) Return(_a0 shell.CmdRunner) *MockInterface_NewCommand_Call
- func (_c *MockInterface_NewCommand_Call) Run(run func(name string, args ...string)) *MockInterface_NewCommand_Call
- func (_c *MockInterface_NewCommand_Call) RunAndReturn(run func(string, ...string) shell.CmdRunner) *MockInterface_NewCommand_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCmdRunner ¶
MockCmdRunner is an autogenerated mock type for the CmdRunner type
func NewMockCmdRunner ¶
func NewMockCmdRunner(t interface {
mock.TestingT
Cleanup(func())
}) *MockCmdRunner
NewMockCmdRunner creates a new instance of MockCmdRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockCmdRunner) EXPECT ¶
func (_m *MockCmdRunner) EXPECT() *MockCmdRunner_Expecter
func (*MockCmdRunner) Run ¶
func (_m *MockCmdRunner) Run() error
Run provides a mock function with no fields
type MockCmdRunner_Expecter ¶
type MockCmdRunner_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCmdRunner_Expecter) Run ¶
func (_e *MockCmdRunner_Expecter) Run() *MockCmdRunner_Run_Call
Run is a helper method to define mock.On call
type MockCmdRunner_Run_Call ¶
MockCmdRunner_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockCmdRunner_Run_Call) Return ¶
func (_c *MockCmdRunner_Run_Call) Return(_a0 error) *MockCmdRunner_Run_Call
func (*MockCmdRunner_Run_Call) Run ¶
func (_c *MockCmdRunner_Run_Call) Run(run func()) *MockCmdRunner_Run_Call
func (*MockCmdRunner_Run_Call) RunAndReturn ¶
func (_c *MockCmdRunner_Run_Call) RunAndReturn(run func() error) *MockCmdRunner_Run_Call
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockInterface
NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) NewCommand ¶
func (_m *MockInterface) NewCommand(name string, args ...string) shell.CmdRunner
NewCommand provides a mock function with given fields: name, args
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) NewCommand ¶
func (_e *MockInterface_Expecter) NewCommand(name interface{}, args ...interface{}) *MockInterface_NewCommand_Call
NewCommand is a helper method to define mock.On call
- name string
- args ...string
type MockInterface_NewCommand_Call ¶
MockInterface_NewCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewCommand'
func (*MockInterface_NewCommand_Call) Return ¶
func (_c *MockInterface_NewCommand_Call) Return(_a0 shell.CmdRunner) *MockInterface_NewCommand_Call
func (*MockInterface_NewCommand_Call) Run ¶
func (_c *MockInterface_NewCommand_Call) Run(run func(name string, args ...string)) *MockInterface_NewCommand_Call
func (*MockInterface_NewCommand_Call) RunAndReturn ¶
func (_c *MockInterface_NewCommand_Call) RunAndReturn(run func(string, ...string) shell.CmdRunner) *MockInterface_NewCommand_Call