mock_usecases

package
v0.0.0-...-adb56df Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_usecases is a generated GoMock package.

Package mock_usecases is a generated GoMock package.

Package mock_usecases is a generated GoMock package.

Package mock_usecases is a generated GoMock package.

Package mock_usecases is a generated GoMock package.

Package mock_usecases is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDownloadUseCase

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

MockDownloadUseCase is a mock of DownloadUseCase interface.

func NewMockDownloadUseCase

func NewMockDownloadUseCase(ctrl *gomock.Controller) *MockDownloadUseCase

NewMockDownloadUseCase creates a new mock instance.

func (*MockDownloadUseCase) EXPECT

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

func (*MockDownloadUseCase) LoadPhotoFile

LoadPhotoFile mocks base method.

type MockDownloadUseCaseMockRecorder

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

MockDownloadUseCaseMockRecorder is the mock recorder for MockDownloadUseCase.

func (*MockDownloadUseCaseMockRecorder) LoadPhotoFile

func (mr *MockDownloadUseCaseMockRecorder) LoadPhotoFile(ctx, fileID interface{}) *gomock.Call

LoadPhotoFile indicates an expected call of LoadPhotoFile.

type MockOauthUseCase

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

MockOauthUseCase is a mock of OauthUseCase interface.

func NewMockOauthUseCase

func NewMockOauthUseCase(ctrl *gomock.Controller) *MockOauthUseCase

NewMockOauthUseCase creates a new mock instance.

func (*MockOauthUseCase) AuthAccessToken

func (m *MockOauthUseCase) AuthAccessToken(ctx context.Context, accessToken string) (*entities.OauthSession, *entities.OauthClient, error)

AuthAccessToken mocks base method.

func (*MockOauthUseCase) AuthClientSecret

func (m *MockOauthUseCase) AuthClientSecret(ctx context.Context, clientID, clientSecret string) (*entities.OauthClient, error)

AuthClientSecret mocks base method.

func (*MockOauthUseCase) Authorize

func (m *MockOauthUseCase) Authorize(ctx context.Context, userID, password, clientID, redirectURL string) (string, error)

Authorize mocks base method.

func (*MockOauthUseCase) CreateOauthClient

func (m *MockOauthUseCase) CreateOauthClient(ctx context.Context, client *entities.OauthClient) (*entities.OauthClient, string, error)

CreateOauthClient mocks base method.

func (*MockOauthUseCase) CreateSpecialOauthClient

func (m *MockOauthUseCase) CreateSpecialOauthClient(ctx context.Context, clientID, name, clientSecret string) error

CreateSpecialOauthClient mocks base method.

func (*MockOauthUseCase) EXPECT

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

func (*MockOauthUseCase) GetOauthClientRedirectURLs

func (m *MockOauthUseCase) GetOauthClientRedirectURLs(ctx context.Context, oauthClientID string) ([]*entities.OAuthClientRedirectURL, error)

GetOauthClientRedirectURLs mocks base method.

func (*MockOauthUseCase) Oauth2AuthorizationCode

func (m *MockOauthUseCase) Oauth2AuthorizationCode(ctx context.Context, client *entities.OauthClient, code, redirectURL string, now time.Time) (*entities.Oauth2AuthorizationCode, error)

Oauth2AuthorizationCode mocks base method.

func (*MockOauthUseCase) Oauth2ClientCredential

func (m *MockOauthUseCase) Oauth2ClientCredential(ctx context.Context, client *entities.OauthClient) (*entities.Oauth2ClientCredential, error)

Oauth2ClientCredential mocks base method.

func (*MockOauthUseCase) Oauth2RefreshToken

func (m *MockOauthUseCase) Oauth2RefreshToken(ctx context.Context, client *entities.OauthClient, refreshToken string) (*entities.Oauth2AuthorizationCode, error)

Oauth2RefreshToken mocks base method.

func (*MockOauthUseCase) ValidateToAuthorizeUser

func (m *MockOauthUseCase) ValidateToAuthorizeUser(ctx context.Context, clientID, redirectURL string) (*entities.OauthClient, error)

ValidateToAuthorizeUser mocks base method.

type MockOauthUseCaseMockRecorder

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

MockOauthUseCaseMockRecorder is the mock recorder for MockOauthUseCase.

func (*MockOauthUseCaseMockRecorder) AuthAccessToken

func (mr *MockOauthUseCaseMockRecorder) AuthAccessToken(ctx, accessToken interface{}) *gomock.Call

AuthAccessToken indicates an expected call of AuthAccessToken.

func (*MockOauthUseCaseMockRecorder) AuthClientSecret

func (mr *MockOauthUseCaseMockRecorder) AuthClientSecret(ctx, clientID, clientSecret interface{}) *gomock.Call

AuthClientSecret indicates an expected call of AuthClientSecret.

func (*MockOauthUseCaseMockRecorder) Authorize

func (mr *MockOauthUseCaseMockRecorder) Authorize(ctx, userID, password, clientID, redirectURL interface{}) *gomock.Call

Authorize indicates an expected call of Authorize.

func (*MockOauthUseCaseMockRecorder) CreateOauthClient

func (mr *MockOauthUseCaseMockRecorder) CreateOauthClient(ctx, client interface{}) *gomock.Call

CreateOauthClient indicates an expected call of CreateOauthClient.

func (*MockOauthUseCaseMockRecorder) CreateSpecialOauthClient

func (mr *MockOauthUseCaseMockRecorder) CreateSpecialOauthClient(ctx, clientID, name, clientSecret interface{}) *gomock.Call

CreateSpecialOauthClient indicates an expected call of CreateSpecialOauthClient.

func (*MockOauthUseCaseMockRecorder) GetOauthClientRedirectURLs

func (mr *MockOauthUseCaseMockRecorder) GetOauthClientRedirectURLs(ctx, oauthClientID interface{}) *gomock.Call

GetOauthClientRedirectURLs indicates an expected call of GetOauthClientRedirectURLs.

func (*MockOauthUseCaseMockRecorder) Oauth2AuthorizationCode

func (mr *MockOauthUseCaseMockRecorder) Oauth2AuthorizationCode(ctx, client, code, redirectURL, now interface{}) *gomock.Call

Oauth2AuthorizationCode indicates an expected call of Oauth2AuthorizationCode.

func (*MockOauthUseCaseMockRecorder) Oauth2ClientCredential

func (mr *MockOauthUseCaseMockRecorder) Oauth2ClientCredential(ctx, client interface{}) *gomock.Call

Oauth2ClientCredential indicates an expected call of Oauth2ClientCredential.

func (*MockOauthUseCaseMockRecorder) Oauth2RefreshToken

func (mr *MockOauthUseCaseMockRecorder) Oauth2RefreshToken(ctx, client, refreshToken interface{}) *gomock.Call

Oauth2RefreshToken indicates an expected call of Oauth2RefreshToken.

func (*MockOauthUseCaseMockRecorder) ValidateToAuthorizeUser

func (mr *MockOauthUseCaseMockRecorder) ValidateToAuthorizeUser(ctx, clientID, redirectURL interface{}) *gomock.Call

ValidateToAuthorizeUser indicates an expected call of ValidateToAuthorizeUser.

type MockPhotoImportUseCase

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

MockPhotoImportUseCase is a mock of PhotoImportUseCase interface.

func NewMockPhotoImportUseCase

func NewMockPhotoImportUseCase(ctrl *gomock.Controller) *MockPhotoImportUseCase

NewMockPhotoImportUseCase creates a new mock instance.

func (*MockPhotoImportUseCase) EXPECT

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

func (*MockPhotoImportUseCase) ExecuteBatch

func (m *MockPhotoImportUseCase) ExecuteBatch(ctx context.Context, fast bool) error

ExecuteBatch mocks base method.

func (*MockPhotoImportUseCase) GenerateUploadURL

func (m *MockPhotoImportUseCase) GenerateUploadURL(ctx context.Context, userID string, now time.Time) (*entities.PhotoUploadSign, error)

GenerateUploadURL mocks base method.

func (*MockPhotoImportUseCase) IndexingPhotos

func (m *MockPhotoImportUseCase) IndexingPhotos(ctx context.Context, rootPath string, extensions []string, fast bool) error

IndexingPhotos mocks base method.

func (*MockPhotoImportUseCase) UploadPhoto

func (m *MockPhotoImportUseCase) UploadPhoto(ctx context.Context, signToken, fileName string, body []byte) error

UploadPhoto mocks base method.

type MockPhotoImportUseCaseMockRecorder

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

MockPhotoImportUseCaseMockRecorder is the mock recorder for MockPhotoImportUseCase.

func (*MockPhotoImportUseCaseMockRecorder) ExecuteBatch

func (mr *MockPhotoImportUseCaseMockRecorder) ExecuteBatch(ctx, fast interface{}) *gomock.Call

ExecuteBatch indicates an expected call of ExecuteBatch.

func (*MockPhotoImportUseCaseMockRecorder) GenerateUploadURL

func (mr *MockPhotoImportUseCaseMockRecorder) GenerateUploadURL(ctx, userID, now interface{}) *gomock.Call

GenerateUploadURL indicates an expected call of GenerateUploadURL.

func (*MockPhotoImportUseCaseMockRecorder) IndexingPhotos

func (mr *MockPhotoImportUseCaseMockRecorder) IndexingPhotos(ctx, rootPath, extensions, fast interface{}) *gomock.Call

IndexingPhotos indicates an expected call of IndexingPhotos.

func (*MockPhotoImportUseCaseMockRecorder) UploadPhoto

func (mr *MockPhotoImportUseCaseMockRecorder) UploadPhoto(ctx, signToken, fileName, body interface{}) *gomock.Call

UploadPhoto indicates an expected call of UploadPhoto.

type MockPhotoUseCase

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

MockPhotoUseCase is a mock of PhotoUseCase interface.

func NewMockPhotoUseCase

func NewMockPhotoUseCase(ctrl *gomock.Controller) *MockPhotoUseCase

NewMockPhotoUseCase creates a new mock instance.

func (*MockPhotoUseCase) EXPECT

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

func (*MockPhotoUseCase) GetPhotoFileByPhotoFileID

func (m *MockPhotoUseCase) GetPhotoFileByPhotoFileID(ctx context.Context, photoFileID int) (*entities.PhotoFile, error)

GetPhotoFileByPhotoFileID mocks base method.

func (*MockPhotoUseCase) GetPhotoFilesByPhotoID

func (m *MockPhotoUseCase) GetPhotoFilesByPhotoID(ctx context.Context, photoID int) (entities.PhotoFileList, error)

GetPhotoFilesByPhotoID mocks base method.

func (*MockPhotoUseCase) GetPhotoMetaByPhotoID

func (m *MockPhotoUseCase) GetPhotoMetaByPhotoID(ctx context.Context, photoID int) (entities.PhotoMeta, error)

GetPhotoMetaByPhotoID mocks base method.

type MockPhotoUseCaseMockRecorder

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

MockPhotoUseCaseMockRecorder is the mock recorder for MockPhotoUseCase.

func (*MockPhotoUseCaseMockRecorder) GetPhotoFileByPhotoFileID

func (mr *MockPhotoUseCaseMockRecorder) GetPhotoFileByPhotoFileID(ctx, photoFileID interface{}) *gomock.Call

GetPhotoFileByPhotoFileID indicates an expected call of GetPhotoFileByPhotoFileID.

func (*MockPhotoUseCaseMockRecorder) GetPhotoFilesByPhotoID

func (mr *MockPhotoUseCaseMockRecorder) GetPhotoFilesByPhotoID(ctx, photoID interface{}) *gomock.Call

GetPhotoFilesByPhotoID indicates an expected call of GetPhotoFilesByPhotoID.

func (*MockPhotoUseCaseMockRecorder) GetPhotoMetaByPhotoID

func (mr *MockPhotoUseCaseMockRecorder) GetPhotoMetaByPhotoID(ctx, photoID interface{}) *gomock.Call

GetPhotoMetaByPhotoID indicates an expected call of GetPhotoMetaByPhotoID.

type MockSearchUseCase

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

MockSearchUseCase is a mock of SearchUseCase interface.

func NewMockSearchUseCase

func NewMockSearchUseCase(ctrl *gomock.Controller) *MockSearchUseCase

NewMockSearchUseCase creates a new mock instance.

func (*MockSearchUseCase) AggregateDateTimeOriginal

func (m *MockSearchUseCase) AggregateDateTimeOriginal(ctx context.Context, year, month int) (entities.PhotoDateTimeAggregation, error)

AggregateDateTimeOriginal mocks base method.

func (*MockSearchUseCase) AppendAllPhotoDocuments

func (m *MockSearchUseCase) AppendAllPhotoDocuments(ctx context.Context) error

AppendAllPhotoDocuments mocks base method.

func (*MockSearchUseCase) EXPECT

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

func (*MockSearchUseCase) SearchPhotoByPhotoID

func (m *MockSearchUseCase) SearchPhotoByPhotoID(ctx context.Context, id int) (*entities.PhotoSearchResultItem, error)

SearchPhotoByPhotoID mocks base method.

func (*MockSearchUseCase) SearchPhotos

func (m *MockSearchUseCase) SearchPhotos(ctx context.Context, id *int, limit, offset int) (*entities.PhotoSearchResult, error)

SearchPhotos mocks base method.

type MockSearchUseCaseMockRecorder

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

MockSearchUseCaseMockRecorder is the mock recorder for MockSearchUseCase.

func (*MockSearchUseCaseMockRecorder) AggregateDateTimeOriginal

func (mr *MockSearchUseCaseMockRecorder) AggregateDateTimeOriginal(ctx, year, month interface{}) *gomock.Call

AggregateDateTimeOriginal indicates an expected call of AggregateDateTimeOriginal.

func (*MockSearchUseCaseMockRecorder) AppendAllPhotoDocuments

func (mr *MockSearchUseCaseMockRecorder) AppendAllPhotoDocuments(ctx interface{}) *gomock.Call

AppendAllPhotoDocuments indicates an expected call of AppendAllPhotoDocuments.

func (*MockSearchUseCaseMockRecorder) SearchPhotoByPhotoID

func (mr *MockSearchUseCaseMockRecorder) SearchPhotoByPhotoID(ctx, id interface{}) *gomock.Call

SearchPhotoByPhotoID indicates an expected call of SearchPhotoByPhotoID.

func (*MockSearchUseCaseMockRecorder) SearchPhotos

func (mr *MockSearchUseCaseMockRecorder) SearchPhotos(ctx, id, limit, offset interface{}) *gomock.Call

SearchPhotos indicates an expected call of SearchPhotos.

type MockUserUseCase

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

MockUserUseCase is a mock of UserUseCase interface.

func NewMockUserUseCase

func NewMockUserUseCase(ctrl *gomock.Controller) *MockUserUseCase

NewMockUserUseCase creates a new mock instance.

func (*MockUserUseCase) CreateUser

func (m *MockUserUseCase) CreateUser(ctx context.Context, userID, name, password string, now time.Time) (*entities.User, error)

CreateUser mocks base method.

func (*MockUserUseCase) EXPECT

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

func (*MockUserUseCase) ExistUser

func (m *MockUserUseCase) ExistUser(ctx context.Context, userID string) (bool, error)

ExistUser mocks base method.

func (*MockUserUseCase) GetUser

func (m *MockUserUseCase) GetUser(ctx context.Context, userID string) (*entities.User, error)

GetUser mocks base method.

func (*MockUserUseCase) GetUserPassword

func (m *MockUserUseCase) GetUserPassword(ctx context.Context, userID string) (*entities.UserPassword, error)

GetUserPassword mocks base method.

func (*MockUserUseCase) GetUsers

func (m *MockUserUseCase) GetUsers(ctx context.Context, userID *string, limit, offset int) (entities.UserList, int, error)

GetUsers mocks base method.

func (*MockUserUseCase) Login

func (m *MockUserUseCase) Login(ctx context.Context, client *entities.OauthClient, userID, password string, now time.Time) (*entities.Oauth2AuthorizationCode, error)

Login mocks base method.

func (*MockUserUseCase) UpdateUserProfile

func (m *MockUserUseCase) UpdateUserProfile(ctx context.Context, userID, name string) (*entities.User, error)

UpdateUserProfile mocks base method.

func (*MockUserUseCase) ValidateToCreateUser

func (m *MockUserUseCase) ValidateToCreateUser(ctx context.Context, userID, name, password string) error

ValidateToCreateUser mocks base method.

type MockUserUseCaseMockRecorder

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

MockUserUseCaseMockRecorder is the mock recorder for MockUserUseCase.

func (*MockUserUseCaseMockRecorder) CreateUser

func (mr *MockUserUseCaseMockRecorder) CreateUser(ctx, userID, name, password, now interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUserUseCaseMockRecorder) ExistUser

func (mr *MockUserUseCaseMockRecorder) ExistUser(ctx, userID interface{}) *gomock.Call

ExistUser indicates an expected call of ExistUser.

func (*MockUserUseCaseMockRecorder) GetUser

func (mr *MockUserUseCaseMockRecorder) GetUser(ctx, userID interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockUserUseCaseMockRecorder) GetUserPassword

func (mr *MockUserUseCaseMockRecorder) GetUserPassword(ctx, userID interface{}) *gomock.Call

GetUserPassword indicates an expected call of GetUserPassword.

func (*MockUserUseCaseMockRecorder) GetUsers

func (mr *MockUserUseCaseMockRecorder) GetUsers(ctx, userID, limit, offset interface{}) *gomock.Call

GetUsers indicates an expected call of GetUsers.

func (*MockUserUseCaseMockRecorder) Login

func (mr *MockUserUseCaseMockRecorder) Login(ctx, client, userID, password, now interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockUserUseCaseMockRecorder) UpdateUserProfile

func (mr *MockUserUseCaseMockRecorder) UpdateUserProfile(ctx, userID, name interface{}) *gomock.Call

UpdateUserProfile indicates an expected call of UpdateUserProfile.

func (*MockUserUseCaseMockRecorder) ValidateToCreateUser

func (mr *MockUserUseCaseMockRecorder) ValidateToCreateUser(ctx, userID, name, password interface{}) *gomock.Call

ValidateToCreateUser indicates an expected call of ValidateToCreateUser.

Jump to

Keyboard shortcuts

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