mocks

package
v2.10.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpecterTest added in v2.10.0

type ExpecterTest struct {
	mock.Mock
}

ExpecterTest is an autogenerated mock type for the ExpecterTest type

func (*ExpecterTest) EXPECT added in v2.10.0

func (_m *ExpecterTest) EXPECT() *ExpecterTest_Expecter

func (*ExpecterTest) ManyArgsReturns added in v2.10.0

func (_m *ExpecterTest) ManyArgsReturns(str string, i int) ([]string, error)

ManyArgsReturns provides a mock function with given fields: str, i

func (*ExpecterTest) NoArg added in v2.10.0

func (_m *ExpecterTest) NoArg() string

NoArg provides a mock function with given fields:

func (*ExpecterTest) NoReturn added in v2.10.0

func (_m *ExpecterTest) NoReturn(str string)

NoReturn provides a mock function with given fields: str

func (*ExpecterTest) Variadic added in v2.10.0

func (_m *ExpecterTest) Variadic(ints ...int) error

Variadic provides a mock function with given fields: ints

func (*ExpecterTest) VariadicMany added in v2.10.0

func (_m *ExpecterTest) VariadicMany(i int, a string, intfs ...interface{}) error

VariadicMany provides a mock function with given fields: i, a, intfs

type ExpecterTest_Expecter added in v2.10.0

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

func (*ExpecterTest_Expecter) ManyArgsReturns added in v2.10.0

func (_e *ExpecterTest_Expecter) ManyArgsReturns(str interface{}, i interface{}) *ExpecterTest_ManyArgsReturns_Call

ManyArgsReturns is a helper method to define mock.On call

  • str string
  • i int

func (*ExpecterTest_Expecter) NoArg added in v2.10.0

NoArg is a helper method to define mock.On call

func (*ExpecterTest_Expecter) NoReturn added in v2.10.0

func (_e *ExpecterTest_Expecter) NoReturn(str interface{}) *ExpecterTest_NoReturn_Call

NoReturn is a helper method to define mock.On call

  • str string

func (*ExpecterTest_Expecter) Variadic added in v2.10.0

func (_e *ExpecterTest_Expecter) Variadic(ints ...interface{}) *ExpecterTest_Variadic_Call

Variadic is a helper method to define mock.On call

  • ints ...int

func (*ExpecterTest_Expecter) VariadicMany added in v2.10.0

func (_e *ExpecterTest_Expecter) VariadicMany(i interface{}, a interface{}, intfs ...interface{}) *ExpecterTest_VariadicMany_Call

VariadicMany is a helper method to define mock.On call

  • i int
  • a string
  • intfs ...interface{}

type ExpecterTest_ManyArgsReturns_Call added in v2.10.0

type ExpecterTest_ManyArgsReturns_Call struct {
	*mock.Call
}

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

func (*ExpecterTest_ManyArgsReturns_Call) Return added in v2.10.0

func (*ExpecterTest_ManyArgsReturns_Call) Run added in v2.10.0

type ExpecterTest_NoArg_Call added in v2.10.0

type ExpecterTest_NoArg_Call struct {
	*mock.Call
}

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

func (*ExpecterTest_NoArg_Call) Return added in v2.10.0

func (*ExpecterTest_NoArg_Call) Run added in v2.10.0

func (_c *ExpecterTest_NoArg_Call) Run(run func()) *ExpecterTest_NoArg_Call

type ExpecterTest_NoReturn_Call added in v2.10.0

type ExpecterTest_NoReturn_Call struct {
	*mock.Call
}

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

func (*ExpecterTest_NoReturn_Call) Return added in v2.10.0

func (*ExpecterTest_NoReturn_Call) Run added in v2.10.0

type ExpecterTest_VariadicMany_Call added in v2.10.0

type ExpecterTest_VariadicMany_Call struct {
	*mock.Call
}

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

func (*ExpecterTest_VariadicMany_Call) Return added in v2.10.0

func (*ExpecterTest_VariadicMany_Call) Run added in v2.10.0

func (_c *ExpecterTest_VariadicMany_Call) Run(run func(i int, a string, intfs ...interface{})) *ExpecterTest_VariadicMany_Call

type ExpecterTest_Variadic_Call added in v2.10.0

type ExpecterTest_Variadic_Call struct {
	*mock.Call
}

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

func (*ExpecterTest_Variadic_Call) Return added in v2.10.0

func (*ExpecterTest_Variadic_Call) Run added in v2.10.0

func (_c *ExpecterTest_Variadic_Call) Run(run func(ints ...int)) *ExpecterTest_Variadic_Call

Jump to

Keyboard shortcuts

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