mock_consumer

package
v0.10.3-0...-843c1f5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConsumer

type MockConsumer struct {
	mock.Mock
}

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

type MockConsumer_Close_Call struct {
	*mock.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 (*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

type MockConsumer_Done_Call struct {
	*mock.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

type MockConsumer_Error_Call struct {
	*mock.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 (*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

Close is a helper method to define mock.On call

func (*MockConsumer_Expecter) Done

Done is a helper method to define mock.On call

func (*MockConsumer_Expecter) Error

Error is a helper method to define mock.On call

Jump to

Keyboard shortcuts

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