mocks

package
v1.4.2-devel Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 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 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) Consume

func (_mock *MockConsumer) Consume(change []byte) error

Consume provides a mock function for the type MockConsumer

func (*MockConsumer) EXPECT

func (_m *MockConsumer) EXPECT() *MockConsumer_Expecter

type MockConsumerWithAck

type MockConsumerWithAck struct {
	mock.Mock
}

MockConsumerWithAck is an autogenerated mock type for the ConsumerWithAck type

func NewMockConsumerWithAck

func NewMockConsumerWithAck(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConsumerWithAck

NewMockConsumerWithAck creates a new instance of MockConsumerWithAck. 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 (*MockConsumerWithAck) Consume

func (_mock *MockConsumerWithAck) Consume(change []byte, ack screamer.AckFunc) error

Consume provides a mock function for the type MockConsumerWithAck

func (*MockConsumerWithAck) EXPECT

type MockConsumerWithAck_Consume_Call

type MockConsumerWithAck_Consume_Call struct {
	*mock.Call
}

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

func (*MockConsumerWithAck_Consume_Call) Return

func (*MockConsumerWithAck_Consume_Call) Run

func (*MockConsumerWithAck_Consume_Call) RunAndReturn

type MockConsumerWithAck_Expecter

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

func (*MockConsumerWithAck_Expecter) Consume

func (_e *MockConsumerWithAck_Expecter) Consume(change interface{}, ack interface{}) *MockConsumerWithAck_Consume_Call

Consume is a helper method to define mock.On call

  • change []byte
  • ack screamer.AckFunc

type MockConsumer_Consume_Call

type MockConsumer_Consume_Call struct {
	*mock.Call
}

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

func (*MockConsumer_Consume_Call) Return

func (*MockConsumer_Consume_Call) Run

func (_c *MockConsumer_Consume_Call) Run(run func(change []byte)) *MockConsumer_Consume_Call

func (*MockConsumer_Consume_Call) RunAndReturn

func (_c *MockConsumer_Consume_Call) RunAndReturn(run func(change []byte) error) *MockConsumer_Consume_Call

type MockConsumer_Expecter

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

func (*MockConsumer_Expecter) Consume

func (_e *MockConsumer_Expecter) Consume(change interface{}) *MockConsumer_Consume_Call

Consume is a helper method to define mock.On call

  • change []byte

Jump to

Keyboard shortcuts

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