command

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument added in v1.17.0

type Argument struct {
	mock.Mock
}

Argument is an autogenerated mock type for the Argument type

func NewArgument added in v1.17.0

func NewArgument(t interface {
	mock.TestingT
	Cleanup(func())
}) *Argument

NewArgument creates a new instance of Argument. 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 (*Argument) EXPECT added in v1.17.0

func (_m *Argument) EXPECT() *Argument_Expecter

func (*Argument) GetMax added in v1.17.0

func (_m *Argument) GetMax() int

GetMax provides a mock function with no fields

func (*Argument) GetMin added in v1.17.0

func (_m *Argument) GetMin() int

GetMin provides a mock function with no fields

func (*Argument) GetName added in v1.17.0

func (_m *Argument) GetName() string

GetName provides a mock function with no fields

func (*Argument) GetValue added in v1.17.0

func (_m *Argument) GetValue() interface{}

GetValue provides a mock function with no fields

type Argument_Expecter added in v1.17.0

type Argument_Expecter struct {
	// contains filtered or unexported fields
}

func (*Argument_Expecter) GetMax added in v1.17.0

GetMax is a helper method to define mock.On call

func (*Argument_Expecter) GetMin added in v1.17.0

GetMin is a helper method to define mock.On call

func (*Argument_Expecter) GetName added in v1.17.0

GetName is a helper method to define mock.On call

func (*Argument_Expecter) GetValue added in v1.17.0

func (_e *Argument_Expecter) GetValue() *Argument_GetValue_Call

GetValue is a helper method to define mock.On call

type Argument_GetMax_Call added in v1.17.0

type Argument_GetMax_Call struct {
	*mock.Call
}

Argument_GetMax_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMax'

func (*Argument_GetMax_Call) Return added in v1.17.0

func (*Argument_GetMax_Call) Run added in v1.17.0

func (_c *Argument_GetMax_Call) Run(run func()) *Argument_GetMax_Call

func (*Argument_GetMax_Call) RunAndReturn added in v1.17.0

func (_c *Argument_GetMax_Call) RunAndReturn(run func() int) *Argument_GetMax_Call

type Argument_GetMin_Call added in v1.17.0

type Argument_GetMin_Call struct {
	*mock.Call
}

Argument_GetMin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMin'

func (*Argument_GetMin_Call) Return added in v1.17.0

func (*Argument_GetMin_Call) Run added in v1.17.0

func (_c *Argument_GetMin_Call) Run(run func()) *Argument_GetMin_Call

func (*Argument_GetMin_Call) RunAndReturn added in v1.17.0

func (_c *Argument_GetMin_Call) RunAndReturn(run func() int) *Argument_GetMin_Call

type Argument_GetName_Call added in v1.17.0

type Argument_GetName_Call struct {
	*mock.Call
}

Argument_GetName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetName'

func (*Argument_GetName_Call) Return added in v1.17.0

func (*Argument_GetName_Call) Run added in v1.17.0

func (_c *Argument_GetName_Call) Run(run func()) *Argument_GetName_Call

func (*Argument_GetName_Call) RunAndReturn added in v1.17.0

func (_c *Argument_GetName_Call) RunAndReturn(run func() string) *Argument_GetName_Call

type Argument_GetValue_Call added in v1.17.0

type Argument_GetValue_Call struct {
	*mock.Call
}

Argument_GetValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetValue'

func (*Argument_GetValue_Call) Return added in v1.17.0

func (_c *Argument_GetValue_Call) Return(_a0 interface{}) *Argument_GetValue_Call

func (*Argument_GetValue_Call) Run added in v1.17.0

func (_c *Argument_GetValue_Call) Run(run func()) *Argument_GetValue_Call

func (*Argument_GetValue_Call) RunAndReturn added in v1.17.0

func (_c *Argument_GetValue_Call) RunAndReturn(run func() interface{}) *Argument_GetValue_Call

type Flag

type Flag struct {
	mock.Mock
}

Flag is an autogenerated mock type for the Flag type

func NewFlag

func NewFlag(t interface {
	mock.TestingT
	Cleanup(func())
}) *Flag

NewFlag creates a new instance of Flag. 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 (*Flag) EXPECT

func (_m *Flag) EXPECT() *Flag_Expecter

func (*Flag) Type

func (_m *Flag) Type() string

Type provides a mock function with no fields

type Flag_Expecter

type Flag_Expecter struct {
	// contains filtered or unexported fields
}

func (*Flag_Expecter) Type

func (_e *Flag_Expecter) Type() *Flag_Type_Call

Type is a helper method to define mock.On call

type Flag_Type_Call

type Flag_Type_Call struct {
	*mock.Call
}

Flag_Type_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Type'

func (*Flag_Type_Call) Return

func (_c *Flag_Type_Call) Return(_a0 string) *Flag_Type_Call

func (*Flag_Type_Call) Run

func (_c *Flag_Type_Call) Run(run func()) *Flag_Type_Call

func (*Flag_Type_Call) RunAndReturn

func (_c *Flag_Type_Call) RunAndReturn(run func() string) *Flag_Type_Call

Jump to

Keyboard shortcuts

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