mock_domain

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_domain is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCache

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

MockCache is a mock of Cache interface.

func NewMockCache

func NewMockCache(ctrl *gomock.Controller) *MockCache

NewMockCache creates a new mock instance.

func (*MockCache) Delete

func (m *MockCache) Delete(ctx context.Context, key string) error

Delete mocks base method.

func (*MockCache) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

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

func (*MockCache) Expire

func (m *MockCache) Expire(ctx context.Context, key string, minitue time.Duration) error

Expire mocks base method.

func (*MockCache) Load

func (m *MockCache) Load(ctx context.Context, key string) (string, error)

Load mocks base method.

func (*MockCache) Publish

func (m *MockCache) Publish(ctx context.Context, channel, palyload string) error

Publish mocks base method.

func (*MockCache) Save

func (m *MockCache) Save(ctx context.Context, key, value string, minute time.Duration) error

Save mocks base method.

func (*MockCache) Subscribe

func (m *MockCache) Subscribe(ctx *gin.Context, channel string) (<-chan string, error)

Subscribe mocks base method.

type MockCacheMockRecorder

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

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder) Delete

func (mr *MockCacheMockRecorder) Delete(ctx, key any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCacheMockRecorder) Expire

func (mr *MockCacheMockRecorder) Expire(ctx, key, minitue any) *gomock.Call

Expire indicates an expected call of Expire.

func (*MockCacheMockRecorder) Load

func (mr *MockCacheMockRecorder) Load(ctx, key any) *gomock.Call

Load indicates an expected call of Load.

func (*MockCacheMockRecorder) Publish

func (mr *MockCacheMockRecorder) Publish(ctx, channel, palyload any) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockCacheMockRecorder) Save

func (mr *MockCacheMockRecorder) Save(ctx, key, value, minute any) *gomock.Call

Save indicates an expected call of Save.

func (*MockCacheMockRecorder) Subscribe

func (mr *MockCacheMockRecorder) Subscribe(ctx, channel any) *gomock.Call

Subscribe indicates an expected call of Subscribe.

type MockNotificationRepo

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

MockNotificationRepo is a mock of NotificationRepo interface.

func NewMockNotificationRepo

func NewMockNotificationRepo(ctrl *gomock.Controller) *MockNotificationRepo

NewMockNotificationRepo creates a new mock instance.

func (*MockNotificationRepo) CheckNotification

func (m *MockNotificationRepo) CheckNotification(ctx context.Context, db repository.Execer, uid model.UserID, nid model.NotificationID) error

CheckNotification mocks base method.

func (*MockNotificationRepo) CreateNotification

CreateNotification mocks base method.

func (*MockNotificationRepo) EXPECT

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

func (*MockNotificationRepo) GetByToUserByStartIdOrderByLatest

func (m *MockNotificationRepo) GetByToUserByStartIdOrderByLatest(ctx context.Context, db repository.Queryer, uid model.UserID, startID model.NotificationID, size int, columns ...string) ([]*customentities.Notification, error)

GetByToUserByStartIdOrderByLatest mocks base method.

func (*MockNotificationRepo) GetByToUserOrderByLatest

func (m *MockNotificationRepo) GetByToUserOrderByLatest(ctx context.Context, db repository.Queryer, uid model.UserID, size int, columns ...string) ([]*customentities.Notification, error)

GetByToUserOrderByLatest mocks base method.

func (*MockNotificationRepo) GetNotificationByID

GetNotificationByID mocks base method.

func (*MockNotificationRepo) GetUncheckedNotificationCount

func (m *MockNotificationRepo) GetUncheckedNotificationCount(ctx context.Context, db repository.Queryer, uid model.UserID) (int, error)

GetUncheckedNotificationCount mocks base method.

type MockNotificationRepoMockRecorder

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

MockNotificationRepoMockRecorder is the mock recorder for MockNotificationRepo.

func (*MockNotificationRepoMockRecorder) CheckNotification

func (mr *MockNotificationRepoMockRecorder) CheckNotification(ctx, db, uid, nid any) *gomock.Call

CheckNotification indicates an expected call of CheckNotification.

func (*MockNotificationRepoMockRecorder) CreateNotification

func (mr *MockNotificationRepoMockRecorder) CreateNotification(ctx, db, notification any) *gomock.Call

CreateNotification indicates an expected call of CreateNotification.

func (*MockNotificationRepoMockRecorder) GetByToUserByStartIdOrderByLatest

func (mr *MockNotificationRepoMockRecorder) GetByToUserByStartIdOrderByLatest(ctx, db, uid, startID, size any, columns ...any) *gomock.Call

GetByToUserByStartIdOrderByLatest indicates an expected call of GetByToUserByStartIdOrderByLatest.

func (*MockNotificationRepoMockRecorder) GetByToUserOrderByLatest

func (mr *MockNotificationRepoMockRecorder) GetByToUserOrderByLatest(ctx, db, uid, size any, columns ...any) *gomock.Call

GetByToUserOrderByLatest indicates an expected call of GetByToUserOrderByLatest.

func (*MockNotificationRepoMockRecorder) GetNotificationByID

func (mr *MockNotificationRepoMockRecorder) GetNotificationByID(ctx, db, uid, nid any) *gomock.Call

GetNotificationByID indicates an expected call of GetNotificationByID.

func (*MockNotificationRepoMockRecorder) GetUncheckedNotificationCount

func (mr *MockNotificationRepoMockRecorder) GetUncheckedNotificationCount(ctx, db, uid any) *gomock.Call

GetUncheckedNotificationCount indicates an expected call of GetUncheckedNotificationCount.

type MockPointRepo

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

MockPointRepo is a mock of PointRepo interface.

func NewMockPointRepo

func NewMockPointRepo(ctrl *gomock.Controller) *MockPointRepo

NewMockPointRepo creates a new mock instance.

func (*MockPointRepo) EXPECT

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

func (*MockPointRepo) RegisterPointTransaction

func (m *MockPointRepo) RegisterPointTransaction(ctx context.Context, db repository.Execer, fromUserID, toUserId model.UserID, sendPoint int) error

RegisterPointTransaction mocks base method.

func (*MockPointRepo) UpdateAllSendablePoint

func (m *MockPointRepo) UpdateAllSendablePoint(ctx context.Context, db repository.Execer, point int) error

UpdateAllSendablePoint mocks base method.

func (*MockPointRepo) UpdateSendablePoint

func (m *MockPointRepo) UpdateSendablePoint(ctx context.Context, db repository.Execer, fromUserID model.UserID, sendPoint int) error

UpdateSendablePoint mocks base method.

type MockPointRepoMockRecorder

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

MockPointRepoMockRecorder is the mock recorder for MockPointRepo.

func (*MockPointRepoMockRecorder) RegisterPointTransaction

func (mr *MockPointRepoMockRecorder) RegisterPointTransaction(ctx, db, fromUserID, toUserId, sendPoint any) *gomock.Call

RegisterPointTransaction indicates an expected call of RegisterPointTransaction.

func (*MockPointRepoMockRecorder) UpdateAllSendablePoint

func (mr *MockPointRepoMockRecorder) UpdateAllSendablePoint(ctx, db, point any) *gomock.Call

UpdateAllSendablePoint indicates an expected call of UpdateAllSendablePoint.

func (*MockPointRepoMockRecorder) UpdateSendablePoint

func (mr *MockPointRepoMockRecorder) UpdateSendablePoint(ctx, db, fromUserID, sendPoint any) *gomock.Call

UpdateSendablePoint indicates an expected call of UpdateSendablePoint.

type MockTokenGenerator

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

MockTokenGenerator is a mock of TokenGenerator interface.

func NewMockTokenGenerator

func NewMockTokenGenerator(ctrl *gomock.Controller) *MockTokenGenerator

NewMockTokenGenerator creates a new mock instance.

func (*MockTokenGenerator) EXPECT

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

func (*MockTokenGenerator) GenerateToken

func (m *MockTokenGenerator) GenerateToken(ctx context.Context, u entities.User) ([]byte, error)

GenerateToken mocks base method.

type MockTokenGeneratorMockRecorder

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

MockTokenGeneratorMockRecorder is the mock recorder for MockTokenGenerator.

func (*MockTokenGeneratorMockRecorder) GenerateToken

func (mr *MockTokenGeneratorMockRecorder) GenerateToken(ctx, u any) *gomock.Call

GenerateToken indicates an expected call of GenerateToken.

type MockTransactionRepo

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

MockTransactionRepo is a mock of TransactionRepo interface.

func NewMockTransactionRepo

func NewMockTransactionRepo(ctrl *gomock.Controller) *MockTransactionRepo

NewMockTransactionRepo creates a new mock instance.

func (*MockTransactionRepo) EXPECT

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

func (*MockTransactionRepo) GetAquistionPoint

func (m *MockTransactionRepo) GetAquistionPoint(ctx context.Context, db repository.Queryer, userIDs []model.UserID) (map[model.UserID]int, error)

GetAquistionPoint mocks base method.

type MockTransactionRepoMockRecorder

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

MockTransactionRepoMockRecorder is the mock recorder for MockTransactionRepo.

func (*MockTransactionRepoMockRecorder) GetAquistionPoint

func (mr *MockTransactionRepoMockRecorder) GetAquistionPoint(ctx, db, userIDs any) *gomock.Call

GetAquistionPoint indicates an expected call of GetAquistionPoint.

type MockUserRepo

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

MockUserRepo is a mock of UserRepo interface.

func NewMockUserRepo

func NewMockUserRepo(ctrl *gomock.Controller) *MockUserRepo

NewMockUserRepo creates a new mock instance.

func (*MockUserRepo) DeleteUserByID

func (m *MockUserRepo) DeleteUserByID(ctx context.Context, db repository.Execer, ID model.UserID) (int64, error)

DeleteUserByID mocks base method.

func (*MockUserRepo) EXPECT

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

func (*MockUserRepo) FindUserByEmail

func (m *MockUserRepo) FindUserByEmail(ctx context.Context, db repository.Queryer, e string, columns ...string) (entities.User, error)

FindUserByEmail mocks base method.

func (*MockUserRepo) GetAll

func (m *MockUserRepo) GetAll(ctx context.Context, db repository.Queryer, columns ...string) ([]*entities.User, error)

GetAll mocks base method.

func (*MockUserRepo) GetUserByID

func (m *MockUserRepo) GetUserByID(ctx context.Context, db repository.Queryer, ID model.UserID) (entities.User, error)

GetUserByID mocks base method.

func (*MockUserRepo) RegisterUser

func (m *MockUserRepo) RegisterUser(ctx context.Context, db repository.Execer, u *entities.User) error

RegisterUser mocks base method.

func (*MockUserRepo) UpdateAccount

func (m *MockUserRepo) UpdateAccount(ctx context.Context, db repository.Execer, email, familyName, familyNameKana, firstName, firstNameKana *string) error

UpdateAccount mocks base method.

func (*MockUserRepo) UpdateEmail

func (m *MockUserRepo) UpdateEmail(ctx context.Context, db repository.Execer, userID model.UserID, newEmail string) error

UpdateEmail mocks base method.

func (*MockUserRepo) UpdatePassword

func (m *MockUserRepo) UpdatePassword(ctx context.Context, db repository.Execer, email, pass *string) error

UpdatePassword mocks base method.

type MockUserRepoMockRecorder

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

MockUserRepoMockRecorder is the mock recorder for MockUserRepo.

func (*MockUserRepoMockRecorder) DeleteUserByID

func (mr *MockUserRepoMockRecorder) DeleteUserByID(ctx, db, ID any) *gomock.Call

DeleteUserByID indicates an expected call of DeleteUserByID.

func (*MockUserRepoMockRecorder) FindUserByEmail

func (mr *MockUserRepoMockRecorder) FindUserByEmail(ctx, db, e any, columns ...any) *gomock.Call

FindUserByEmail indicates an expected call of FindUserByEmail.

func (*MockUserRepoMockRecorder) GetAll

func (mr *MockUserRepoMockRecorder) GetAll(ctx, db any, columns ...any) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockUserRepoMockRecorder) GetUserByID

func (mr *MockUserRepoMockRecorder) GetUserByID(ctx, db, ID any) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockUserRepoMockRecorder) RegisterUser

func (mr *MockUserRepoMockRecorder) RegisterUser(ctx, db, u any) *gomock.Call

RegisterUser indicates an expected call of RegisterUser.

func (*MockUserRepoMockRecorder) UpdateAccount

func (mr *MockUserRepoMockRecorder) UpdateAccount(ctx, db, email, familyName, familyNameKana, firstName, firstNameKana any) *gomock.Call

UpdateAccount indicates an expected call of UpdateAccount.

func (*MockUserRepoMockRecorder) UpdateEmail

func (mr *MockUserRepoMockRecorder) UpdateEmail(ctx, db, userID, newEmail any) *gomock.Call

UpdateEmail indicates an expected call of UpdateEmail.

func (*MockUserRepoMockRecorder) UpdatePassword

func (mr *MockUserRepoMockRecorder) UpdatePassword(ctx, db, email, pass 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