mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 4 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, opts ...user.QOption) (int64, error)

Count mocks base method.

func (*MockRepository) Create

func (m *MockRepository) Create(ctx context.Context, arg1 *user.User, password string) (uint64, error)

Create mocks base method.

func (*MockRepository) CreateResetPassword

func (m *MockRepository) CreateResetPassword(ctx context.Context, userID uint64) (*user.UserPasswordReset, error)

CreateResetPassword mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(ctx context.Context, id uint64) error

Delete mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) EliminateResetPassword

func (m *MockRepository) EliminateResetPassword(ctx context.Context, userID uint64) error

EliminateResetPassword mocks base method.

func (*MockRepository) FetchList

func (m *MockRepository) FetchList(ctx context.Context, opts ...user.QOption) ([]*user.User, error)

FetchList mocks base method.

func (*MockRepository) Get

func (m *MockRepository) Get(ctx context.Context, id uint64) (*user.User, error)

Get mocks base method.

func (*MockRepository) GetByEmail

func (m *MockRepository) GetByEmail(ctx context.Context, email string) (*user.User, error)

GetByEmail mocks base method.

func (*MockRepository) GetByPassword

func (m *MockRepository) GetByPassword(ctx context.Context, email, password string) (*user.User, error)

GetByPassword mocks base method.

func (*MockRepository) GetResetPassword

func (m *MockRepository) GetResetPassword(ctx context.Context, userID uint64, token string) (*user.UserPasswordReset, error)

GetResetPassword mocks base method.

func (*MockRepository) SetPassword

func (m *MockRepository) SetPassword(ctx context.Context, arg1 *user.User, password string) error

SetPassword mocks base method.

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, arg1 *user.User) error

Update 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 any, opts ...any) *gomock.Call

Count indicates an expected call of Count.

func (*MockRepositoryMockRecorder) Create

func (mr *MockRepositoryMockRecorder) Create(ctx, arg1, password any) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) CreateResetPassword

func (mr *MockRepositoryMockRecorder) CreateResetPassword(ctx, userID any) *gomock.Call

CreateResetPassword indicates an expected call of CreateResetPassword.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(ctx, id any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) EliminateResetPassword

func (mr *MockRepositoryMockRecorder) EliminateResetPassword(ctx, userID any) *gomock.Call

EliminateResetPassword indicates an expected call of EliminateResetPassword.

func (*MockRepositoryMockRecorder) FetchList

func (mr *MockRepositoryMockRecorder) FetchList(ctx any, opts ...any) *gomock.Call

FetchList indicates an expected call of FetchList.

func (*MockRepositoryMockRecorder) Get

func (mr *MockRepositoryMockRecorder) Get(ctx, id any) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) GetByEmail

func (mr *MockRepositoryMockRecorder) GetByEmail(ctx, email any) *gomock.Call

GetByEmail indicates an expected call of GetByEmail.

func (*MockRepositoryMockRecorder) GetByPassword

func (mr *MockRepositoryMockRecorder) GetByPassword(ctx, email, password any) *gomock.Call

GetByPassword indicates an expected call of GetByPassword.

func (*MockRepositoryMockRecorder) GetResetPassword

func (mr *MockRepositoryMockRecorder) GetResetPassword(ctx, userID, token any) *gomock.Call

GetResetPassword indicates an expected call of GetResetPassword.

func (*MockRepositoryMockRecorder) SetPassword

func (mr *MockRepositoryMockRecorder) SetPassword(ctx, arg1, password any) *gomock.Call

SetPassword indicates an expected call of SetPassword.

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(ctx, arg1 any) *gomock.Call

Update indicates an expected call of Update.

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, opts ...user.QOption) (int64, error)

Count mocks base method.

func (*MockUsecase) Create added in v0.4.0

func (m *MockUsecase) Create(ctx context.Context, arg1 *user.User, password string) (uint64, error)

Create mocks base method.

func (*MockUsecase) Delete

func (m *MockUsecase) Delete(ctx context.Context, id 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, opts ...user.QOption) ([]*user.User, error)

FetchList mocks base method.

func (*MockUsecase) Get

func (m *MockUsecase) Get(ctx context.Context, id uint64) (*user.User, error)

Get mocks base method.

func (*MockUsecase) GetByEmail

func (m *MockUsecase) GetByEmail(ctx context.Context, email string) (*user.User, error)

GetByEmail mocks base method.

func (*MockUsecase) GetByPassword

func (m *MockUsecase) GetByPassword(ctx context.Context, email, password string) (*user.User, error)

GetByPassword mocks base method.

func (*MockUsecase) ResetPassword

func (m *MockUsecase) ResetPassword(ctx context.Context, email string) (*user.UserPasswordReset, *user.User, error)

ResetPassword mocks base method.

func (*MockUsecase) SetPassword

func (m *MockUsecase) SetPassword(ctx context.Context, arg1 *user.User, password string) error

SetPassword mocks base method.

func (*MockUsecase) Update

func (m *MockUsecase) Update(ctx context.Context, arg1 *user.User) error

Update mocks base method.

func (*MockUsecase) UpdatePassword

func (m *MockUsecase) UpdatePassword(ctx context.Context, token, email, password string) error

UpdatePassword 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 any, opts ...any) *gomock.Call

Count indicates an expected call of Count.

func (*MockUsecaseMockRecorder) Create added in v0.4.0

func (mr *MockUsecaseMockRecorder) Create(ctx, arg1, password any) *gomock.Call

Create indicates an expected call of Create.

func (*MockUsecaseMockRecorder) Delete

func (mr *MockUsecaseMockRecorder) Delete(ctx, id any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUsecaseMockRecorder) FetchList

func (mr *MockUsecaseMockRecorder) FetchList(ctx any, opts ...any) *gomock.Call

FetchList indicates an expected call of FetchList.

func (*MockUsecaseMockRecorder) Get

func (mr *MockUsecaseMockRecorder) Get(ctx, id any) *gomock.Call

Get indicates an expected call of Get.

func (*MockUsecaseMockRecorder) GetByEmail

func (mr *MockUsecaseMockRecorder) GetByEmail(ctx, email any) *gomock.Call

GetByEmail indicates an expected call of GetByEmail.

func (*MockUsecaseMockRecorder) GetByPassword

func (mr *MockUsecaseMockRecorder) GetByPassword(ctx, email, password any) *gomock.Call

GetByPassword indicates an expected call of GetByPassword.

func (*MockUsecaseMockRecorder) ResetPassword

func (mr *MockUsecaseMockRecorder) ResetPassword(ctx, email any) *gomock.Call

ResetPassword indicates an expected call of ResetPassword.

func (*MockUsecaseMockRecorder) SetPassword

func (mr *MockUsecaseMockRecorder) SetPassword(ctx, arg1, password any) *gomock.Call

SetPassword indicates an expected call of SetPassword.

func (*MockUsecaseMockRecorder) Update

func (mr *MockUsecaseMockRecorder) Update(ctx, arg1 any) *gomock.Call

Update indicates an expected call of Update.

func (*MockUsecaseMockRecorder) UpdatePassword

func (mr *MockUsecaseMockRecorder) UpdatePassword(ctx, token, email, password any) *gomock.Call

UpdatePassword indicates an expected call of UpdatePassword.

Jump to

Keyboard shortcuts

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