mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 4 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 MockLifecycle

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

MockLifecycle is a mock of Lifecycle interface.

func NewMockLifecycle

func NewMockLifecycle(ctrl *gomock.Controller) *MockLifecycle

NewMockLifecycle creates a new mock instance.

func (*MockLifecycle) EXPECT

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

func (*MockLifecycle) Start

func (m *MockLifecycle) Start()

Start mocks base method.

func (*MockLifecycle) Stop

func (m *MockLifecycle) Stop(ctx context.Context)

Stop mocks base method.

type MockLifecycleMockRecorder

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

MockLifecycleMockRecorder is the mock recorder for MockLifecycle.

func (*MockLifecycleMockRecorder) Start

func (mr *MockLifecycleMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockLifecycleMockRecorder) Stop

func (mr *MockLifecycleMockRecorder) Stop(ctx any) *gomock.Call

Stop indicates an expected call of Stop.

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) 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) 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) 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) 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