mock

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNATSPopulator

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

MockNATSPopulator is a mock of NATSPopulator interface.

func NewMockNATSPopulator

func NewMockNATSPopulator(ctrl *gomock.Controller) *MockNATSPopulator

NewMockNATSPopulator creates a new mock instance.

func (*MockNATSPopulator) EXPECT

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

func (*MockNATSPopulator) Publish

func (m *MockNATSPopulator) Publish(subj string, msg []byte, headers ...string) error

Publish mocks base method.

func (*MockNATSPopulator) PublishWithContext

func (m *MockNATSPopulator) PublishWithContext(ctx context.Context, subj string, msg []byte, headers ...string) error

PublishWithContext mocks base method.

func (*MockNATSPopulator) Requester

func (m *MockNATSPopulator) Requester(subj string, data []byte, timeout time.Duration, headers ...string) ([]byte, error)

Requester mocks base method.

func (*MockNATSPopulator) RequesterWithContext

func (m *MockNATSPopulator) RequesterWithContext(ctx context.Context, subj string, msg []byte, headers ...string) ([]byte, error)

RequesterWithContext mocks base method.

type MockNATSPopulatorMockRecorder

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

MockNATSPopulatorMockRecorder is the mock recorder for MockNATSPopulator.

func (*MockNATSPopulatorMockRecorder) Publish

func (mr *MockNATSPopulatorMockRecorder) Publish(subj, msg any, headers ...any) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockNATSPopulatorMockRecorder) PublishWithContext

func (mr *MockNATSPopulatorMockRecorder) PublishWithContext(ctx, subj, msg any, headers ...any) *gomock.Call

PublishWithContext indicates an expected call of PublishWithContext.

func (*MockNATSPopulatorMockRecorder) Requester

func (mr *MockNATSPopulatorMockRecorder) Requester(subj, data, timeout any, headers ...any) *gomock.Call

Requester indicates an expected call of Requester.

func (*MockNATSPopulatorMockRecorder) RequesterWithContext

func (mr *MockNATSPopulatorMockRecorder) RequesterWithContext(ctx, subj, msg any, headers ...any) *gomock.Call

RequesterWithContext indicates an expected call of RequesterWithContext.

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

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

func (*MockNATSPublisher) Publish

func (m *MockNATSPublisher) Publish(subj string, msg []byte, headers ...string) error

Publish mocks base method.

func (*MockNATSPublisher) PublishWithContext

func (m *MockNATSPublisher) PublishWithContext(ctx context.Context, subj string, msg []byte, headers ...string) error

PublishWithContext mocks base method.

type MockNATSPublisherMockRecorder

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

MockNATSPublisherMockRecorder is the mock recorder for MockNATSPublisher.

func (*MockNATSPublisherMockRecorder) Publish

func (mr *MockNATSPublisherMockRecorder) Publish(subj, msg any, headers ...any) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockNATSPublisherMockRecorder) PublishWithContext

func (mr *MockNATSPublisherMockRecorder) PublishWithContext(ctx, subj, msg any, headers ...any) *gomock.Call

PublishWithContext indicates an expected call of PublishWithContext.

type MockNATSRequester

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

MockNATSRequester is a mock of NATSRequester interface.

func NewMockNATSRequester

func NewMockNATSRequester(ctrl *gomock.Controller) *MockNATSRequester

NewMockNATSRequester creates a new mock instance.

func (*MockNATSRequester) EXPECT

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

func (*MockNATSRequester) Requester

func (m *MockNATSRequester) Requester(subj string, data []byte, timeout time.Duration, headers ...string) ([]byte, error)

Requester mocks base method.

func (*MockNATSRequester) RequesterWithContext

func (m *MockNATSRequester) RequesterWithContext(ctx context.Context, subj string, msg []byte, headers ...string) ([]byte, error)

RequesterWithContext mocks base method.

type MockNATSRequesterMockRecorder

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

MockNATSRequesterMockRecorder is the mock recorder for MockNATSRequester.

func (*MockNATSRequesterMockRecorder) Requester

func (mr *MockNATSRequesterMockRecorder) Requester(subj, data, timeout any, headers ...any) *gomock.Call

Requester indicates an expected call of Requester.

func (*MockNATSRequesterMockRecorder) RequesterWithContext

func (mr *MockNATSRequesterMockRecorder) RequesterWithContext(ctx, subj, msg any, headers ...any) *gomock.Call

RequesterWithContext indicates an expected call of RequesterWithContext.

type MockStorage

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

MockStorage is a mock of Storage interface.

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) Add

func (m *MockStorage) Add(group, id string) error

Add mocks base method.

func (*MockStorage) Delete

func (m *MockStorage) Delete(group, id string) error

Delete mocks base method.

func (*MockStorage) DeleteByID

func (m *MockStorage) DeleteByID(id string) error

DeleteByID mocks base method.

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) GetIDs

func (m *MockStorage) GetIDs() []string

GetIDs mocks base method.

func (*MockStorage) GetKeys

func (m *MockStorage) GetKeys(group string) []string

GetKeys mocks base method.

func (*MockStorage) Size

func (m *MockStorage) Size(group string) int

Size mocks base method.

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) Add

func (mr *MockStorageMockRecorder) Add(group, id any) *gomock.Call

Add indicates an expected call of Add.

func (*MockStorageMockRecorder) Delete

func (mr *MockStorageMockRecorder) Delete(group, id any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockStorageMockRecorder) DeleteByID

func (mr *MockStorageMockRecorder) DeleteByID(id any) *gomock.Call

DeleteByID indicates an expected call of DeleteByID.

func (*MockStorageMockRecorder) GetIDs

func (mr *MockStorageMockRecorder) GetIDs() *gomock.Call

GetIDs indicates an expected call of GetIDs.

func (*MockStorageMockRecorder) GetKeys

func (mr *MockStorageMockRecorder) GetKeys(group any) *gomock.Call

GetKeys indicates an expected call of GetKeys.

func (*MockStorageMockRecorder) Size

func (mr *MockStorageMockRecorder) Size(group any) *gomock.Call

Size indicates an expected call of Size.

Jump to

Keyboard shortcuts

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