mocks

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 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.Users, error)

GetUserByEmail mocks base method.

func (*MockRepository) GetUserByID

func (m *MockRepository) GetUserByID(arg0 context.Context, arg1 int64, arg2 ...entities.LockingOpt) (entities.Users, 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.Users) (int64, error)

SaveNewUser mocks base method.

func (*MockRepository) UpdateUserByID

func (m *MockRepository) UpdateUserByID(arg0 context.Context, arg1 entities.UpdateUsers) 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 interface{}) *gomock.Call

Atomic indicates an expected call of Atomic.

func (*MockRepositoryMockRecorder) GetUserByEmail added in v0.0.3

func (mr *MockRepositoryMockRecorder) GetUserByEmail(arg0, arg1 interface{}) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockRepositoryMockRecorder) GetUserByID

func (mr *MockRepositoryMockRecorder) GetUserByID(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockRepositoryMockRecorder) IsUserExist added in v0.0.3

func (mr *MockRepositoryMockRecorder) IsUserExist(ctx, email interface{}) *gomock.Call

IsUserExist indicates an expected call of IsUserExist.

func (*MockRepositoryMockRecorder) SaveNewUser

func (mr *MockRepositoryMockRecorder) SaveNewUser(arg0, arg1 interface{}) *gomock.Call

SaveNewUser indicates an expected call of SaveNewUser.

func (*MockRepositoryMockRecorder) UpdateUserByID

func (mr *MockRepositoryMockRecorder) UpdateUserByID(arg0, arg1 interface{}) *gomock.Call

UpdateUserByID indicates an expected call of UpdateUserByID.

func (*MockRepositoryMockRecorder) UpdateUserStatusByID

func (mr *MockRepositoryMockRecorder) UpdateUserStatusByID(arg0, arg1 interface{}) *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, int, 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 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUsecaseMockRecorder) Detail added in v0.0.3

func (mr *MockUsecaseMockRecorder) Detail(ctx, id interface{}) *gomock.Call

Detail indicates an expected call of Detail.

func (*MockUsecaseMockRecorder) Login added in v0.0.3

func (mr *MockUsecaseMockRecorder) Login(ctx, request interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockUsecaseMockRecorder) PartialUpdate added in v0.0.3

func (mr *MockUsecaseMockRecorder) PartialUpdate(ctx, data interface{}) *gomock.Call

PartialUpdate indicates an expected call of PartialUpdate.

func (*MockUsecaseMockRecorder) UpdateStatus added in v0.0.3

func (mr *MockUsecaseMockRecorder) UpdateStatus(ctx, req interface{}) *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