mocks

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	mock.Mock
}

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

func (*Command) Setup

func (_m *Command) Setup(_a0 *cobra.Command)

Setup provides a mock function with given fields: _a0

func (*Command) Short

func (_m *Command) Short() string

Short provides a mock function with given fields:

func (*Command) Use

func (_m *Command) Use() string

Use provides a mock function with given fields:

type CommandRunner

type CommandRunner struct {
	mock.Mock
}

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

Use is a helper method to define mock.On call

type Command_Run_Call

type Command_Run_Call struct {
	*mock.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 (*Command_Run_Call) Run

func (_c *Command_Run_Call) Run(run func(_a0 *cobra.Command)) *Command_Run_Call

type Command_Setup_Call

type Command_Setup_Call struct {
	*mock.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

type Command_Short_Call struct {
	*mock.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

type Command_Use_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

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