mocks

package
v2.9.1-0...-473ca91 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: BSD-3-Clause 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 (*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

type RequesterVariadic

type RequesterVariadic struct {
	mock.Mock
}

RequesterVariadic is an autogenerated mock type for the RequesterVariadic type

func (*RequesterVariadic) Get

func (_m *RequesterVariadic) Get(values ...string) bool

Get provides a mock function with given fields: values

func (*RequesterVariadic) MultiWriteToFile

func (_m *RequesterVariadic) MultiWriteToFile(filename string, w ...io.Writer) string

MultiWriteToFile provides a mock function with given fields: filename, w

func (*RequesterVariadic) OneInterface

func (_m *RequesterVariadic) OneInterface(a ...interface{}) bool

OneInterface provides a mock function with given fields: a

func (*RequesterVariadic) Sprintf

func (_m *RequesterVariadic) Sprintf(format string, a ...interface{}) string

Sprintf provides a mock function with given fields: format, a

type RequesterVariadicOneArgument

type RequesterVariadicOneArgument struct {
	mock.Mock
}

RequesterVariadicOneArgument is an autogenerated mock type for the RequesterVariadic type

func (*RequesterVariadicOneArgument) Get

func (_m *RequesterVariadicOneArgument) Get(values ...string) bool

Get provides a mock function with given fields: values

func (*RequesterVariadicOneArgument) MultiWriteToFile

func (_m *RequesterVariadicOneArgument) MultiWriteToFile(filename string, w ...io.Writer) string

MultiWriteToFile provides a mock function with given fields: filename, w

func (*RequesterVariadicOneArgument) OneInterface

func (_m *RequesterVariadicOneArgument) OneInterface(a ...interface{}) bool

OneInterface provides a mock function with given fields: a

func (*RequesterVariadicOneArgument) Sprintf

func (_m *RequesterVariadicOneArgument) Sprintf(format string, a ...interface{}) string

Sprintf provides a mock function with given fields: format, a

Jump to

Keyboard shortcuts

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