Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConsumer ¶
MockConsumer is an autogenerated mock type for the Consumer type
func NewMockConsumer ¶
func NewMockConsumer(t interface { mock.TestingT Cleanup(func()) }) *MockConsumer
NewMockConsumer creates a new instance of MockConsumer. 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 (*MockConsumer) Close ¶
func (_m *MockConsumer) Close()
Close provides a mock function with given fields:
func (*MockConsumer) Done ¶
func (_m *MockConsumer) Done() <-chan struct{}
Done provides a mock function with given fields:
func (*MockConsumer) EXPECT ¶
func (_m *MockConsumer) EXPECT() *MockConsumer_Expecter
func (*MockConsumer) Error ¶
func (_m *MockConsumer) Error() error
Error provides a mock function with given fields:
type MockConsumer_Close_Call ¶
MockConsumer_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockConsumer_Close_Call) Return ¶
func (_c *MockConsumer_Close_Call) Return() *MockConsumer_Close_Call
func (*MockConsumer_Close_Call) Run ¶
func (_c *MockConsumer_Close_Call) Run(run func()) *MockConsumer_Close_Call
func (*MockConsumer_Close_Call) RunAndReturn ¶
func (_c *MockConsumer_Close_Call) RunAndReturn(run func()) *MockConsumer_Close_Call
type MockConsumer_Done_Call ¶
MockConsumer_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*MockConsumer_Done_Call) Return ¶
func (_c *MockConsumer_Done_Call) Return(_a0 <-chan struct{}) *MockConsumer_Done_Call
func (*MockConsumer_Done_Call) Run ¶
func (_c *MockConsumer_Done_Call) Run(run func()) *MockConsumer_Done_Call
func (*MockConsumer_Done_Call) RunAndReturn ¶
func (_c *MockConsumer_Done_Call) RunAndReturn(run func() <-chan struct{}) *MockConsumer_Done_Call
type MockConsumer_Error_Call ¶
MockConsumer_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*MockConsumer_Error_Call) Return ¶
func (_c *MockConsumer_Error_Call) Return(_a0 error) *MockConsumer_Error_Call
func (*MockConsumer_Error_Call) Run ¶
func (_c *MockConsumer_Error_Call) Run(run func()) *MockConsumer_Error_Call
func (*MockConsumer_Error_Call) RunAndReturn ¶
func (_c *MockConsumer_Error_Call) RunAndReturn(run func() error) *MockConsumer_Error_Call
type MockConsumer_Expecter ¶
type MockConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConsumer_Expecter) Close ¶
func (_e *MockConsumer_Expecter) Close() *MockConsumer_Close_Call
Close is a helper method to define mock.On call
func (*MockConsumer_Expecter) Done ¶
func (_e *MockConsumer_Expecter) Done() *MockConsumer_Done_Call
Done is a helper method to define mock.On call
func (*MockConsumer_Expecter) Error ¶
func (_e *MockConsumer_Expecter) Error() *MockConsumer_Error_Call
Error is a helper method to define mock.On call