mock

package
v0.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountServiceMock

type AccountServiceMock struct {
	mock.Mock
}

AccountServiceMock is an autogenerated mock type for the AccountService type

func NewAccountServiceMock

func NewAccountServiceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountServiceMock

NewAccountServiceMock creates a new instance of AccountServiceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccountServiceMock) DeleteAccount

func (_m *AccountServiceMock) DeleteAccount(ctx context.Context, id uuid.UUID) error

DeleteAccount provides a mock function with given fields: ctx, id

func (*AccountServiceMock) EXPECT

func (*AccountServiceMock) GetAccount

func (_m *AccountServiceMock) GetAccount(ctx context.Context, id uuid.UUID) (dto.AccountOutput, error)

GetAccount provides a mock function with given fields: ctx, id

func (*AccountServiceMock) RestoreAccount

func (_m *AccountServiceMock) RestoreAccount(ctx context.Context, id uuid.UUID) (dto.AccountOutput, error)

RestoreAccount provides a mock function with given fields: ctx, id

func (*AccountServiceMock) SetPassword

func (_m *AccountServiceMock) SetPassword(ctx context.Context, id uuid.UUID, input dto.SetPasswordInput) error

SetPassword provides a mock function with given fields: ctx, id, input

func (*AccountServiceMock) UpdateEmail

func (_m *AccountServiceMock) UpdateEmail(ctx context.Context, id uuid.UUID, input dto.UpdateEmailInput, localizer *i18n.Localizer) (dto.AccountOutput, error)

UpdateEmail provides a mock function with given fields: ctx, id, input, localizer

func (*AccountServiceMock) UpdatePassword

func (_m *AccountServiceMock) UpdatePassword(ctx context.Context, id uuid.UUID, input dto.UpdatePasswordInput) error

UpdatePassword provides a mock function with given fields: ctx, id, input

func (*AccountServiceMock) UpdateUsername

func (_m *AccountServiceMock) UpdateUsername(ctx context.Context, id uuid.UUID, input dto.UpdateUsernameInput) (dto.AccountOutput, error)

UpdateUsername provides a mock function with given fields: ctx, id, input

func (*AccountServiceMock) VerifyEmail

func (_m *AccountServiceMock) VerifyEmail(ctx context.Context, id uuid.UUID, req dto.VerifyEmailInput) error

VerifyEmail provides a mock function with given fields: ctx, id, req

type AccountServiceMock_DeleteAccount_Call

type AccountServiceMock_DeleteAccount_Call struct {
	*mock.Call
}

AccountServiceMock_DeleteAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAccount'

func (*AccountServiceMock_DeleteAccount_Call) Return

func (*AccountServiceMock_DeleteAccount_Call) Run

func (*AccountServiceMock_DeleteAccount_Call) RunAndReturn

type AccountServiceMock_Expecter

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

func (*AccountServiceMock_Expecter) DeleteAccount

func (_e *AccountServiceMock_Expecter) DeleteAccount(ctx interface{}, id interface{}) *AccountServiceMock_DeleteAccount_Call

DeleteAccount is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*AccountServiceMock_Expecter) GetAccount

func (_e *AccountServiceMock_Expecter) GetAccount(ctx interface{}, id interface{}) *AccountServiceMock_GetAccount_Call

GetAccount is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*AccountServiceMock_Expecter) RestoreAccount

func (_e *AccountServiceMock_Expecter) RestoreAccount(ctx interface{}, id interface{}) *AccountServiceMock_RestoreAccount_Call

RestoreAccount is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*AccountServiceMock_Expecter) SetPassword

func (_e *AccountServiceMock_Expecter) SetPassword(ctx interface{}, id interface{}, input interface{}) *AccountServiceMock_SetPassword_Call

SetPassword is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • input dto.SetPasswordInput

func (*AccountServiceMock_Expecter) UpdateEmail

func (_e *AccountServiceMock_Expecter) UpdateEmail(ctx interface{}, id interface{}, input interface{}, localizer interface{}) *AccountServiceMock_UpdateEmail_Call

UpdateEmail is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • input dto.UpdateEmailInput
  • localizer *i18n.Localizer

func (*AccountServiceMock_Expecter) UpdatePassword

func (_e *AccountServiceMock_Expecter) UpdatePassword(ctx interface{}, id interface{}, input interface{}) *AccountServiceMock_UpdatePassword_Call

UpdatePassword is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • input dto.UpdatePasswordInput

func (*AccountServiceMock_Expecter) UpdateUsername

func (_e *AccountServiceMock_Expecter) UpdateUsername(ctx interface{}, id interface{}, input interface{}) *AccountServiceMock_UpdateUsername_Call

UpdateUsername is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • input dto.UpdateUsernameInput

func (*AccountServiceMock_Expecter) VerifyEmail

func (_e *AccountServiceMock_Expecter) VerifyEmail(ctx interface{}, id interface{}, req interface{}) *AccountServiceMock_VerifyEmail_Call

VerifyEmail is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • req dto.VerifyEmailInput

type AccountServiceMock_GetAccount_Call

type AccountServiceMock_GetAccount_Call struct {
	*mock.Call
}

AccountServiceMock_GetAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccount'

func (*AccountServiceMock_GetAccount_Call) Return

func (*AccountServiceMock_GetAccount_Call) Run

func (*AccountServiceMock_GetAccount_Call) RunAndReturn

type AccountServiceMock_RestoreAccount_Call

type AccountServiceMock_RestoreAccount_Call struct {
	*mock.Call
}

AccountServiceMock_RestoreAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RestoreAccount'

func (*AccountServiceMock_RestoreAccount_Call) Return

func (*AccountServiceMock_RestoreAccount_Call) Run

func (*AccountServiceMock_RestoreAccount_Call) RunAndReturn

type AccountServiceMock_SetPassword_Call

type AccountServiceMock_SetPassword_Call struct {
	*mock.Call
}

AccountServiceMock_SetPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPassword'

func (*AccountServiceMock_SetPassword_Call) Return

func (*AccountServiceMock_SetPassword_Call) Run

func (*AccountServiceMock_SetPassword_Call) RunAndReturn

type AccountServiceMock_UpdateEmail_Call

type AccountServiceMock_UpdateEmail_Call struct {
	*mock.Call
}

AccountServiceMock_UpdateEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEmail'

func (*AccountServiceMock_UpdateEmail_Call) Return

func (*AccountServiceMock_UpdateEmail_Call) Run

type AccountServiceMock_UpdatePassword_Call

type AccountServiceMock_UpdatePassword_Call struct {
	*mock.Call
}

AccountServiceMock_UpdatePassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePassword'

func (*AccountServiceMock_UpdatePassword_Call) Return

func (*AccountServiceMock_UpdatePassword_Call) Run

func (*AccountServiceMock_UpdatePassword_Call) RunAndReturn

type AccountServiceMock_UpdateUsername_Call

type AccountServiceMock_UpdateUsername_Call struct {
	*mock.Call
}

AccountServiceMock_UpdateUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUsername'

func (*AccountServiceMock_UpdateUsername_Call) Return

func (*AccountServiceMock_UpdateUsername_Call) Run

type AccountServiceMock_VerifyEmail_Call

type AccountServiceMock_VerifyEmail_Call struct {
	*mock.Call
}

AccountServiceMock_VerifyEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyEmail'

func (*AccountServiceMock_VerifyEmail_Call) Return

func (*AccountServiceMock_VerifyEmail_Call) Run

func (*AccountServiceMock_VerifyEmail_Call) RunAndReturn

type AuthServiceMock

type AuthServiceMock struct {
	mock.Mock
}

AuthServiceMock is an autogenerated mock type for the AuthService type

func NewAuthServiceMock

func NewAuthServiceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthServiceMock

NewAuthServiceMock creates a new instance of AuthServiceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AuthServiceMock) EXPECT

func (*AuthServiceMock) FetchUserInfo

func (_m *AuthServiceMock) FetchUserInfo(ctx context.Context, provider string, input dto.FetchUserInfoInput) (oauth.UserInfo, error)

FetchUserInfo provides a mock function with given fields: ctx, provider, input

func (*AuthServiceMock) GetConsentPageUrl

func (_m *AuthServiceMock) GetConsentPageUrl(_a0 context.Context, provider string, redirectUrl string) (dto.GetConsentPageUrlOutput, error)

GetConsentPageUrl provides a mock function with given fields: _a0, provider, redirectUrl

func (*AuthServiceMock) Login

Login provides a mock function with given fields: ctx, input

func (*AuthServiceMock) Logout

func (_m *AuthServiceMock) Logout(ctx context.Context, jti string) error

Logout provides a mock function with given fields: ctx, jti

func (*AuthServiceMock) RecoveryPassword

func (_m *AuthServiceMock) RecoveryPassword(ctx context.Context, input dto.RecoveryPasswordInput, localizer *i18n.Localizer) error

RecoveryPassword provides a mock function with given fields: ctx, input, localizer

func (*AuthServiceMock) RefreshTokens

func (_m *AuthServiceMock) RefreshTokens(ctx context.Context, refreshToken string) (dto.JwtTokensOutput, error)

RefreshTokens provides a mock function with given fields: ctx, refreshToken

func (*AuthServiceMock) Register

func (_m *AuthServiceMock) Register(ctx context.Context, input dto.RegisterInput, localizer *i18n.Localizer) error

Register provides a mock function with given fields: ctx, input, localizer

func (*AuthServiceMock) RegisterConfirm

func (_m *AuthServiceMock) RegisterConfirm(ctx context.Context, input dto.RegisterConfirmInput) error

RegisterConfirm provides a mock function with given fields: ctx, input

func (*AuthServiceMock) RegisterOrLogin

func (_m *AuthServiceMock) RegisterOrLogin(ctx context.Context, userInfo oauth.UserInfo) (dto.JwtTokensOutput, error)

RegisterOrLogin provides a mock function with given fields: ctx, userInfo

func (*AuthServiceMock) ResetPassword

func (_m *AuthServiceMock) ResetPassword(ctx context.Context, input dto.ResetPasswordInput) error

ResetPassword provides a mock function with given fields: ctx, input

func (*AuthServiceMock) VerifyRecoveryCode

func (_m *AuthServiceMock) VerifyRecoveryCode(ctx context.Context, input dto.VerifyRecoveryCodeInput) error

VerifyRecoveryCode provides a mock function with given fields: ctx, input

type AuthServiceMock_Expecter

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

func (*AuthServiceMock_Expecter) FetchUserInfo

func (_e *AuthServiceMock_Expecter) FetchUserInfo(ctx interface{}, provider interface{}, input interface{}) *AuthServiceMock_FetchUserInfo_Call

FetchUserInfo is a helper method to define mock.On call

  • ctx context.Context
  • provider string
  • input dto.FetchUserInfoInput

func (*AuthServiceMock_Expecter) GetConsentPageUrl

func (_e *AuthServiceMock_Expecter) GetConsentPageUrl(_a0 interface{}, provider interface{}, redirectUrl interface{}) *AuthServiceMock_GetConsentPageUrl_Call

GetConsentPageUrl is a helper method to define mock.On call

  • _a0 context.Context
  • provider string
  • redirectUrl string

func (*AuthServiceMock_Expecter) Login

func (_e *AuthServiceMock_Expecter) Login(ctx interface{}, input interface{}) *AuthServiceMock_Login_Call

Login is a helper method to define mock.On call

  • ctx context.Context
  • input dto.LoginInput

func (*AuthServiceMock_Expecter) Logout

func (_e *AuthServiceMock_Expecter) Logout(ctx interface{}, jti interface{}) *AuthServiceMock_Logout_Call

Logout is a helper method to define mock.On call

  • ctx context.Context
  • jti string

func (*AuthServiceMock_Expecter) RecoveryPassword

func (_e *AuthServiceMock_Expecter) RecoveryPassword(ctx interface{}, input interface{}, localizer interface{}) *AuthServiceMock_RecoveryPassword_Call

RecoveryPassword is a helper method to define mock.On call

  • ctx context.Context
  • input dto.RecoveryPasswordInput
  • localizer *i18n.Localizer

func (*AuthServiceMock_Expecter) RefreshTokens

func (_e *AuthServiceMock_Expecter) RefreshTokens(ctx interface{}, refreshToken interface{}) *AuthServiceMock_RefreshTokens_Call

RefreshTokens is a helper method to define mock.On call

  • ctx context.Context
  • refreshToken string

func (*AuthServiceMock_Expecter) Register

func (_e *AuthServiceMock_Expecter) Register(ctx interface{}, input interface{}, localizer interface{}) *AuthServiceMock_Register_Call

Register is a helper method to define mock.On call

  • ctx context.Context
  • input dto.RegisterInput
  • localizer *i18n.Localizer

func (*AuthServiceMock_Expecter) RegisterConfirm

func (_e *AuthServiceMock_Expecter) RegisterConfirm(ctx interface{}, input interface{}) *AuthServiceMock_RegisterConfirm_Call

RegisterConfirm is a helper method to define mock.On call

  • ctx context.Context
  • input dto.RegisterConfirmInput

func (*AuthServiceMock_Expecter) RegisterOrLogin

func (_e *AuthServiceMock_Expecter) RegisterOrLogin(ctx interface{}, userInfo interface{}) *AuthServiceMock_RegisterOrLogin_Call

RegisterOrLogin is a helper method to define mock.On call

  • ctx context.Context
  • userInfo oauth.UserInfo

func (*AuthServiceMock_Expecter) ResetPassword

func (_e *AuthServiceMock_Expecter) ResetPassword(ctx interface{}, input interface{}) *AuthServiceMock_ResetPassword_Call

ResetPassword is a helper method to define mock.On call

  • ctx context.Context
  • input dto.ResetPasswordInput

func (*AuthServiceMock_Expecter) VerifyRecoveryCode

func (_e *AuthServiceMock_Expecter) VerifyRecoveryCode(ctx interface{}, input interface{}) *AuthServiceMock_VerifyRecoveryCode_Call

VerifyRecoveryCode is a helper method to define mock.On call

  • ctx context.Context
  • input dto.VerifyRecoveryCodeInput

type AuthServiceMock_FetchUserInfo_Call

type AuthServiceMock_FetchUserInfo_Call struct {
	*mock.Call
}

AuthServiceMock_FetchUserInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchUserInfo'

func (*AuthServiceMock_FetchUserInfo_Call) Return

func (*AuthServiceMock_FetchUserInfo_Call) Run

func (*AuthServiceMock_FetchUserInfo_Call) RunAndReturn

type AuthServiceMock_GetConsentPageUrl_Call

type AuthServiceMock_GetConsentPageUrl_Call struct {
	*mock.Call
}

AuthServiceMock_GetConsentPageUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConsentPageUrl'

func (*AuthServiceMock_GetConsentPageUrl_Call) Return

func (*AuthServiceMock_GetConsentPageUrl_Call) Run

func (*AuthServiceMock_GetConsentPageUrl_Call) RunAndReturn

type AuthServiceMock_Login_Call

type AuthServiceMock_Login_Call struct {
	*mock.Call
}

AuthServiceMock_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'

func (*AuthServiceMock_Login_Call) Return

func (*AuthServiceMock_Login_Call) Run

func (*AuthServiceMock_Login_Call) RunAndReturn

type AuthServiceMock_Logout_Call

type AuthServiceMock_Logout_Call struct {
	*mock.Call
}

AuthServiceMock_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'

func (*AuthServiceMock_Logout_Call) Return

func (*AuthServiceMock_Logout_Call) Run

func (*AuthServiceMock_Logout_Call) RunAndReturn

type AuthServiceMock_RecoveryPassword_Call

type AuthServiceMock_RecoveryPassword_Call struct {
	*mock.Call
}

AuthServiceMock_RecoveryPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecoveryPassword'

func (*AuthServiceMock_RecoveryPassword_Call) Return

func (*AuthServiceMock_RecoveryPassword_Call) Run

func (*AuthServiceMock_RecoveryPassword_Call) RunAndReturn

type AuthServiceMock_RefreshTokens_Call

type AuthServiceMock_RefreshTokens_Call struct {
	*mock.Call
}

AuthServiceMock_RefreshTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshTokens'

func (*AuthServiceMock_RefreshTokens_Call) Return

func (*AuthServiceMock_RefreshTokens_Call) Run

func (*AuthServiceMock_RefreshTokens_Call) RunAndReturn

type AuthServiceMock_RegisterConfirm_Call

type AuthServiceMock_RegisterConfirm_Call struct {
	*mock.Call
}

AuthServiceMock_RegisterConfirm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterConfirm'

func (*AuthServiceMock_RegisterConfirm_Call) Return

func (*AuthServiceMock_RegisterConfirm_Call) Run

func (*AuthServiceMock_RegisterConfirm_Call) RunAndReturn

type AuthServiceMock_RegisterOrLogin_Call

type AuthServiceMock_RegisterOrLogin_Call struct {
	*mock.Call
}

AuthServiceMock_RegisterOrLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterOrLogin'

func (*AuthServiceMock_RegisterOrLogin_Call) Return

func (*AuthServiceMock_RegisterOrLogin_Call) Run

func (*AuthServiceMock_RegisterOrLogin_Call) RunAndReturn

type AuthServiceMock_Register_Call

type AuthServiceMock_Register_Call struct {
	*mock.Call
}

AuthServiceMock_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'

func (*AuthServiceMock_Register_Call) Return

func (*AuthServiceMock_Register_Call) Run

func (*AuthServiceMock_Register_Call) RunAndReturn

type AuthServiceMock_ResetPassword_Call

type AuthServiceMock_ResetPassword_Call struct {
	*mock.Call
}

AuthServiceMock_ResetPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetPassword'

func (*AuthServiceMock_ResetPassword_Call) Return

func (*AuthServiceMock_ResetPassword_Call) Run

func (*AuthServiceMock_ResetPassword_Call) RunAndReturn

type AuthServiceMock_VerifyRecoveryCode_Call

type AuthServiceMock_VerifyRecoveryCode_Call struct {
	*mock.Call
}

AuthServiceMock_VerifyRecoveryCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyRecoveryCode'

func (*AuthServiceMock_VerifyRecoveryCode_Call) Return

func (*AuthServiceMock_VerifyRecoveryCode_Call) Run

func (*AuthServiceMock_VerifyRecoveryCode_Call) RunAndReturn

type HealthServiceMock

type HealthServiceMock struct {
	mock.Mock
}

HealthServiceMock is an autogenerated mock type for the HealthService type

func NewHealthServiceMock

func NewHealthServiceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *HealthServiceMock

NewHealthServiceMock creates a new instance of HealthServiceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HealthServiceMock) EXPECT

func (*HealthServiceMock) Health

func (_m *HealthServiceMock) Health() []dto.HealthOutput

Health provides a mock function with given fields:

type HealthServiceMock_Expecter

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

func (*HealthServiceMock_Expecter) Health

Health is a helper method to define mock.On call

type HealthServiceMock_Health_Call

type HealthServiceMock_Health_Call struct {
	*mock.Call
}

HealthServiceMock_Health_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Health'

func (*HealthServiceMock_Health_Call) Return

func (*HealthServiceMock_Health_Call) Run

func (*HealthServiceMock_Health_Call) RunAndReturn

type MasterProfileServiceMock

type MasterProfileServiceMock struct {
	mock.Mock
}

MasterProfileServiceMock is an autogenerated mock type for the MasterProfileService type

func NewMasterProfileServiceMock

func NewMasterProfileServiceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *MasterProfileServiceMock

NewMasterProfileServiceMock creates a new instance of MasterProfileServiceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MasterProfileServiceMock) CreateMasterProfile

CreateMasterProfile provides a mock function with given fields: ctx, id, input

func (*MasterProfileServiceMock) EXPECT

func (*MasterProfileServiceMock) FindMasterProfiles

FindMasterProfiles provides a mock function with given fields: ctx, input

func (*MasterProfileServiceMock) GetMasterProfileByUsername

func (_m *MasterProfileServiceMock) GetMasterProfileByUsername(ctx context.Context, username string) (dto.MasterProfileOutput, error)

GetMasterProfileByUsername provides a mock function with given fields: ctx, username

func (*MasterProfileServiceMock) GetOwnMasterProfile

func (_m *MasterProfileServiceMock) GetOwnMasterProfile(ctx context.Context, id uuid.UUID) (dto.OwnMasterProfileOutput, error)

GetOwnMasterProfile provides a mock function with given fields: ctx, id

func (*MasterProfileServiceMock) UpdateMasterProfile

UpdateMasterProfile provides a mock function with given fields: ctx, id, input

type MasterProfileServiceMock_CreateMasterProfile_Call

type MasterProfileServiceMock_CreateMasterProfile_Call struct {
	*mock.Call
}

MasterProfileServiceMock_CreateMasterProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateMasterProfile'

func (*MasterProfileServiceMock_CreateMasterProfile_Call) Return

func (*MasterProfileServiceMock_CreateMasterProfile_Call) Run

type MasterProfileServiceMock_Expecter

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

func (*MasterProfileServiceMock_Expecter) CreateMasterProfile

func (_e *MasterProfileServiceMock_Expecter) CreateMasterProfile(ctx interface{}, id interface{}, input interface{}) *MasterProfileServiceMock_CreateMasterProfile_Call

CreateMasterProfile is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • input dto.CreateMasterProfileInput

func (*MasterProfileServiceMock_Expecter) FindMasterProfiles

func (_e *MasterProfileServiceMock_Expecter) FindMasterProfiles(ctx interface{}, input interface{}) *MasterProfileServiceMock_FindMasterProfiles_Call

FindMasterProfiles is a helper method to define mock.On call

  • ctx context.Context
  • input dto.FindMasterProfilesInput

func (*MasterProfileServiceMock_Expecter) GetMasterProfileByUsername

func (_e *MasterProfileServiceMock_Expecter) GetMasterProfileByUsername(ctx interface{}, username interface{}) *MasterProfileServiceMock_GetMasterProfileByUsername_Call

GetMasterProfileByUsername is a helper method to define mock.On call

  • ctx context.Context
  • username string

func (*MasterProfileServiceMock_Expecter) GetOwnMasterProfile

func (_e *MasterProfileServiceMock_Expecter) GetOwnMasterProfile(ctx interface{}, id interface{}) *MasterProfileServiceMock_GetOwnMasterProfile_Call

GetOwnMasterProfile is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*MasterProfileServiceMock_Expecter) UpdateMasterProfile

func (_e *MasterProfileServiceMock_Expecter) UpdateMasterProfile(ctx interface{}, id interface{}, input interface{}) *MasterProfileServiceMock_UpdateMasterProfile_Call

UpdateMasterProfile is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • input dto.UpdateMasterProfileInput

type MasterProfileServiceMock_FindMasterProfiles_Call

type MasterProfileServiceMock_FindMasterProfiles_Call struct {
	*mock.Call
}

MasterProfileServiceMock_FindMasterProfiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindMasterProfiles'

func (*MasterProfileServiceMock_FindMasterProfiles_Call) Return

func (*MasterProfileServiceMock_FindMasterProfiles_Call) Run

type MasterProfileServiceMock_GetMasterProfileByUsername_Call

type MasterProfileServiceMock_GetMasterProfileByUsername_Call struct {
	*mock.Call
}

MasterProfileServiceMock_GetMasterProfileByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMasterProfileByUsername'

func (*MasterProfileServiceMock_GetMasterProfileByUsername_Call) Return

func (*MasterProfileServiceMock_GetMasterProfileByUsername_Call) Run

func (*MasterProfileServiceMock_GetMasterProfileByUsername_Call) RunAndReturn

type MasterProfileServiceMock_GetOwnMasterProfile_Call

type MasterProfileServiceMock_GetOwnMasterProfile_Call struct {
	*mock.Call
}

MasterProfileServiceMock_GetOwnMasterProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOwnMasterProfile'

func (*MasterProfileServiceMock_GetOwnMasterProfile_Call) Return

func (*MasterProfileServiceMock_GetOwnMasterProfile_Call) Run

func (*MasterProfileServiceMock_GetOwnMasterProfile_Call) RunAndReturn

type MasterProfileServiceMock_UpdateMasterProfile_Call

type MasterProfileServiceMock_UpdateMasterProfile_Call struct {
	*mock.Call
}

MasterProfileServiceMock_UpdateMasterProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateMasterProfile'

func (*MasterProfileServiceMock_UpdateMasterProfile_Call) Return

func (*MasterProfileServiceMock_UpdateMasterProfile_Call) Run

type ResourceServiceMock

type ResourceServiceMock struct {
	mock.Mock
}

ResourceServiceMock is an autogenerated mock type for the ResourceService type

func NewResourceServiceMock

func NewResourceServiceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceServiceMock

NewResourceServiceMock creates a new instance of ResourceServiceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ResourceServiceMock) DownloadResource

func (_m *ResourceServiceMock) DownloadResource(ctx context.Context, objectID string) (*s3.FileData, error)

DownloadResource provides a mock function with given fields: ctx, objectID

func (*ResourceServiceMock) EXPECT

func (*ResourceServiceMock) UploadResource

UploadResource provides a mock function with given fields: ctx, input

func (*ResourceServiceMock) UploadResources

UploadResources provides a mock function with given fields: ctx, input

type ResourceServiceMock_DownloadResource_Call

type ResourceServiceMock_DownloadResource_Call struct {
	*mock.Call
}

ResourceServiceMock_DownloadResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadResource'

func (*ResourceServiceMock_DownloadResource_Call) Return

func (*ResourceServiceMock_DownloadResource_Call) Run

func (*ResourceServiceMock_DownloadResource_Call) RunAndReturn

type ResourceServiceMock_Expecter

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

func (*ResourceServiceMock_Expecter) DownloadResource

func (_e *ResourceServiceMock_Expecter) DownloadResource(ctx interface{}, objectID interface{}) *ResourceServiceMock_DownloadResource_Call

DownloadResource is a helper method to define mock.On call

  • ctx context.Context
  • objectID string

func (*ResourceServiceMock_Expecter) UploadResource

func (_e *ResourceServiceMock_Expecter) UploadResource(ctx interface{}, input interface{}) *ResourceServiceMock_UploadResource_Call

UploadResource is a helper method to define mock.On call

  • ctx context.Context
  • input *dto.UploadResourceInput

func (*ResourceServiceMock_Expecter) UploadResources

func (_e *ResourceServiceMock_Expecter) UploadResources(ctx interface{}, input interface{}) *ResourceServiceMock_UploadResources_Call

UploadResources is a helper method to define mock.On call

  • ctx context.Context
  • input *dto.UploadResourcesInput

type ResourceServiceMock_UploadResource_Call

type ResourceServiceMock_UploadResource_Call struct {
	*mock.Call
}

ResourceServiceMock_UploadResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadResource'

func (*ResourceServiceMock_UploadResource_Call) Return

func (*ResourceServiceMock_UploadResource_Call) Run

type ResourceServiceMock_UploadResources_Call

type ResourceServiceMock_UploadResources_Call struct {
	*mock.Call
}

ResourceServiceMock_UploadResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadResources'

func (*ResourceServiceMock_UploadResources_Call) Return

func (*ResourceServiceMock_UploadResources_Call) Run

type WebsocketServiceMock

type WebsocketServiceMock struct {
	mock.Mock
}

WebsocketServiceMock is an autogenerated mock type for the WebsocketService type

func NewWebsocketServiceMock

func NewWebsocketServiceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebsocketServiceMock

NewWebsocketServiceMock creates a new instance of WebsocketServiceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*WebsocketServiceMock) EXPECT

func (*WebsocketServiceMock) RegisterClient

func (_m *WebsocketServiceMock) RegisterClient(userId uuid.UUID, r *http.Request, w http.ResponseWriter) error

RegisterClient provides a mock function with given fields: userId, r, w

type WebsocketServiceMock_Expecter

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

func (*WebsocketServiceMock_Expecter) RegisterClient

func (_e *WebsocketServiceMock_Expecter) RegisterClient(userId interface{}, r interface{}, w interface{}) *WebsocketServiceMock_RegisterClient_Call

RegisterClient is a helper method to define mock.On call

  • userId uuid.UUID
  • r *http.Request
  • w http.ResponseWriter

type WebsocketServiceMock_RegisterClient_Call

type WebsocketServiceMock_RegisterClient_Call struct {
	*mock.Call
}

WebsocketServiceMock_RegisterClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterClient'

func (*WebsocketServiceMock_RegisterClient_Call) Return

func (*WebsocketServiceMock_RegisterClient_Call) Run

func (*WebsocketServiceMock_RegisterClient_Call) RunAndReturn

Jump to

Keyboard shortcuts

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