mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 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) 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 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