Documentation ¶
Index ¶
- type RunContext
- func (_m *RunContext) Args() []string
- func (_m *RunContext) CobraCommand() *cobra.Command
- func (_m *RunContext) CommandName() []string
- func (_m *RunContext) EXPECT() *RunContext_Expecter
- func (_m *RunContext) HasOutput() bool
- func (_m *RunContext) Output() interface{}
- func (_m *RunContext) Parent() cli.ThelmaCommand
- func (_m *RunContext) SetOutput(data interface{})
- type RunContext_Args_Call
- type RunContext_CobraCommand_Call
- type RunContext_CommandName_Call
- type RunContext_Expecter
- func (_e *RunContext_Expecter) Args() *RunContext_Args_Call
- func (_e *RunContext_Expecter) CobraCommand() *RunContext_CobraCommand_Call
- func (_e *RunContext_Expecter) CommandName() *RunContext_CommandName_Call
- func (_e *RunContext_Expecter) HasOutput() *RunContext_HasOutput_Call
- func (_e *RunContext_Expecter) Output() *RunContext_Output_Call
- func (_e *RunContext_Expecter) Parent() *RunContext_Parent_Call
- func (_e *RunContext_Expecter) SetOutput(data interface{}) *RunContext_SetOutput_Call
- type RunContext_HasOutput_Call
- type RunContext_Output_Call
- type RunContext_Parent_Call
- type RunContext_SetOutput_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunContext ¶
RunContext is an autogenerated mock type for the RunContext type
func NewRunContext ¶
func NewRunContext(t mockConstructorTestingTNewRunContext) *RunContext
NewRunContext creates a new instance of RunContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RunContext) Args ¶
func (_m *RunContext) Args() []string
Args provides a mock function with given fields:
func (*RunContext) CobraCommand ¶
func (_m *RunContext) CobraCommand() *cobra.Command
CobraCommand provides a mock function with given fields:
func (*RunContext) CommandName ¶
func (_m *RunContext) CommandName() []string
CommandName provides a mock function with given fields:
func (*RunContext) EXPECT ¶ added in v1.0.8
func (_m *RunContext) EXPECT() *RunContext_Expecter
func (*RunContext) HasOutput ¶
func (_m *RunContext) HasOutput() bool
HasOutput provides a mock function with given fields:
func (*RunContext) Output ¶
func (_m *RunContext) Output() interface{}
Output provides a mock function with given fields:
func (*RunContext) Parent ¶
func (_m *RunContext) Parent() cli.ThelmaCommand
Parent provides a mock function with given fields:
func (*RunContext) SetOutput ¶
func (_m *RunContext) SetOutput(data interface{})
SetOutput provides a mock function with given fields: data
type RunContext_Args_Call ¶ added in v1.0.8
RunContext_Args_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Args'
func (*RunContext_Args_Call) Return ¶ added in v1.0.8
func (_c *RunContext_Args_Call) Return(_a0 []string) *RunContext_Args_Call
func (*RunContext_Args_Call) Run ¶ added in v1.0.8
func (_c *RunContext_Args_Call) Run(run func()) *RunContext_Args_Call
func (*RunContext_Args_Call) RunAndReturn ¶ added in v1.0.73
func (_c *RunContext_Args_Call) RunAndReturn(run func() []string) *RunContext_Args_Call
type RunContext_CobraCommand_Call ¶ added in v1.0.8
RunContext_CobraCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CobraCommand'
func (*RunContext_CobraCommand_Call) Return ¶ added in v1.0.8
func (_c *RunContext_CobraCommand_Call) Return(_a0 *cobra.Command) *RunContext_CobraCommand_Call
func (*RunContext_CobraCommand_Call) Run ¶ added in v1.0.8
func (_c *RunContext_CobraCommand_Call) Run(run func()) *RunContext_CobraCommand_Call
func (*RunContext_CobraCommand_Call) RunAndReturn ¶ added in v1.0.73
func (_c *RunContext_CobraCommand_Call) RunAndReturn(run func() *cobra.Command) *RunContext_CobraCommand_Call
type RunContext_CommandName_Call ¶ added in v1.0.8
RunContext_CommandName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommandName'
func (*RunContext_CommandName_Call) Return ¶ added in v1.0.8
func (_c *RunContext_CommandName_Call) Return(_a0 []string) *RunContext_CommandName_Call
func (*RunContext_CommandName_Call) Run ¶ added in v1.0.8
func (_c *RunContext_CommandName_Call) Run(run func()) *RunContext_CommandName_Call
func (*RunContext_CommandName_Call) RunAndReturn ¶ added in v1.0.73
func (_c *RunContext_CommandName_Call) RunAndReturn(run func() []string) *RunContext_CommandName_Call
type RunContext_Expecter ¶ added in v1.0.8
type RunContext_Expecter struct {
// contains filtered or unexported fields
}
func (*RunContext_Expecter) Args ¶ added in v1.0.8
func (_e *RunContext_Expecter) Args() *RunContext_Args_Call
Args is a helper method to define mock.On call
func (*RunContext_Expecter) CobraCommand ¶ added in v1.0.8
func (_e *RunContext_Expecter) CobraCommand() *RunContext_CobraCommand_Call
CobraCommand is a helper method to define mock.On call
func (*RunContext_Expecter) CommandName ¶ added in v1.0.8
func (_e *RunContext_Expecter) CommandName() *RunContext_CommandName_Call
CommandName is a helper method to define mock.On call
func (*RunContext_Expecter) HasOutput ¶ added in v1.0.8
func (_e *RunContext_Expecter) HasOutput() *RunContext_HasOutput_Call
HasOutput is a helper method to define mock.On call
func (*RunContext_Expecter) Output ¶ added in v1.0.8
func (_e *RunContext_Expecter) Output() *RunContext_Output_Call
Output is a helper method to define mock.On call
func (*RunContext_Expecter) Parent ¶ added in v1.0.8
func (_e *RunContext_Expecter) Parent() *RunContext_Parent_Call
Parent is a helper method to define mock.On call
func (*RunContext_Expecter) SetOutput ¶ added in v1.0.8
func (_e *RunContext_Expecter) SetOutput(data interface{}) *RunContext_SetOutput_Call
SetOutput is a helper method to define mock.On call
- data interface{}
type RunContext_HasOutput_Call ¶ added in v1.0.8
RunContext_HasOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasOutput'
func (*RunContext_HasOutput_Call) Return ¶ added in v1.0.8
func (_c *RunContext_HasOutput_Call) Return(_a0 bool) *RunContext_HasOutput_Call
func (*RunContext_HasOutput_Call) Run ¶ added in v1.0.8
func (_c *RunContext_HasOutput_Call) Run(run func()) *RunContext_HasOutput_Call
func (*RunContext_HasOutput_Call) RunAndReturn ¶ added in v1.0.73
func (_c *RunContext_HasOutput_Call) RunAndReturn(run func() bool) *RunContext_HasOutput_Call
type RunContext_Output_Call ¶ added in v1.0.8
RunContext_Output_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Output'
func (*RunContext_Output_Call) Return ¶ added in v1.0.8
func (_c *RunContext_Output_Call) Return(_a0 interface{}) *RunContext_Output_Call
func (*RunContext_Output_Call) Run ¶ added in v1.0.8
func (_c *RunContext_Output_Call) Run(run func()) *RunContext_Output_Call
func (*RunContext_Output_Call) RunAndReturn ¶ added in v1.0.73
func (_c *RunContext_Output_Call) RunAndReturn(run func() interface{}) *RunContext_Output_Call
type RunContext_Parent_Call ¶ added in v1.0.8
RunContext_Parent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parent'
func (*RunContext_Parent_Call) Return ¶ added in v1.0.8
func (_c *RunContext_Parent_Call) Return(_a0 cli.ThelmaCommand) *RunContext_Parent_Call
func (*RunContext_Parent_Call) Run ¶ added in v1.0.8
func (_c *RunContext_Parent_Call) Run(run func()) *RunContext_Parent_Call
func (*RunContext_Parent_Call) RunAndReturn ¶ added in v1.0.73
func (_c *RunContext_Parent_Call) RunAndReturn(run func() cli.ThelmaCommand) *RunContext_Parent_Call
type RunContext_SetOutput_Call ¶ added in v1.0.8
RunContext_SetOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOutput'
func (*RunContext_SetOutput_Call) Return ¶ added in v1.0.8
func (_c *RunContext_SetOutput_Call) Return() *RunContext_SetOutput_Call
func (*RunContext_SetOutput_Call) Run ¶ added in v1.0.8
func (_c *RunContext_SetOutput_Call) Run(run func(data interface{})) *RunContext_SetOutput_Call
func (*RunContext_SetOutput_Call) RunAndReturn ¶ added in v1.0.73
func (_c *RunContext_SetOutput_Call) RunAndReturn(run func(interface{})) *RunContext_SetOutput_Call