Documentation
¶
Overview ¶
Package mocks provides mock implementations for testing.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockMsg
- func (m *MockMsg) Ack() error
- func (m *MockMsg) Data() []byte
- func (m *MockMsg) DoubleAck(arg0 context.Context) error
- func (m *MockMsg) EXPECT() *MockMsgMockRecorder
- func (m *MockMsg) Headers() nats.Header
- func (m *MockMsg) InProgress() error
- func (m *MockMsg) Metadata() (*jetstream.MsgMetadata, error)
- func (m *MockMsg) Nak() error
- func (m *MockMsg) NakWithDelay(delay time.Duration) error
- func (m *MockMsg) Reply() string
- func (m *MockMsg) Subject() string
- func (m *MockMsg) Term() error
- func (m *MockMsg) TermWithReason(reason string) error
- type MockMsgMockRecorder
- func (mr *MockMsgMockRecorder) Ack() *gomock.Call
- func (mr *MockMsgMockRecorder) Data() *gomock.Call
- func (mr *MockMsgMockRecorder) DoubleAck(arg0 any) *gomock.Call
- func (mr *MockMsgMockRecorder) Headers() *gomock.Call
- func (mr *MockMsgMockRecorder) InProgress() *gomock.Call
- func (mr *MockMsgMockRecorder) Metadata() *gomock.Call
- func (mr *MockMsgMockRecorder) Nak() *gomock.Call
- func (mr *MockMsgMockRecorder) NakWithDelay(delay any) *gomock.Call
- func (mr *MockMsgMockRecorder) Reply() *gomock.Call
- func (mr *MockMsgMockRecorder) Subject() *gomock.Call
- func (mr *MockMsgMockRecorder) Term() *gomock.Call
- func (mr *MockMsgMockRecorder) TermWithReason(reason any) *gomock.Call
- type MockNATSClient
- func (m *MockNATSClient) EXPECT() *MockNATSClientMockRecorder
- func (m *MockNATSClient) KVDelete(ctx context.Context, bucket, key string) error
- func (m *MockNATSClient) KVGet(ctx context.Context, bucket, key string) (jetstream.KeyValueEntry, error)
- func (m *MockNATSClient) KVPut(ctx context.Context, bucket, key string, value []byte) (uint64, error)
- func (m *MockNATSClient) PublishCore(ctx context.Context, subject string, data []byte) error
- func (m *MockNATSClient) Subscribe(ctx context.Context, subject string, handler client.MsgHandler) (*nats.Subscription, error)
- type MockNATSClientMockRecorder
- func (mr *MockNATSClientMockRecorder) KVDelete(ctx, bucket, key any) *gomock.Call
- func (mr *MockNATSClientMockRecorder) KVGet(ctx, bucket, key any) *gomock.Call
- func (mr *MockNATSClientMockRecorder) KVPut(ctx, bucket, key, value any) *gomock.Call
- func (mr *MockNATSClientMockRecorder) PublishCore(ctx, subject, data any) *gomock.Call
- func (mr *MockNATSClientMockRecorder) Subscribe(ctx, subject, handler any) *gomock.Call
- type MockObjectReader
- type MockObjectReaderMockRecorder
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) EXPECT ¶
func (m *MockMsg) EXPECT() *MockMsgMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMsg) Metadata ¶
func (m *MockMsg) Metadata() (*jetstream.MsgMetadata, error)
Metadata mocks base method.
func (*MockMsg) NakWithDelay ¶
NakWithDelay mocks base method.
func (*MockMsg) TermWithReason ¶
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
func (m *MockNATSClient) EXPECT() *MockNATSClientMockRecorder
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
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.
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
func (m *MockObjectReader) EXPECT() *MockObjectReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockObjectReader) ObjectGetBytes ¶ added in v0.3.0
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.