Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command is an autogenerated mock type for the Command type
func NewCommand ¶
func NewCommand(t mockConstructorTestingTNewCommand) *Command
NewCommand creates a new instance of Command. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Command) EXPECT ¶
func (_m *Command) EXPECT() *Command_Expecter
func (*Command) Run ¶
func (_m *Command) Run(_a0 *cobra.Command) cmd.CommandRunner
Run provides a mock function with given fields: _a0
type CommandRunner ¶
CommandRunner is an autogenerated mock type for the CommandRunner type
func NewCommandRunner ¶
func NewCommandRunner(t mockConstructorTestingTNewCommandRunner) *CommandRunner
NewCommandRunner creates a new instance of CommandRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CommandRunner) EXPECT ¶
func (_m *CommandRunner) EXPECT() *CommandRunner_Expecter
type CommandRunner_Expecter ¶
type CommandRunner_Expecter struct {
// contains filtered or unexported fields
}
type Command_Expecter ¶
type Command_Expecter struct {
// contains filtered or unexported fields
}
func (*Command_Expecter) Run ¶
func (_e *Command_Expecter) Run(_a0 interface{}) *Command_Run_Call
Run is a helper method to define mock.On call
- _a0 *cobra.Command
func (*Command_Expecter) Setup ¶
func (_e *Command_Expecter) Setup(_a0 interface{}) *Command_Setup_Call
Setup is a helper method to define mock.On call
- _a0 *cobra.Command
func (*Command_Expecter) Short ¶
func (_e *Command_Expecter) Short() *Command_Short_Call
Short is a helper method to define mock.On call
func (*Command_Expecter) Use ¶
func (_e *Command_Expecter) Use() *Command_Use_Call
Use is a helper method to define mock.On call
type Command_Run_Call ¶
Command_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*Command_Run_Call) Return ¶
func (_c *Command_Run_Call) Return(_a0 cmd.CommandRunner) *Command_Run_Call
func (*Command_Run_Call) Run ¶
func (_c *Command_Run_Call) Run(run func(_a0 *cobra.Command)) *Command_Run_Call
type Command_Setup_Call ¶
Command_Setup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Setup'
func (*Command_Setup_Call) Return ¶
func (_c *Command_Setup_Call) Return() *Command_Setup_Call
func (*Command_Setup_Call) Run ¶
func (_c *Command_Setup_Call) Run(run func(_a0 *cobra.Command)) *Command_Setup_Call
type Command_Short_Call ¶
Command_Short_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Short'
func (*Command_Short_Call) Return ¶
func (_c *Command_Short_Call) Return(_a0 string) *Command_Short_Call
func (*Command_Short_Call) Run ¶
func (_c *Command_Short_Call) Run(run func()) *Command_Short_Call
type Command_Use_Call ¶
Command_Use_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Use'
func (*Command_Use_Call) Return ¶
func (_c *Command_Use_Call) Return(_a0 string) *Command_Use_Call
func (*Command_Use_Call) Run ¶
func (_c *Command_Use_Call) Run(run func()) *Command_Use_Call