mocks

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 7 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) Atomic

func (m *MockRepository) Atomic(ctx context.Context, opt *sql.TxOptions, repo func(users.Repository) error) error

Atomic mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetUserByEmail added in v0.0.3

func (m *MockRepository) GetUserByEmail(arg0 context.Context, arg1 string) (entities.User, error)

GetUserByEmail mocks base method.

func (*MockRepository) GetUserByID

func (m *MockRepository) GetUserByID(arg0 context.Context, arg1 int64, arg2 ...entities.LockingOpt) (entities.User, error)

GetUserByID mocks base method.

func (*MockRepository) IsUserExist added in v0.0.3

func (m *MockRepository) IsUserExist(ctx context.Context, email string) bool

IsUserExist mocks base method.

func (*MockRepository) SaveNewUser

func (m *MockRepository) SaveNewUser(arg0 context.Context, arg1 entities.User) (int64, error)

SaveNewUser mocks base method.

func (*MockRepository) UpdateUserByID

func (m *MockRepository) UpdateUserByID(arg0 context.Context, arg1 entities.UpdateUser) error

UpdateUserByID mocks base method.

func (*MockRepository) UpdateUserStatusByID

func (m *MockRepository) UpdateUserStatusByID(arg0 context.Context, arg1 entities.UpdateUserStatus) error

UpdateUserStatusByID mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Atomic

func (mr *MockRepositoryMockRecorder) Atomic(ctx, opt, repo any) *gomock.Call

Atomic indicates an expected call of Atomic.

func (*MockRepositoryMockRecorder) GetUserByEmail added in v0.0.3

func (mr *MockRepositoryMockRecorder) GetUserByEmail(arg0, arg1 any) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockRepositoryMockRecorder) GetUserByID

func (mr *MockRepositoryMockRecorder) GetUserByID(arg0, arg1 any, arg2 ...any) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockRepositoryMockRecorder) IsUserExist added in v0.0.3

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

IsUserExist indicates an expected call of IsUserExist.

func (*MockRepositoryMockRecorder) SaveNewUser

func (mr *MockRepositoryMockRecorder) SaveNewUser(arg0, arg1 any) *gomock.Call

SaveNewUser indicates an expected call of SaveNewUser.

func (*MockRepositoryMockRecorder) UpdateUserByID

func (mr *MockRepositoryMockRecorder) UpdateUserByID(arg0, arg1 any) *gomock.Call

UpdateUserByID indicates an expected call of UpdateUserByID.

func (*MockRepositoryMockRecorder) UpdateUserStatusByID

func (mr *MockRepositoryMockRecorder) UpdateUserStatusByID(arg0, arg1 any) *gomock.Call

UpdateUserStatusByID indicates an expected call of UpdateUserStatusByID.

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) Create added in v0.0.3

func (m *MockUsecase) Create(ctx context.Context, payload dtos.CreateUserRequest) (int64, error)

Create mocks base method.

func (*MockUsecase) Detail added in v0.0.3

Detail 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) Login added in v0.0.3

Login mocks base method.

func (*MockUsecase) PartialUpdate added in v0.0.3

func (m *MockUsecase) PartialUpdate(ctx context.Context, data dtos.UpdateUserRequest) error

PartialUpdate mocks base method.

func (*MockUsecase) UpdateStatus added in v0.0.3

func (m *MockUsecase) UpdateStatus(ctx context.Context, req dtos.UpdateUserStatusRequest) error

UpdateStatus mocks base method.

type MockUsecaseMockRecorder

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

MockUsecaseMockRecorder is the mock recorder for MockUsecase.

func (*MockUsecaseMockRecorder) Create added in v0.0.3

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

Create indicates an expected call of Create.

func (*MockUsecaseMockRecorder) Detail added in v0.0.3

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

Detail indicates an expected call of Detail.

func (*MockUsecaseMockRecorder) Login added in v0.0.3

func (mr *MockUsecaseMockRecorder) Login(ctx, request any) *gomock.Call

Login indicates an expected call of Login.

func (*MockUsecaseMockRecorder) PartialUpdate added in v0.0.3

func (mr *MockUsecaseMockRecorder) PartialUpdate(ctx, data any) *gomock.Call

PartialUpdate indicates an expected call of PartialUpdate.

func (*MockUsecaseMockRecorder) UpdateStatus added in v0.0.3

func (mr *MockUsecaseMockRecorder) UpdateStatus(ctx, req any) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

Jump to

Keyboard shortcuts

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