mocks

package
v1.1.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunContext

type RunContext struct {
	mock.Mock
}

RunContext is an autogenerated mock type for the RunContext type

func NewRunContext

func NewRunContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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

type RunContext_Args_Call struct {
	*mock.Call
}

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 (*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

type RunContext_CobraCommand_Call struct {
	*mock.Call
}

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 (*RunContext_CobraCommand_Call) Run added in v1.0.8

func (*RunContext_CobraCommand_Call) RunAndReturn added in v1.0.73

type RunContext_CommandName_Call added in v1.0.8

type RunContext_CommandName_Call struct {
	*mock.Call
}

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 (*RunContext_CommandName_Call) Run added in v1.0.8

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

Args is a helper method to define mock.On call

func (*RunContext_Expecter) CobraCommand added in v1.0.8

CobraCommand is a helper method to define mock.On call

func (*RunContext_Expecter) CommandName added in v1.0.8

CommandName is a helper method to define mock.On call

func (*RunContext_Expecter) HasOutput added in v1.0.8

HasOutput is a helper method to define mock.On call

func (*RunContext_Expecter) Output added in v1.0.8

Output is a helper method to define mock.On call

func (*RunContext_Expecter) Parent added in v1.0.8

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

type RunContext_HasOutput_Call struct {
	*mock.Call
}

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 (*RunContext_HasOutput_Call) Run added in v1.0.8

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

type RunContext_Output_Call struct {
	*mock.Call
}

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

type RunContext_Parent_Call struct {
	*mock.Call
}

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 (*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

type RunContext_SetOutput_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL