mock_handler

package
v0.10.3-0...-8fe6c1c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHandlerClient

type MockHandlerClient struct {
	mock.Mock
}

MockHandlerClient is an autogenerated mock type for the HandlerClient type

func NewMockHandlerClient

func NewMockHandlerClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHandlerClient

NewMockHandlerClient creates a new instance of MockHandlerClient. 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 (*MockHandlerClient) Close

func (_m *MockHandlerClient) Close()

Close provides a mock function with given fields:

func (*MockHandlerClient) CreateConsumer

func (_m *MockHandlerClient) CreateConsumer(ctx context.Context, opts *handler.ConsumerOptions) (consumer.Consumer, error)

CreateConsumer provides a mock function with given fields: ctx, opts

func (*MockHandlerClient) CreateProducer

func (_m *MockHandlerClient) CreateProducer(ctx context.Context, opts *handler.ProducerOptions) (producer.Producer, error)

CreateProducer provides a mock function with given fields: ctx, opts

func (*MockHandlerClient) EXPECT

type MockHandlerClient_Close_Call

type MockHandlerClient_Close_Call struct {
	*mock.Call
}

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

func (*MockHandlerClient_Close_Call) Return

func (*MockHandlerClient_Close_Call) Run

func (*MockHandlerClient_Close_Call) RunAndReturn

func (_c *MockHandlerClient_Close_Call) RunAndReturn(run func()) *MockHandlerClient_Close_Call

type MockHandlerClient_CreateConsumer_Call

type MockHandlerClient_CreateConsumer_Call struct {
	*mock.Call
}

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

func (*MockHandlerClient_CreateConsumer_Call) Return

func (*MockHandlerClient_CreateConsumer_Call) Run

func (*MockHandlerClient_CreateConsumer_Call) RunAndReturn

type MockHandlerClient_CreateProducer_Call

type MockHandlerClient_CreateProducer_Call struct {
	*mock.Call
}

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

func (*MockHandlerClient_CreateProducer_Call) Return

func (*MockHandlerClient_CreateProducer_Call) Run

func (*MockHandlerClient_CreateProducer_Call) RunAndReturn

type MockHandlerClient_Expecter

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

func (*MockHandlerClient_Expecter) Close

Close is a helper method to define mock.On call

func (*MockHandlerClient_Expecter) CreateConsumer

func (_e *MockHandlerClient_Expecter) CreateConsumer(ctx interface{}, opts interface{}) *MockHandlerClient_CreateConsumer_Call

CreateConsumer is a helper method to define mock.On call

  • ctx context.Context
  • opts *handler.ConsumerOptions

func (*MockHandlerClient_Expecter) CreateProducer

func (_e *MockHandlerClient_Expecter) CreateProducer(ctx interface{}, opts interface{}) *MockHandlerClient_CreateProducer_Call

CreateProducer is a helper method to define mock.On call

  • ctx context.Context
  • opts *handler.ProducerOptions

Jump to

Keyboard shortcuts

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