mocks

package
v2.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A struct {
	mock.Mock
}

A is an autogenerated mock type for the A type

func NewA

func NewA(t mockConstructorTestingTNewA) *A

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

func (*A) Call

func (_m *A) Call() (test.B, error)

Call provides a mock function with given fields:

type AsyncProducer

type AsyncProducer struct {
	mock.Mock
}

AsyncProducer is an autogenerated mock type for the AsyncProducer type

func NewAsyncProducer

func NewAsyncProducer(t mockConstructorTestingTNewAsyncProducer) *AsyncProducer

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

func (*AsyncProducer) Input

func (_m *AsyncProducer) Input() chan<- bool

Input provides a mock function with given fields:

func (*AsyncProducer) Output

func (_m *AsyncProducer) Output() <-chan bool

Output provides a mock function with given fields:

func (*AsyncProducer) Whatever

func (_m *AsyncProducer) Whatever() chan bool

Whatever provides a mock function with given fields:

type Blank

type Blank struct {
	mock.Mock
}

Blank is an autogenerated mock type for the Blank type

func NewBlank

func NewBlank(t mockConstructorTestingTNewBlank) *Blank

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

func (*Blank) Create

func (_m *Blank) Create(x interface{}) error

Create provides a mock function with given fields: x

type ConsulLock

type ConsulLock struct {
	mock.Mock
}

ConsulLock is an autogenerated mock type for the ConsulLock type

func NewConsulLock

func NewConsulLock(t mockConstructorTestingTNewConsulLock) *ConsulLock

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

func (*ConsulLock) Lock

func (_m *ConsulLock) Lock(_a0 <-chan struct{}) (<-chan struct{}, error)

Lock provides a mock function with given fields: _a0

func (*ConsulLock) Unlock

func (_m *ConsulLock) Unlock() error

Unlock provides a mock function with given fields:

type EmbeddedGet

type EmbeddedGet[T constraints.Signed] struct {
	mock.Mock
}

EmbeddedGet is an autogenerated mock type for the EmbeddedGet type

func NewEmbeddedGet

func NewEmbeddedGet[T constraints.Signed](t mockConstructorTestingTNewEmbeddedGet) *EmbeddedGet[T]

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

func (*EmbeddedGet[T]) Get

func (_m *EmbeddedGet[T]) Get() T

Get provides a mock function with given fields:

type Example

type Example struct {
	mock.Mock
}

Example is an autogenerated mock type for the Example type

func NewExample

func NewExample(t mockConstructorTestingTNewExample) *Example

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

func (*Example) A

func (_m *Example) A() http.Flusher

A provides a mock function with given fields:

func (*Example) B

func (_m *Example) B(_a0 string) fixtureshttp.MyStruct

B provides a mock function with given fields: _a0

type Expecter

type Expecter struct {
	mock.Mock
}

Expecter is an autogenerated mock type for the Expecter type

func NewExpecter

func NewExpecter(t mockConstructorTestingTNewExpecter) *Expecter

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

func (*Expecter) EXPECT

func (_m *Expecter) EXPECT() *Expecter_Expecter

func (*Expecter) ManyArgsReturns

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

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

func (*Expecter) NoArg

func (_m *Expecter) NoArg() string

NoArg provides a mock function with given fields:

func (*Expecter) NoReturn

func (_m *Expecter) NoReturn(str string)

NoReturn provides a mock function with given fields: str

func (*Expecter) Variadic

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

Variadic provides a mock function with given fields: ints

func (*Expecter) VariadicMany

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

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

type Expecter_Expecter

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

func (*Expecter_Expecter) ManyArgsReturns

func (_e *Expecter_Expecter) ManyArgsReturns(str interface{}, i interface{}) *Expecter_ManyArgsReturns_Call

ManyArgsReturns is a helper method to define mock.On call

  • str string
  • i int

func (*Expecter_Expecter) NoArg

NoArg is a helper method to define mock.On call

func (*Expecter_Expecter) NoReturn

func (_e *Expecter_Expecter) NoReturn(str interface{}) *Expecter_NoReturn_Call

NoReturn is a helper method to define mock.On call

  • str string

func (*Expecter_Expecter) Variadic

func (_e *Expecter_Expecter) Variadic(ints ...interface{}) *Expecter_Variadic_Call

Variadic is a helper method to define mock.On call

  • ints ...int

func (*Expecter_Expecter) VariadicMany

func (_e *Expecter_Expecter) VariadicMany(i interface{}, a interface{}, intfs ...interface{}) *Expecter_VariadicMany_Call

VariadicMany is a helper method to define mock.On call

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

type Expecter_ManyArgsReturns_Call

type Expecter_ManyArgsReturns_Call struct {
	*mock.Call
}

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

func (*Expecter_ManyArgsReturns_Call) Return

func (*Expecter_ManyArgsReturns_Call) Run

type Expecter_NoArg_Call

type Expecter_NoArg_Call struct {
	*mock.Call
}

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

func (*Expecter_NoArg_Call) Return

func (*Expecter_NoArg_Call) Run

func (_c *Expecter_NoArg_Call) Run(run func()) *Expecter_NoArg_Call

type Expecter_NoReturn_Call

type Expecter_NoReturn_Call struct {
	*mock.Call
}

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

func (*Expecter_NoReturn_Call) Return

func (*Expecter_NoReturn_Call) Run

func (_c *Expecter_NoReturn_Call) Run(run func(str string)) *Expecter_NoReturn_Call

type Expecter_VariadicMany_Call

type Expecter_VariadicMany_Call struct {
	*mock.Call
}

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

func (*Expecter_VariadicMany_Call) Return

func (*Expecter_VariadicMany_Call) Run

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

type Expecter_Variadic_Call

type Expecter_Variadic_Call struct {
	*mock.Call
}

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

func (*Expecter_Variadic_Call) Return

func (*Expecter_Variadic_Call) Run

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

type Fooer

type Fooer struct {
	mock.Mock
}

Fooer is an autogenerated mock type for the Fooer type

func NewFooer

func NewFooer(t mockConstructorTestingTNewFooer) *Fooer

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

func (*Fooer) Bar

func (_m *Fooer) Bar(f func([]int))

Bar provides a mock function with given fields: f

func (*Fooer) Baz

func (_m *Fooer) Baz(path string) func(string) string

Baz provides a mock function with given fields: path

func (*Fooer) Foo

func (_m *Fooer) Foo(f func(string) string) error

Foo provides a mock function with given fields: f

type FuncArgsCollision

type FuncArgsCollision struct {
	mock.Mock
}

FuncArgsCollision is an autogenerated mock type for the FuncArgsCollision type

func NewFuncArgsCollision

func NewFuncArgsCollision(t mockConstructorTestingTNewFuncArgsCollision) *FuncArgsCollision

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

func (*FuncArgsCollision) Foo

func (_m *FuncArgsCollision) Foo(ret interface{}) error

Foo provides a mock function with given fields: ret

type GetGeneric

type GetGeneric[T constraints.Integer] struct {
	mock.Mock
}

GetGeneric is an autogenerated mock type for the GetGeneric type

func NewGetGeneric

func NewGetGeneric[T constraints.Integer](t mockConstructorTestingTNewGetGeneric) *GetGeneric[T]

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

func (*GetGeneric[T]) Get

func (_m *GetGeneric[T]) Get() T

Get provides a mock function with given fields:

type GetInt

type GetInt struct {
	mock.Mock
}

GetInt is an autogenerated mock type for the GetInt type

func NewGetInt

func NewGetInt(t mockConstructorTestingTNewGetInt) *GetInt

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

func (*GetInt) Get

func (_m *GetInt) Get() int

Get provides a mock function with given fields:

type HasConflictingNestedImports

type HasConflictingNestedImports struct {
	mock.Mock
}

HasConflictingNestedImports is an autogenerated mock type for the HasConflictingNestedImports type

func NewHasConflictingNestedImports

func NewHasConflictingNestedImports(t mockConstructorTestingTNewHasConflictingNestedImports) *HasConflictingNestedImports

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

func (*HasConflictingNestedImports) Get

Get provides a mock function with given fields: path

func (*HasConflictingNestedImports) Z

Z provides a mock function with given fields:

type ImportsSameAsPackage

type ImportsSameAsPackage struct {
	mock.Mock
}

ImportsSameAsPackage is an autogenerated mock type for the ImportsSameAsPackage type

func NewImportsSameAsPackage

func NewImportsSameAsPackage(t mockConstructorTestingTNewImportsSameAsPackage) *ImportsSameAsPackage

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

func (*ImportsSameAsPackage) A

func (_m *ImportsSameAsPackage) A() test.B

A provides a mock function with given fields:

func (*ImportsSameAsPackage) B

B provides a mock function with given fields:

func (*ImportsSameAsPackage) C

func (_m *ImportsSameAsPackage) C(_a0 fixtures.C)

C provides a mock function with given fields: _a0

type KeyManager

type KeyManager struct {
	mock.Mock
}

KeyManager is an autogenerated mock type for the KeyManager type

func NewKeyManager

func NewKeyManager(t mockConstructorTestingTNewKeyManager) *KeyManager

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

func (*KeyManager) GetKey

func (_m *KeyManager) GetKey(_a0 string, _a1 uint16) ([]byte, *test.Err)

GetKey provides a mock function with given fields: _a0, _a1

type MapFunc

type MapFunc struct {
	mock.Mock
}

MapFunc is an autogenerated mock type for the MapFunc type

func NewMapFunc

func NewMapFunc(t mockConstructorTestingTNewMapFunc) *MapFunc

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

func (*MapFunc) Get

func (_m *MapFunc) Get(m map[string]func(string) string) error

Get provides a mock function with given fields: m

type MapToInterface

type MapToInterface struct {
	mock.Mock
}

MapToInterface is an autogenerated mock type for the MapToInterface type

func NewMapToInterface

func NewMapToInterface(t mockConstructorTestingTNewMapToInterface) *MapToInterface

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

func (*MapToInterface) Foo

func (_m *MapToInterface) Foo(arg1 ...map[string]interface{})

Foo provides a mock function with given fields: arg1

type MyReader

type MyReader struct {
	mock.Mock
}

MyReader is an autogenerated mock type for the MyReader type

func NewMyReader

func NewMyReader(t mockConstructorTestingTNewMyReader) *MyReader

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

func (*MyReader) Read

func (_m *MyReader) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

type Requester

type Requester struct {
	mock.Mock
}

Requester is an autogenerated mock type for the Requester type

func NewRequester

func NewRequester(t mockConstructorTestingTNewRequester) *Requester

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

func (*Requester) Get

func (_m *Requester) Get(path string) (string, error)

Get provides a mock function with given fields: path

type Requester2

type Requester2 struct {
	mock.Mock
}

Requester2 is an autogenerated mock type for the Requester2 type

func NewRequester2

func NewRequester2(t mockConstructorTestingTNewRequester2) *Requester2

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

func (*Requester2) Get

func (_m *Requester2) Get(path string) error

Get provides a mock function with given fields: path

type Requester3

type Requester3 struct {
	mock.Mock
}

Requester3 is an autogenerated mock type for the Requester3 type

func NewRequester3

func NewRequester3(t mockConstructorTestingTNewRequester3) *Requester3

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

func (*Requester3) Get

func (_m *Requester3) Get() error

Get provides a mock function with given fields:

type Requester4

type Requester4 struct {
	mock.Mock
}

Requester4 is an autogenerated mock type for the Requester4 type

func NewRequester4

func NewRequester4(t mockConstructorTestingTNewRequester4) *Requester4

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

func (*Requester4) Get

func (_m *Requester4) Get()

Get provides a mock function with given fields:

type RequesterArgSameAsImport

type RequesterArgSameAsImport struct {
	mock.Mock
}

RequesterArgSameAsImport is an autogenerated mock type for the RequesterArgSameAsImport type

func NewRequesterArgSameAsImport

func NewRequesterArgSameAsImport(t mockConstructorTestingTNewRequesterArgSameAsImport) *RequesterArgSameAsImport

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

func (*RequesterArgSameAsImport) Get

Get provides a mock function with given fields: _a0

type RequesterArgSameAsNamedImport

type RequesterArgSameAsNamedImport struct {
	mock.Mock
}

RequesterArgSameAsNamedImport is an autogenerated mock type for the RequesterArgSameAsNamedImport type

func NewRequesterArgSameAsNamedImport

func NewRequesterArgSameAsNamedImport(t mockConstructorTestingTNewRequesterArgSameAsNamedImport) *RequesterArgSameAsNamedImport

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

func (*RequesterArgSameAsNamedImport) Get

Get provides a mock function with given fields: _a0

type RequesterArgSameAsPkg

type RequesterArgSameAsPkg struct {
	mock.Mock
}

RequesterArgSameAsPkg is an autogenerated mock type for the RequesterArgSameAsPkg type

func NewRequesterArgSameAsPkg

func NewRequesterArgSameAsPkg(t mockConstructorTestingTNewRequesterArgSameAsPkg) *RequesterArgSameAsPkg

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

func (*RequesterArgSameAsPkg) Get

func (_m *RequesterArgSameAsPkg) Get(_a0 string)

Get provides a mock function with given fields: _a0

type RequesterArray

type RequesterArray struct {
	mock.Mock
}

RequesterArray is an autogenerated mock type for the RequesterArray type

func NewRequesterArray

func NewRequesterArray(t mockConstructorTestingTNewRequesterArray) *RequesterArray

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

func (*RequesterArray) Get

func (_m *RequesterArray) Get(path string) ([2]string, error)

Get provides a mock function with given fields: path

type RequesterElided

type RequesterElided struct {
	mock.Mock
}

RequesterElided is an autogenerated mock type for the RequesterElided type

func NewRequesterElided

func NewRequesterElided(t mockConstructorTestingTNewRequesterElided) *RequesterElided

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

func (*RequesterElided) Get

func (_m *RequesterElided) Get(path string, url string) error

Get provides a mock function with given fields: path, url

type RequesterGenerics

type RequesterGenerics[TAny interface{}, TComparable comparable, TSigned constraints.Signed, TIntf test.GetInt, TExternalIntf io.Writer, TGenIntf test.GetGeneric[TSigned], TInlineType interface{ ~int | ~uint }, TInlineTypeGeneric interface {
	~int | test.GenericType[int, test.GetInt]
	comparable
}] struct {
	mock.Mock
}

RequesterGenerics is an autogenerated mock type for the RequesterGenerics type

func NewRequesterGenerics

func NewRequesterGenerics[TAny interface{}, TComparable comparable, TSigned constraints.Signed, TIntf test.GetInt, TExternalIntf io.Writer, TGenIntf test.GetGeneric[TSigned], TInlineType interface{ ~int | ~uint }, TInlineTypeGeneric interface {
	~int | test.GenericType[int, test.GetInt]
	comparable
}](t mockConstructorTestingTNewRequesterGenerics) *RequesterGenerics[TAny, TComparable, TSigned, TIntf, TExternalIntf, TGenIntf, TInlineType, TInlineTypeGeneric]

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

func (*RequesterGenerics[TAny, TComparable, TSigned, TIntf, TExternalIntf, TGenIntf, TInlineType, TInlineTypeGeneric]) GenericAnonymousStructs

func (_m *RequesterGenerics[TAny, TComparable, TSigned, TIntf, TExternalIntf, TGenIntf, TInlineType, TInlineTypeGeneric]) GenericAnonymousStructs(_a0 struct{ Type1 TExternalIntf }) struct {
	Type2 test.GenericType[string, test.EmbeddedGet[int]]
}

GenericAnonymousStructs provides a mock function with given fields: _a0

func (*RequesterGenerics[TAny, TComparable, TSigned, TIntf, TExternalIntf, TGenIntf, TInlineType, TInlineTypeGeneric]) GenericArguments

func (_m *RequesterGenerics[TAny, TComparable, TSigned, TIntf, TExternalIntf, TGenIntf, TInlineType, TInlineTypeGeneric]) GenericArguments(_a0 TAny, _a1 TComparable) (TSigned, TIntf)

GenericArguments provides a mock function with given fields: _a0, _a1

func (*RequesterGenerics[TAny, TComparable, TSigned, TIntf, TExternalIntf, TGenIntf, TInlineType, TInlineTypeGeneric]) GenericStructs

func (_m *RequesterGenerics[TAny, TComparable, TSigned, TIntf, TExternalIntf, TGenIntf, TInlineType, TInlineTypeGeneric]) GenericStructs(_a0 test.GenericType[TAny, TIntf]) test.GenericType[TSigned, TIntf]

GenericStructs provides a mock function with given fields: _a0

type RequesterIface

type RequesterIface struct {
	mock.Mock
}

RequesterIface is an autogenerated mock type for the RequesterIface type

func NewRequesterIface

func NewRequesterIface(t mockConstructorTestingTNewRequesterIface) *RequesterIface

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

func (*RequesterIface) Get

func (_m *RequesterIface) Get() io.Reader

Get provides a mock function with given fields:

type RequesterNS

type RequesterNS struct {
	mock.Mock
}

RequesterNS is an autogenerated mock type for the RequesterNS type

func NewRequesterNS

func NewRequesterNS(t mockConstructorTestingTNewRequesterNS) *RequesterNS

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

func (*RequesterNS) Get

func (_m *RequesterNS) Get(path string) (http.Response, error)

Get provides a mock function with given fields: path

type RequesterPtr

type RequesterPtr struct {
	mock.Mock
}

RequesterPtr is an autogenerated mock type for the RequesterPtr type

func NewRequesterPtr

func NewRequesterPtr(t mockConstructorTestingTNewRequesterPtr) *RequesterPtr

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

func (*RequesterPtr) Get

func (_m *RequesterPtr) Get(path string) (*string, error)

Get provides a mock function with given fields: path

type RequesterReturnElided

type RequesterReturnElided struct {
	mock.Mock
}

RequesterReturnElided is an autogenerated mock type for the RequesterReturnElided type

func NewRequesterReturnElided

func NewRequesterReturnElided(t mockConstructorTestingTNewRequesterReturnElided) *RequesterReturnElided

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

func (*RequesterReturnElided) Get

func (_m *RequesterReturnElided) Get(path string) (int, int, int, error)

Get provides a mock function with given fields: path

type RequesterSlice

type RequesterSlice struct {
	mock.Mock
}

RequesterSlice is an autogenerated mock type for the RequesterSlice type

func NewRequesterSlice

func NewRequesterSlice(t mockConstructorTestingTNewRequesterSlice) *RequesterSlice

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

func (*RequesterSlice) Get

func (_m *RequesterSlice) Get(path string) ([]string, error)

Get provides a mock function with given fields: path

type RequesterVariadic

type RequesterVariadic struct {
	mock.Mock
}

RequesterVariadic is an autogenerated mock type for the RequesterVariadic type

func NewRequesterVariadic

func NewRequesterVariadic(t mockConstructorTestingTNewRequesterVariadic) *RequesterVariadic

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

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 NewRequesterVariadicOneArgument

func NewRequesterVariadicOneArgument(t mockConstructorTestingTNewRequesterVariadicOneArgument) *RequesterVariadicOneArgument

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

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

type SendFunc

type SendFunc struct {
	mock.Mock
}

SendFunc is an autogenerated mock type for the SendFunc type

func NewSendFunc

func NewSendFunc(t mockConstructorTestingTNewSendFunc) *SendFunc

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

func (*SendFunc) Execute

func (_m *SendFunc) Execute(ctx context.Context, data string) (int, error)

Execute provides a mock function with given fields: ctx, data

type Sibling

type Sibling struct {
	mock.Mock
}

Sibling is an autogenerated mock type for the Sibling type

func NewSibling

func NewSibling(t mockConstructorTestingTNewSibling) *Sibling

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

func (*Sibling) DoSomething

func (_m *Sibling) DoSomething()

DoSomething provides a mock function with given fields:

type UnsafeInterface

type UnsafeInterface struct {
	mock.Mock
}

UnsafeInterface is an autogenerated mock type for the UnsafeInterface type

func NewUnsafeInterface

func NewUnsafeInterface(t mockConstructorTestingTNewUnsafeInterface) *UnsafeInterface

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

func (*UnsafeInterface) Do

func (_m *UnsafeInterface) Do(ptr *unsafe.Pointer)

Do provides a mock function with given fields: ptr

type UsesOtherPkgIface

type UsesOtherPkgIface struct {
	mock.Mock
}

UsesOtherPkgIface is an autogenerated mock type for the UsesOtherPkgIface type

func NewUsesOtherPkgIface

func NewUsesOtherPkgIface(t mockConstructorTestingTNewUsesOtherPkgIface) *UsesOtherPkgIface

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

func (*UsesOtherPkgIface) DoSomethingElse

func (_m *UsesOtherPkgIface) DoSomethingElse(obj test.Sibling)

DoSomethingElse provides a mock function with given fields: obj

Directories

Path Synopsis
buildtag
foo

Jump to

Keyboard shortcuts

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