mocks

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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 MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) Count

func (m *MockRepository) Count(ctx context.Context, filter *option.Filter) (int64, error)

Count mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(ctx context.Context, name string, otype model.OptionType, targetID uint64) error

Delete mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) FetchList

func (m *MockRepository) FetchList(ctx context.Context, filter *option.Filter, order *option.ListOrder, pagination *repository.Pagination) ([]*model.Option, error)

FetchList mocks base method.

func (*MockRepository) Get

func (m *MockRepository) Get(ctx context.Context, name string, otype model.OptionType, targetID uint64) (*model.Option, error)

Get mocks base method.

func (*MockRepository) Set

func (m *MockRepository) Set(ctx context.Context, opt *model.Option) error

Set mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Count

func (mr *MockRepositoryMockRecorder) Count(ctx, filter interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(ctx, name, otype, targetID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) FetchList

func (mr *MockRepositoryMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call

FetchList indicates an expected call of FetchList.

func (*MockRepositoryMockRecorder) Get

func (mr *MockRepositoryMockRecorder) Get(ctx, name, otype, targetID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) Set

func (mr *MockRepositoryMockRecorder) Set(ctx, opt interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockUsecase

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

MockUsecase is a mock of Usecase interface.

func NewMockUsecase

func NewMockUsecase(ctrl *gomock.Controller) *MockUsecase

NewMockUsecase creates a new mock instance.

func (*MockUsecase) Count

func (m *MockUsecase) Count(ctx context.Context, filter *option.Filter) (int64, error)

Count mocks base method.

func (*MockUsecase) Delete

func (m *MockUsecase) Delete(ctx context.Context, name string, otype model.OptionType, targetID uint64) error

Delete mocks base method.

func (*MockUsecase) EXPECT

func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder

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

func (*MockUsecase) FetchList

func (m *MockUsecase) FetchList(ctx context.Context, filter *option.Filter, order *option.ListOrder, pagination *repository.Pagination) ([]*model.Option, error)

FetchList mocks base method.

func (*MockUsecase) Get

func (m *MockUsecase) Get(ctx context.Context, name string, otype model.OptionType, targetID uint64) (*model.Option, error)

Get mocks base method.

func (*MockUsecase) Set

func (m *MockUsecase) Set(ctx context.Context, opt *model.Option) error

Set mocks base method.

type MockUsecaseMockRecorder

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

MockUsecaseMockRecorder is the mock recorder for MockUsecase.

func (*MockUsecaseMockRecorder) Count

func (mr *MockUsecaseMockRecorder) Count(ctx, filter interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockUsecaseMockRecorder) Delete

func (mr *MockUsecaseMockRecorder) Delete(ctx, name, otype, targetID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUsecaseMockRecorder) FetchList

func (mr *MockUsecaseMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call

FetchList indicates an expected call of FetchList.

func (*MockUsecaseMockRecorder) Get

func (mr *MockUsecaseMockRecorder) Get(ctx, name, otype, targetID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockUsecaseMockRecorder) Set

func (mr *MockUsecaseMockRecorder) Set(ctx, opt interface{}) *gomock.Call

Set indicates an expected call of Set.

Jump to

Keyboard shortcuts

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