mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 5 Imported by: 0 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 mocks provides mock implementations for testing.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockJetStream

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

MockJetStream is a mock of JetStream interface.

func NewMockJetStream

func NewMockJetStream(ctrl *gomock.Controller) *MockJetStream

NewMockJetStream creates a new mock instance.

func (*MockJetStream) EXPECT

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

func (*MockJetStream) KVCreateOrUpdate

func (m *MockJetStream) KVCreateOrUpdate(ctx context.Context, config jetstream.KeyValueConfig) error

KVCreateOrUpdate mocks base method.

func (*MockJetStream) ObjectStoreCreateOrUpdate

func (m *MockJetStream) ObjectStoreCreateOrUpdate(ctx context.Context, config jetstream.ObjectStoreConfig) error

ObjectStoreCreateOrUpdate mocks base method.

func (*MockJetStream) StreamCreateOrUpdate

func (m *MockJetStream) StreamCreateOrUpdate(ctx context.Context, config jetstream.StreamConfig) error

StreamCreateOrUpdate mocks base method.

type MockJetStreamMockRecorder

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

MockJetStreamMockRecorder is the mock recorder for MockJetStream.

func (*MockJetStreamMockRecorder) KVCreateOrUpdate

func (mr *MockJetStreamMockRecorder) KVCreateOrUpdate(ctx, config any) *gomock.Call

KVCreateOrUpdate indicates an expected call of KVCreateOrUpdate.

func (*MockJetStreamMockRecorder) ObjectStoreCreateOrUpdate

func (mr *MockJetStreamMockRecorder) ObjectStoreCreateOrUpdate(ctx, config any) *gomock.Call

ObjectStoreCreateOrUpdate indicates an expected call of ObjectStoreCreateOrUpdate.

func (*MockJetStreamMockRecorder) StreamCreateOrUpdate

func (mr *MockJetStreamMockRecorder) StreamCreateOrUpdate(ctx, config any) *gomock.Call

StreamCreateOrUpdate indicates an expected call of StreamCreateOrUpdate.

type MockNATSConnector

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

MockNATSConnector is a mock of NATSConnector interface.

func NewMockNATSConnector

func NewMockNATSConnector(ctrl *gomock.Controller) *MockNATSConnector

NewMockNATSConnector creates a new mock instance.

func (*MockNATSConnector) Close

func (m *MockNATSConnector) Close()

Close mocks base method.

func (*MockNATSConnector) Connect

func (m *MockNATSConnector) Connect(url string, opts ...nats.Option) (*nats.Conn, error)

Connect mocks base method.

func (*MockNATSConnector) ConnectedServerVersion

func (m *MockNATSConnector) ConnectedServerVersion() string

ConnectedServerVersion mocks base method.

func (*MockNATSConnector) ConnectedUrl

func (m *MockNATSConnector) ConnectedUrl() string

ConnectedUrl mocks base method.

func (*MockNATSConnector) EXPECT

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

func (*MockNATSConnector) JetStream

func (m *MockNATSConnector) JetStream(opts ...nats.JSOpt) (nats.JetStreamContext, error)

JetStream mocks base method.

func (*MockNATSConnector) Publish

func (m *MockNATSConnector) Publish(subject string, data []byte) error

Publish mocks base method.

func (*MockNATSConnector) PublishMsg

func (m *MockNATSConnector) PublishMsg(msg *nats.Msg) error

PublishMsg mocks base method.

func (*MockNATSConnector) QueueSubscribe

func (m *MockNATSConnector) QueueSubscribe(subject, queue string, handler nats.MsgHandler) (*nats.Subscription, error)

QueueSubscribe mocks base method.

func (*MockNATSConnector) Subscribe

func (m *MockNATSConnector) Subscribe(subject string, handler nats.MsgHandler) (*nats.Subscription, error)

Subscribe mocks base method.

type MockNATSConnectorMockRecorder

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

MockNATSConnectorMockRecorder is the mock recorder for MockNATSConnector.

func (*MockNATSConnectorMockRecorder) Close

Close indicates an expected call of Close.

func (*MockNATSConnectorMockRecorder) Connect

func (mr *MockNATSConnectorMockRecorder) Connect(url any, opts ...any) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockNATSConnectorMockRecorder) ConnectedServerVersion

func (mr *MockNATSConnectorMockRecorder) ConnectedServerVersion() *gomock.Call

ConnectedServerVersion indicates an expected call of ConnectedServerVersion.

func (*MockNATSConnectorMockRecorder) ConnectedUrl

func (mr *MockNATSConnectorMockRecorder) ConnectedUrl() *gomock.Call

ConnectedUrl indicates an expected call of ConnectedUrl.

func (*MockNATSConnectorMockRecorder) JetStream

func (mr *MockNATSConnectorMockRecorder) JetStream(opts ...any) *gomock.Call

JetStream indicates an expected call of JetStream.

func (*MockNATSConnectorMockRecorder) Publish

func (mr *MockNATSConnectorMockRecorder) Publish(subject, data any) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockNATSConnectorMockRecorder) PublishMsg

func (mr *MockNATSConnectorMockRecorder) PublishMsg(msg any) *gomock.Call

PublishMsg indicates an expected call of PublishMsg.

func (*MockNATSConnectorMockRecorder) QueueSubscribe

func (mr *MockNATSConnectorMockRecorder) QueueSubscribe(subject, queue, handler any) *gomock.Call

QueueSubscribe indicates an expected call of QueueSubscribe.

func (*MockNATSConnectorMockRecorder) Subscribe

func (mr *MockNATSConnectorMockRecorder) Subscribe(subject, handler any) *gomock.Call

Subscribe indicates an expected call of Subscribe.

Jump to

Keyboard shortcuts

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