mocks

package
v0.0.0-...-65c2b02 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueuePair

type QueuePair struct {
	mock.Mock
}

QueuePair is an autogenerated mock type for the QueuePair type

func NewQueuePair

func NewQueuePair(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueuePair

NewQueuePair creates a new instance of QueuePair. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*QueuePair) Create

func (_m *QueuePair) Create(name string) error

Create provides a mock function with given fields: name

func (*QueuePair) Delete

func (_m *QueuePair) Delete(name string, shutdown bool) error

Delete provides a mock function with given fields: name, shutdown

func (*QueuePair) EXPECT

func (_m *QueuePair) EXPECT() *QueuePair_Expecter

func (*QueuePair) HasQueuePair

func (_m *QueuePair) HasQueuePair(name string) bool

HasQueuePair provides a mock function with given fields: name

func (*QueuePair) Len

func (_m *QueuePair) Len() int

Len provides a mock function with given fields:

func (*QueuePair) Names

func (_m *QueuePair) Names() []string

Names provides a mock function with given fields:

func (*QueuePair) RecvQ

RecvQ provides a mock function with given fields: name

func (*QueuePair) SendQ

SendQ provides a mock function with given fields: name

type QueuePair_Create_Call

type QueuePair_Create_Call struct {
	*mock.Call
}

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

func (*QueuePair_Create_Call) Return

func (*QueuePair_Create_Call) Run

func (_c *QueuePair_Create_Call) Run(run func(name string)) *QueuePair_Create_Call

func (*QueuePair_Create_Call) RunAndReturn

func (_c *QueuePair_Create_Call) RunAndReturn(run func(string) error) *QueuePair_Create_Call

type QueuePair_Delete_Call

type QueuePair_Delete_Call struct {
	*mock.Call
}

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

func (*QueuePair_Delete_Call) Return

func (*QueuePair_Delete_Call) Run

func (_c *QueuePair_Delete_Call) Run(run func(name string, shutdown bool)) *QueuePair_Delete_Call

func (*QueuePair_Delete_Call) RunAndReturn

func (_c *QueuePair_Delete_Call) RunAndReturn(run func(string, bool) error) *QueuePair_Delete_Call

type QueuePair_Expecter

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

func (*QueuePair_Expecter) Create

func (_e *QueuePair_Expecter) Create(name interface{}) *QueuePair_Create_Call

Create is a helper method to define mock.On call

  • name string

func (*QueuePair_Expecter) Delete

func (_e *QueuePair_Expecter) Delete(name interface{}, shutdown interface{}) *QueuePair_Delete_Call

Delete is a helper method to define mock.On call

  • name string
  • shutdown bool

func (*QueuePair_Expecter) HasQueuePair

func (_e *QueuePair_Expecter) HasQueuePair(name interface{}) *QueuePair_HasQueuePair_Call

HasQueuePair is a helper method to define mock.On call

  • name string

func (*QueuePair_Expecter) Len

Len is a helper method to define mock.On call

func (*QueuePair_Expecter) Names

Names is a helper method to define mock.On call

func (*QueuePair_Expecter) RecvQ

func (_e *QueuePair_Expecter) RecvQ(name interface{}) *QueuePair_RecvQ_Call

RecvQ is a helper method to define mock.On call

  • name string

func (*QueuePair_Expecter) SendQ

func (_e *QueuePair_Expecter) SendQ(name interface{}) *QueuePair_SendQ_Call

SendQ is a helper method to define mock.On call

  • name string

type QueuePair_HasQueuePair_Call

type QueuePair_HasQueuePair_Call struct {
	*mock.Call
}

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

func (*QueuePair_HasQueuePair_Call) Return

func (*QueuePair_HasQueuePair_Call) Run

func (*QueuePair_HasQueuePair_Call) RunAndReturn

type QueuePair_Len_Call

type QueuePair_Len_Call struct {
	*mock.Call
}

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

func (*QueuePair_Len_Call) Return

func (_c *QueuePair_Len_Call) Return(_a0 int) *QueuePair_Len_Call

func (*QueuePair_Len_Call) Run

func (_c *QueuePair_Len_Call) Run(run func()) *QueuePair_Len_Call

func (*QueuePair_Len_Call) RunAndReturn

func (_c *QueuePair_Len_Call) RunAndReturn(run func() int) *QueuePair_Len_Call

type QueuePair_Names_Call

type QueuePair_Names_Call struct {
	*mock.Call
}

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

func (*QueuePair_Names_Call) Return

func (*QueuePair_Names_Call) Run

func (_c *QueuePair_Names_Call) Run(run func()) *QueuePair_Names_Call

func (*QueuePair_Names_Call) RunAndReturn

func (_c *QueuePair_Names_Call) RunAndReturn(run func() []string) *QueuePair_Names_Call

type QueuePair_RecvQ_Call

type QueuePair_RecvQ_Call struct {
	*mock.Call
}

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

func (*QueuePair_RecvQ_Call) Return

func (*QueuePair_RecvQ_Call) Run

func (_c *QueuePair_RecvQ_Call) Run(run func(name string)) *QueuePair_RecvQ_Call

func (*QueuePair_RecvQ_Call) RunAndReturn

type QueuePair_SendQ_Call

type QueuePair_SendQ_Call struct {
	*mock.Call
}

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

func (*QueuePair_SendQ_Call) Return

func (*QueuePair_SendQ_Call) Run

func (_c *QueuePair_SendQ_Call) Run(run func(name string)) *QueuePair_SendQ_Call

func (*QueuePair_SendQ_Call) RunAndReturn

Jump to

Keyboard shortcuts

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