mocks

package
v0.0.0-...-c37dd20 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpecterTest

type ExpecterTest struct {
	mock.Mock
}

ExpecterTest is an autogenerated mock type for the ExpecterTest type

func NewExpecterTest

func NewExpecterTest(t testing.TB) *ExpecterTest

NewExpecterTest creates a new instance of ExpecterTest. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExpecterTest) EXPECT

func (_m *ExpecterTest) EXPECT() *ExpecterTest_Expecter

func (*ExpecterTest) ManyArgsReturns

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

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

func (*ExpecterTest) NoArg

func (_m *ExpecterTest) NoArg() string

NoArg provides a mock function with given fields:

func (*ExpecterTest) NoReturn

func (_m *ExpecterTest) NoReturn(str string)

NoReturn provides a mock function with given fields: str

func (*ExpecterTest) Variadic

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

Variadic provides a mock function with given fields: ints

func (*ExpecterTest) VariadicMany

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

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

func (*ExpecterTest_Expecter) ManyArgsReturns

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

NoArg is a helper method to define mock.On call

func (*ExpecterTest_Expecter) NoReturn

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

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

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

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

func (*ExpecterTest_ManyArgsReturns_Call) Run

type ExpecterTest_NoArg_Call

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

func (*ExpecterTest_NoArg_Call) Run

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

type ExpecterTest_NoReturn_Call

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

func (*ExpecterTest_NoReturn_Call) Run

type ExpecterTest_VariadicMany_Call

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

func (*ExpecterTest_VariadicMany_Call) Run

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

type ExpecterTest_Variadic_Call

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

func (*ExpecterTest_Variadic_Call) Run

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