mock

package
v0.1.0-dev.10 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockController

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

MockController is a mock of Controller interface.

func NewMockController

func NewMockController(ctrl *gomock.Controller) *MockController

NewMockController creates a new mock instance.

func (*MockController) ConsumerGroup

func (m *MockController) ConsumerGroup() string

ConsumerGroup mocks base method.

func (*MockController) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockController) Name

func (m *MockController) Name() string

Name mocks base method.

func (*MockController) Process

func (m *MockController) Process(ctx context.Context, delivery consumer.Delivery) error

Process mocks base method.

func (*MockController) TopicKey

func (m *MockController) TopicKey() consumer.TopicKey

TopicKey mocks base method.

type MockControllerMockRecorder

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

MockControllerMockRecorder is the mock recorder for MockController.

func (*MockControllerMockRecorder) ConsumerGroup

func (mr *MockControllerMockRecorder) ConsumerGroup() *gomock.Call

ConsumerGroup indicates an expected call of ConsumerGroup.

func (*MockControllerMockRecorder) Name

Name indicates an expected call of Name.

func (*MockControllerMockRecorder) Process

func (mr *MockControllerMockRecorder) Process(ctx, delivery interface{}) *gomock.Call

Process indicates an expected call of Process.

func (*MockControllerMockRecorder) TopicKey

func (mr *MockControllerMockRecorder) TopicKey() *gomock.Call

TopicKey indicates an expected call of TopicKey.

type MockDelivery

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

MockDelivery is a mock of Delivery interface.

func NewMockDelivery

func NewMockDelivery(ctrl *gomock.Controller) *MockDelivery

NewMockDelivery creates a new mock instance.

func (*MockDelivery) Attempt

func (m *MockDelivery) Attempt() int

Attempt mocks base method.

func (*MockDelivery) DeliveryID

func (m *MockDelivery) DeliveryID() string

DeliveryID mocks base method.

func (*MockDelivery) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDelivery) ExtendVisibilityTimeout

func (m *MockDelivery) ExtendVisibilityTimeout(ctx context.Context, durationMillis int64) error

ExtendVisibilityTimeout mocks base method.

func (*MockDelivery) Message

func (m *MockDelivery) Message() messagequeue.Message

Message mocks base method.

func (*MockDelivery) Metadata

func (m *MockDelivery) Metadata() map[string]string

Metadata mocks base method.

func (*MockDelivery) ReceivedAt

func (m *MockDelivery) ReceivedAt() int64

ReceivedAt mocks base method.

type MockDeliveryMockRecorder

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

MockDeliveryMockRecorder is the mock recorder for MockDelivery.

func (*MockDeliveryMockRecorder) Attempt

func (mr *MockDeliveryMockRecorder) Attempt() *gomock.Call

Attempt indicates an expected call of Attempt.

func (*MockDeliveryMockRecorder) DeliveryID

func (mr *MockDeliveryMockRecorder) DeliveryID() *gomock.Call

DeliveryID indicates an expected call of DeliveryID.

func (*MockDeliveryMockRecorder) ExtendVisibilityTimeout

func (mr *MockDeliveryMockRecorder) ExtendVisibilityTimeout(ctx, durationMillis interface{}) *gomock.Call

ExtendVisibilityTimeout indicates an expected call of ExtendVisibilityTimeout.

func (*MockDeliveryMockRecorder) Message

func (mr *MockDeliveryMockRecorder) Message() *gomock.Call

Message indicates an expected call of Message.

func (*MockDeliveryMockRecorder) Metadata

func (mr *MockDeliveryMockRecorder) Metadata() *gomock.Call

Metadata indicates an expected call of Metadata.

func (*MockDeliveryMockRecorder) ReceivedAt

func (mr *MockDeliveryMockRecorder) ReceivedAt() *gomock.Call

ReceivedAt indicates an expected call of ReceivedAt.

Jump to

Keyboard shortcuts

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