Documentation ¶
Index ¶
- type ExpecterTest
- func (_m *ExpecterTest) EXPECT() *ExpecterTest_Expecter
- func (_m *ExpecterTest) ManyArgsReturns(str string, i int) ([]string, error)
- func (_m *ExpecterTest) NoArg() string
- func (_m *ExpecterTest) NoReturn(str string)
- func (_m *ExpecterTest) Variadic(ints ...int) error
- func (_m *ExpecterTest) VariadicMany(i int, a string, intfs ...interface{}) error
- type ExpecterTest_Expecter
- func (_e *ExpecterTest_Expecter) ManyArgsReturns(str interface{}, i interface{}) *ExpecterTest_ManyArgsReturns_Call
- func (_e *ExpecterTest_Expecter) NoArg() *ExpecterTest_NoArg_Call
- func (_e *ExpecterTest_Expecter) NoReturn(str interface{}) *ExpecterTest_NoReturn_Call
- func (_e *ExpecterTest_Expecter) Variadic(ints ...interface{}) *ExpecterTest_Variadic_Call
- func (_e *ExpecterTest_Expecter) VariadicMany(i interface{}, a interface{}, intfs ...interface{}) *ExpecterTest_VariadicMany_Call
- type ExpecterTest_ManyArgsReturns_Call
- type ExpecterTest_NoArg_Call
- type ExpecterTest_NoReturn_Call
- type ExpecterTest_VariadicMany_Call
- type ExpecterTest_Variadic_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpecterTest ¶ added in v2.10.0
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
func (_e *ExpecterTest_Expecter) NoArg() *ExpecterTest_NoArg_Call
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
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 (_c *ExpecterTest_ManyArgsReturns_Call) Return(strs []string, err error) *ExpecterTest_ManyArgsReturns_Call
func (*ExpecterTest_ManyArgsReturns_Call) Run ¶ added in v2.10.0
func (_c *ExpecterTest_ManyArgsReturns_Call) Run(run func(str string, i int)) *ExpecterTest_ManyArgsReturns_Call
type ExpecterTest_NoArg_Call ¶ added in v2.10.0
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 (_c *ExpecterTest_NoArg_Call) Return(_a0 string) *ExpecterTest_NoArg_Call
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
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 (_c *ExpecterTest_NoReturn_Call) Return() *ExpecterTest_NoReturn_Call
func (*ExpecterTest_NoReturn_Call) Run ¶ added in v2.10.0
func (_c *ExpecterTest_NoReturn_Call) Run(run func(str string)) *ExpecterTest_NoReturn_Call
type ExpecterTest_VariadicMany_Call ¶ added in v2.10.0
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 (_c *ExpecterTest_VariadicMany_Call) Return(_a0 error) *ExpecterTest_VariadicMany_Call
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
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 (_c *ExpecterTest_Variadic_Call) Return(_a0 error) *ExpecterTest_Variadic_Call
func (*ExpecterTest_Variadic_Call) Run ¶ added in v2.10.0
func (_c *ExpecterTest_Variadic_Call) Run(run func(ints ...int)) *ExpecterTest_Variadic_Call