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: 7 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 MockMsg

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

MockMsg is a mock of Msg interface.

func NewMockMsg

func NewMockMsg(ctrl *gomock.Controller) *MockMsg

NewMockMsg creates a new mock instance.

func (*MockMsg) Ack

func (m *MockMsg) Ack() error

Ack mocks base method.

func (*MockMsg) Data

func (m *MockMsg) Data() []byte

Data mocks base method.

func (*MockMsg) DoubleAck

func (m *MockMsg) DoubleAck(arg0 context.Context) error

DoubleAck mocks base method.

func (*MockMsg) EXPECT

func (m *MockMsg) EXPECT() *MockMsgMockRecorder

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

func (*MockMsg) Headers

func (m *MockMsg) Headers() nats.Header

Headers mocks base method.

func (*MockMsg) InProgress

func (m *MockMsg) InProgress() error

InProgress mocks base method.

func (*MockMsg) Metadata

func (m *MockMsg) Metadata() (*jetstream.MsgMetadata, error)

Metadata mocks base method.

func (*MockMsg) Nak

func (m *MockMsg) Nak() error

Nak mocks base method.

func (*MockMsg) NakWithDelay

func (m *MockMsg) NakWithDelay(delay time.Duration) error

NakWithDelay mocks base method.

func (*MockMsg) Reply

func (m *MockMsg) Reply() string

Reply mocks base method.

func (*MockMsg) Subject

func (m *MockMsg) Subject() string

Subject mocks base method.

func (*MockMsg) Term

func (m *MockMsg) Term() error

Term mocks base method.

func (*MockMsg) TermWithReason

func (m *MockMsg) TermWithReason(reason string) error

TermWithReason mocks base method.

type MockMsgMockRecorder

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

MockMsgMockRecorder is the mock recorder for MockMsg.

func (*MockMsgMockRecorder) Ack

func (mr *MockMsgMockRecorder) Ack() *gomock.Call

Ack indicates an expected call of Ack.

func (*MockMsgMockRecorder) Data

func (mr *MockMsgMockRecorder) Data() *gomock.Call

Data indicates an expected call of Data.

func (*MockMsgMockRecorder) DoubleAck

func (mr *MockMsgMockRecorder) DoubleAck(arg0 any) *gomock.Call

DoubleAck indicates an expected call of DoubleAck.

func (*MockMsgMockRecorder) Headers

func (mr *MockMsgMockRecorder) Headers() *gomock.Call

Headers indicates an expected call of Headers.

func (*MockMsgMockRecorder) InProgress

func (mr *MockMsgMockRecorder) InProgress() *gomock.Call

InProgress indicates an expected call of InProgress.

func (*MockMsgMockRecorder) Metadata

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

Metadata indicates an expected call of Metadata.

func (*MockMsgMockRecorder) Nak

func (mr *MockMsgMockRecorder) Nak() *gomock.Call

Nak indicates an expected call of Nak.

func (*MockMsgMockRecorder) NakWithDelay

func (mr *MockMsgMockRecorder) NakWithDelay(delay any) *gomock.Call

NakWithDelay indicates an expected call of NakWithDelay.

func (*MockMsgMockRecorder) Reply

func (mr *MockMsgMockRecorder) Reply() *gomock.Call

Reply indicates an expected call of Reply.

func (*MockMsgMockRecorder) Subject

func (mr *MockMsgMockRecorder) Subject() *gomock.Call

Subject indicates an expected call of Subject.

func (*MockMsgMockRecorder) Term

func (mr *MockMsgMockRecorder) Term() *gomock.Call

Term indicates an expected call of Term.

func (*MockMsgMockRecorder) TermWithReason

func (mr *MockMsgMockRecorder) TermWithReason(reason any) *gomock.Call

TermWithReason indicates an expected call of TermWithReason.

type MockNATSClient added in v0.3.0

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

MockNATSClient is a mock of NATSClient interface.

func NewMockNATSClient added in v0.3.0

func NewMockNATSClient(ctrl *gomock.Controller) *MockNATSClient

NewMockNATSClient creates a new mock instance.

func (*MockNATSClient) EXPECT added in v0.3.0

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

func (*MockNATSClient) KVDelete added in v0.3.0

func (m *MockNATSClient) KVDelete(ctx context.Context, bucket, key string) error

KVDelete mocks base method.

func (*MockNATSClient) KVGet added in v0.3.0

func (m *MockNATSClient) KVGet(ctx context.Context, bucket, key string) (jetstream.KeyValueEntry, error)

KVGet mocks base method.

func (*MockNATSClient) KVPut added in v0.3.0

func (m *MockNATSClient) KVPut(ctx context.Context, bucket, key string, value []byte) (uint64, error)

KVPut mocks base method.

func (*MockNATSClient) PublishCore added in v0.3.0

func (m *MockNATSClient) PublishCore(ctx context.Context, subject string, data []byte) error

PublishCore mocks base method.

func (*MockNATSClient) Subscribe added in v0.3.0

func (m *MockNATSClient) Subscribe(ctx context.Context, subject string, handler client.MsgHandler) (*nats.Subscription, error)

Subscribe mocks base method.

type MockNATSClientMockRecorder added in v0.3.0

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

MockNATSClientMockRecorder is the mock recorder for MockNATSClient.

func (*MockNATSClientMockRecorder) KVDelete added in v0.3.0

func (mr *MockNATSClientMockRecorder) KVDelete(ctx, bucket, key any) *gomock.Call

KVDelete indicates an expected call of KVDelete.

func (*MockNATSClientMockRecorder) KVGet added in v0.3.0

func (mr *MockNATSClientMockRecorder) KVGet(ctx, bucket, key any) *gomock.Call

KVGet indicates an expected call of KVGet.

func (*MockNATSClientMockRecorder) KVPut added in v0.3.0

func (mr *MockNATSClientMockRecorder) KVPut(ctx, bucket, key, value any) *gomock.Call

KVPut indicates an expected call of KVPut.

func (*MockNATSClientMockRecorder) PublishCore added in v0.3.0

func (mr *MockNATSClientMockRecorder) PublishCore(ctx, subject, data any) *gomock.Call

PublishCore indicates an expected call of PublishCore.

func (*MockNATSClientMockRecorder) Subscribe added in v0.3.0

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

Subscribe indicates an expected call of Subscribe.

type MockObjectReader added in v0.3.0

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

MockObjectReader is a mock of ObjectReader interface.

func NewMockObjectReader added in v0.3.0

func NewMockObjectReader(ctrl *gomock.Controller) *MockObjectReader

NewMockObjectReader creates a new mock instance.

func (*MockObjectReader) EXPECT added in v0.3.0

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

func (*MockObjectReader) ObjectGetBytes added in v0.3.0

func (m *MockObjectReader) ObjectGetBytes(ctx context.Context, bucket, name string) ([]byte, error)

ObjectGetBytes mocks base method.

func (*MockObjectReader) ObjectInfo added in v0.3.0

func (m *MockObjectReader) ObjectInfo(ctx context.Context, bucket, name string) (*jetstream.ObjectInfo, error)

ObjectInfo mocks base method.

type MockObjectReaderMockRecorder added in v0.3.0

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

MockObjectReaderMockRecorder is the mock recorder for MockObjectReader.

func (*MockObjectReaderMockRecorder) ObjectGetBytes added in v0.3.0

func (mr *MockObjectReaderMockRecorder) ObjectGetBytes(ctx, bucket, name any) *gomock.Call

ObjectGetBytes indicates an expected call of ObjectGetBytes.

func (*MockObjectReaderMockRecorder) ObjectInfo added in v0.3.0

func (mr *MockObjectReaderMockRecorder) ObjectInfo(ctx, bucket, name any) *gomock.Call

ObjectInfo indicates an expected call of ObjectInfo.

Jump to

Keyboard shortcuts

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