Documentation ¶
Index ¶
- type QueuePair
- func (_m *QueuePair) Create(name string) error
- func (_m *QueuePair) Delete(name string, shutdown bool) error
- func (_m *QueuePair) EXPECT() *QueuePair_Expecter
- func (_m *QueuePair) HasQueuePair(name string) bool
- func (_m *QueuePair) Len() int
- func (_m *QueuePair) Names() []string
- func (_m *QueuePair) RecvQ(name string) workqueue.RateLimitingInterface
- func (_m *QueuePair) SendQ(name string) workqueue.RateLimitingInterface
- type QueuePair_Create_Call
- type QueuePair_Delete_Call
- type QueuePair_Expecter
- func (_e *QueuePair_Expecter) Create(name interface{}) *QueuePair_Create_Call
- func (_e *QueuePair_Expecter) Delete(name interface{}, shutdown interface{}) *QueuePair_Delete_Call
- func (_e *QueuePair_Expecter) HasQueuePair(name interface{}) *QueuePair_HasQueuePair_Call
- func (_e *QueuePair_Expecter) Len() *QueuePair_Len_Call
- func (_e *QueuePair_Expecter) Names() *QueuePair_Names_Call
- func (_e *QueuePair_Expecter) RecvQ(name interface{}) *QueuePair_RecvQ_Call
- func (_e *QueuePair_Expecter) SendQ(name interface{}) *QueuePair_SendQ_Call
- type QueuePair_HasQueuePair_Call
- type QueuePair_Len_Call
- type QueuePair_Names_Call
- type QueuePair_RecvQ_Call
- type QueuePair_SendQ_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueuePair ¶
QueuePair is an autogenerated mock type for the QueuePair type
func NewQueuePair ¶
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) EXPECT ¶
func (_m *QueuePair) EXPECT() *QueuePair_Expecter
func (*QueuePair) HasQueuePair ¶
HasQueuePair provides a mock function with given fields: name
type QueuePair_Create_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 (_c *QueuePair_Create_Call) Return(_a0 error) *QueuePair_Create_Call
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 ¶
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 (_c *QueuePair_Delete_Call) Return(_a0 error) *QueuePair_Delete_Call
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 ¶
func (_e *QueuePair_Expecter) Len() *QueuePair_Len_Call
Len is a helper method to define mock.On call
func (*QueuePair_Expecter) Names ¶
func (_e *QueuePair_Expecter) Names() *QueuePair_Names_Call
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 ¶
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 (_c *QueuePair_HasQueuePair_Call) Return(_a0 bool) *QueuePair_HasQueuePair_Call
func (*QueuePair_HasQueuePair_Call) Run ¶
func (_c *QueuePair_HasQueuePair_Call) Run(run func(name string)) *QueuePair_HasQueuePair_Call
func (*QueuePair_HasQueuePair_Call) RunAndReturn ¶
func (_c *QueuePair_HasQueuePair_Call) RunAndReturn(run func(string) bool) *QueuePair_HasQueuePair_Call
type QueuePair_Len_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 ¶
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 (_c *QueuePair_Names_Call) Return(_a0 []string) *QueuePair_Names_Call
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 ¶
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 (_c *QueuePair_RecvQ_Call) Return(_a0 workqueue.RateLimitingInterface) *QueuePair_RecvQ_Call
func (*QueuePair_RecvQ_Call) Run ¶
func (_c *QueuePair_RecvQ_Call) Run(run func(name string)) *QueuePair_RecvQ_Call
func (*QueuePair_RecvQ_Call) RunAndReturn ¶
func (_c *QueuePair_RecvQ_Call) RunAndReturn(run func(string) workqueue.RateLimitingInterface) *QueuePair_RecvQ_Call
type QueuePair_SendQ_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 (_c *QueuePair_SendQ_Call) Return(_a0 workqueue.RateLimitingInterface) *QueuePair_SendQ_Call
func (*QueuePair_SendQ_Call) Run ¶
func (_c *QueuePair_SendQ_Call) Run(run func(name string)) *QueuePair_SendQ_Call
func (*QueuePair_SendQ_Call) RunAndReturn ¶
func (_c *QueuePair_SendQ_Call) RunAndReturn(run func(string) workqueue.RateLimitingInterface) *QueuePair_SendQ_Call