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 MockNATSPublisher
- type MockNATSPublisherMockRecorder
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 MockNATSPublisher ¶
type MockNATSPublisher struct {
// contains filtered or unexported fields
}
MockNATSPublisher is a mock of NATSPublisher interface.
func NewMockNATSPublisher ¶
func NewMockNATSPublisher(ctrl *gomock.Controller) *MockNATSPublisher
NewMockNATSPublisher creates a new mock instance.
func (*MockNATSPublisher) EXPECT ¶
func (m *MockNATSPublisher) EXPECT() *MockNATSPublisherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNATSPublisher) PublishCore ¶
func (m *MockNATSPublisher) PublishCore(subject string, data []byte) error
PublishCore mocks base method.
func (*MockNATSPublisher) Subscribe ¶
func (m *MockNATSPublisher) Subscribe(subject string, handler nats.MsgHandler) (*nats.Subscription, error)
Subscribe mocks base method.
type MockNATSPublisherMockRecorder ¶
type MockNATSPublisherMockRecorder struct {
// contains filtered or unexported fields
}
MockNATSPublisherMockRecorder is the mock recorder for MockNATSPublisher.
func (*MockNATSPublisherMockRecorder) PublishCore ¶
func (mr *MockNATSPublisherMockRecorder) PublishCore(subject, data any) *gomock.Call
PublishCore indicates an expected call of PublishCore.