mock

package
v0.4.0 Latest Latest
Warning

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

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

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 MockMessage

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

MockMessage is a mock of Message interface.

func NewMockMessage

func NewMockMessage(ctrl *gomock.Controller) *MockMessage

NewMockMessage creates a new mock instance.

func (*MockMessage) EXPECT

func (m *MockMessage) EXPECT() *MockMessageMockRecorder

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

func (*MockMessage) GetId

func (m *MockMessage) GetId() string

GetId mocks base method.

func (*MockMessage) ProtoMessage

func (m *MockMessage) ProtoMessage()

ProtoMessage mocks base method.

func (*MockMessage) Reset

func (m *MockMessage) Reset()

Reset mocks base method.

func (*MockMessage) String

func (m *MockMessage) String() string

String mocks base method.

type MockMessageMockRecorder

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

MockMessageMockRecorder is the mock recorder for MockMessage.

func (*MockMessageMockRecorder) GetId

func (mr *MockMessageMockRecorder) GetId() *gomock.Call

GetId indicates an expected call of GetId.

func (*MockMessageMockRecorder) ProtoMessage

func (mr *MockMessageMockRecorder) ProtoMessage() *gomock.Call

ProtoMessage indicates an expected call of ProtoMessage.

func (*MockMessageMockRecorder) Reset

func (mr *MockMessageMockRecorder) Reset() *gomock.Call

Reset indicates an expected call of Reset.

func (*MockMessageMockRecorder) String

func (mr *MockMessageMockRecorder) String() *gomock.Call

String indicates an expected call of String.

type MockPublisher

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

MockPublisher is a mock of Publisher interface.

func NewMockPublisher

func NewMockPublisher(ctrl *gomock.Controller) *MockPublisher

NewMockPublisher creates a new mock instance.

func (*MockPublisher) EXPECT

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

func (*MockPublisher) Publish

func (m *MockPublisher) Publish(ctx context.Context, msg publisher.Message) error

Publish mocks base method.

func (*MockPublisher) PublishMulti

func (m *MockPublisher) PublishMulti(ctx context.Context, messages []publisher.Message) map[string]error

PublishMulti mocks base method.

func (*MockPublisher) Stop

func (m *MockPublisher) Stop()

Stop mocks base method.

type MockPublisherMockRecorder

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

MockPublisherMockRecorder is the mock recorder for MockPublisher.

func (*MockPublisherMockRecorder) Publish

func (mr *MockPublisherMockRecorder) Publish(ctx, msg interface{}) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockPublisherMockRecorder) PublishMulti

func (mr *MockPublisherMockRecorder) PublishMulti(ctx, messages interface{}) *gomock.Call

PublishMulti indicates an expected call of PublishMulti.

func (*MockPublisherMockRecorder) Stop

Stop indicates an expected call of Stop.

Jump to

Keyboard shortcuts

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