Documentation
¶
Index ¶
- type MockAccountDeletionServiceInterface
- func (_mock *MockAccountDeletionServiceInterface) DeleteAccount(ctx context.Context, userID int, username string, userEmail string) error
- func (_m *MockAccountDeletionServiceInterface) EXPECT() *MockAccountDeletionServiceInterface_Expecter
- func (_mock *MockAccountDeletionServiceInterface) ValidateConfirmationString(confirmation string) error
- type MockAccountDeletionServiceInterface_DeleteAccount_Call
- func (_c *MockAccountDeletionServiceInterface_DeleteAccount_Call) Return(err error) *MockAccountDeletionServiceInterface_DeleteAccount_Call
- func (_c *MockAccountDeletionServiceInterface_DeleteAccount_Call) Run(run func(ctx context.Context, userID int, username string, userEmail string)) *MockAccountDeletionServiceInterface_DeleteAccount_Call
- func (_c *MockAccountDeletionServiceInterface_DeleteAccount_Call) RunAndReturn(...) *MockAccountDeletionServiceInterface_DeleteAccount_Call
- type MockAccountDeletionServiceInterface_Expecter
- func (_e *MockAccountDeletionServiceInterface_Expecter) DeleteAccount(ctx any, userID any, username any, userEmail any) *MockAccountDeletionServiceInterface_DeleteAccount_Call
- func (_e *MockAccountDeletionServiceInterface_Expecter) ValidateConfirmationString(confirmation any) *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call
- type MockAccountDeletionServiceInterface_ValidateConfirmationString_Call
- func (_c *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) Return(err error) *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call
- func (_c *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) Run(run func(confirmation string)) *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call
- func (_c *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) RunAndReturn(run func(confirmation string) error) *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call
- type MockAdminCreateUserRepo
- func (_mock *MockAdminCreateUserRepo) CheckEmailExists(ctx context.Context, email string) (bool, error)
- func (_mock *MockAdminCreateUserRepo) CheckUsernameExists(ctx context.Context, username string) (bool, error)
- func (_mock *MockAdminCreateUserRepo) CreateUser(ctx context.Context, user *repository.User) error
- func (_m *MockAdminCreateUserRepo) EXPECT() *MockAdminCreateUserRepo_Expecter
- type MockAdminCreateUserRepo_CheckEmailExists_Call
- func (_c *MockAdminCreateUserRepo_CheckEmailExists_Call) Return(b bool, err error) *MockAdminCreateUserRepo_CheckEmailExists_Call
- func (_c *MockAdminCreateUserRepo_CheckEmailExists_Call) Run(run func(ctx context.Context, email string)) *MockAdminCreateUserRepo_CheckEmailExists_Call
- func (_c *MockAdminCreateUserRepo_CheckEmailExists_Call) RunAndReturn(run func(ctx context.Context, email string) (bool, error)) *MockAdminCreateUserRepo_CheckEmailExists_Call
- type MockAdminCreateUserRepo_CheckUsernameExists_Call
- func (_c *MockAdminCreateUserRepo_CheckUsernameExists_Call) Return(b bool, err error) *MockAdminCreateUserRepo_CheckUsernameExists_Call
- func (_c *MockAdminCreateUserRepo_CheckUsernameExists_Call) Run(run func(ctx context.Context, username string)) *MockAdminCreateUserRepo_CheckUsernameExists_Call
- func (_c *MockAdminCreateUserRepo_CheckUsernameExists_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *MockAdminCreateUserRepo_CheckUsernameExists_Call
- type MockAdminCreateUserRepo_CreateUser_Call
- func (_c *MockAdminCreateUserRepo_CreateUser_Call) Return(err error) *MockAdminCreateUserRepo_CreateUser_Call
- func (_c *MockAdminCreateUserRepo_CreateUser_Call) Run(run func(ctx context.Context, user *repository.User)) *MockAdminCreateUserRepo_CreateUser_Call
- func (_c *MockAdminCreateUserRepo_CreateUser_Call) RunAndReturn(run func(ctx context.Context, user *repository.User) error) *MockAdminCreateUserRepo_CreateUser_Call
- type MockAdminCreateUserRepo_Expecter
- func (_e *MockAdminCreateUserRepo_Expecter) CheckEmailExists(ctx any, email any) *MockAdminCreateUserRepo_CheckEmailExists_Call
- func (_e *MockAdminCreateUserRepo_Expecter) CheckUsernameExists(ctx any, username any) *MockAdminCreateUserRepo_CheckUsernameExists_Call
- func (_e *MockAdminCreateUserRepo_Expecter) CreateUser(ctx any, user any) *MockAdminCreateUserRepo_CreateUser_Call
- type MockBlockedEmailRepo
- func (_mock *MockBlockedEmailRepo) BlockEmail(ctx context.Context, email string, reason string) error
- func (_m *MockBlockedEmailRepo) EXPECT() *MockBlockedEmailRepo_Expecter
- func (_mock *MockBlockedEmailRepo) IsEmailBlocked(ctx context.Context, email string) (bool, error)
- func (_mock *MockBlockedEmailRepo) UnblockEmail(ctx context.Context, email string) error
- type MockBlockedEmailRepo_BlockEmail_Call
- func (_c *MockBlockedEmailRepo_BlockEmail_Call) Return(err error) *MockBlockedEmailRepo_BlockEmail_Call
- func (_c *MockBlockedEmailRepo_BlockEmail_Call) Run(run func(ctx context.Context, email string, reason string)) *MockBlockedEmailRepo_BlockEmail_Call
- func (_c *MockBlockedEmailRepo_BlockEmail_Call) RunAndReturn(run func(ctx context.Context, email string, reason string) error) *MockBlockedEmailRepo_BlockEmail_Call
- type MockBlockedEmailRepo_Expecter
- func (_e *MockBlockedEmailRepo_Expecter) BlockEmail(ctx any, email any, reason any) *MockBlockedEmailRepo_BlockEmail_Call
- func (_e *MockBlockedEmailRepo_Expecter) IsEmailBlocked(ctx any, email any) *MockBlockedEmailRepo_IsEmailBlocked_Call
- func (_e *MockBlockedEmailRepo_Expecter) UnblockEmail(ctx any, email any) *MockBlockedEmailRepo_UnblockEmail_Call
- type MockBlockedEmailRepo_IsEmailBlocked_Call
- func (_c *MockBlockedEmailRepo_IsEmailBlocked_Call) Return(b bool, err error) *MockBlockedEmailRepo_IsEmailBlocked_Call
- func (_c *MockBlockedEmailRepo_IsEmailBlocked_Call) Run(run func(ctx context.Context, email string)) *MockBlockedEmailRepo_IsEmailBlocked_Call
- func (_c *MockBlockedEmailRepo_IsEmailBlocked_Call) RunAndReturn(run func(ctx context.Context, email string) (bool, error)) *MockBlockedEmailRepo_IsEmailBlocked_Call
- type MockBlockedEmailRepo_UnblockEmail_Call
- func (_c *MockBlockedEmailRepo_UnblockEmail_Call) Return(err error) *MockBlockedEmailRepo_UnblockEmail_Call
- func (_c *MockBlockedEmailRepo_UnblockEmail_Call) Run(run func(ctx context.Context, email string)) *MockBlockedEmailRepo_UnblockEmail_Call
- func (_c *MockBlockedEmailRepo_UnblockEmail_Call) RunAndReturn(run func(ctx context.Context, email string) error) *MockBlockedEmailRepo_UnblockEmail_Call
- type MockProfileServiceInterface
- func (_mock *MockProfileServiceInterface) ChangePassword(ctx context.Context, userID int, currentPassword string, newPassword string) error
- func (_m *MockProfileServiceInterface) EXPECT() *MockProfileServiceInterface_Expecter
- func (_mock *MockProfileServiceInterface) ExportUserData(ctx context.Context, userID int) (*repository.UserDataExport, error)
- func (_mock *MockProfileServiceInterface) GetProfile(ctx context.Context, userID int) (*user.Profile, error)
- func (_mock *MockProfileServiceInterface) UpdateCustomFields(ctx context.Context, userID int, customFields map[string]any, isAdmin bool) error
- func (_mock *MockProfileServiceInterface) UpdateEmail(ctx context.Context, userID int, newEmail string, currentPasswordHash string) error
- func (_mock *MockProfileServiceInterface) UpdateName(ctx context.Context, userID int, name string) error
- func (_mock *MockProfileServiceInterface) VerifyEmailUpdate(ctx context.Context, token string) (int, string, error)
- type MockProfileServiceInterface_ChangePassword_Call
- func (_c *MockProfileServiceInterface_ChangePassword_Call) Return(err error) *MockProfileServiceInterface_ChangePassword_Call
- func (_c *MockProfileServiceInterface_ChangePassword_Call) Run(...) *MockProfileServiceInterface_ChangePassword_Call
- func (_c *MockProfileServiceInterface_ChangePassword_Call) RunAndReturn(...) *MockProfileServiceInterface_ChangePassword_Call
- type MockProfileServiceInterface_Expecter
- func (_e *MockProfileServiceInterface_Expecter) ChangePassword(ctx any, userID any, currentPassword any, newPassword any) *MockProfileServiceInterface_ChangePassword_Call
- func (_e *MockProfileServiceInterface_Expecter) ExportUserData(ctx any, userID any) *MockProfileServiceInterface_ExportUserData_Call
- func (_e *MockProfileServiceInterface_Expecter) GetProfile(ctx any, userID any) *MockProfileServiceInterface_GetProfile_Call
- func (_e *MockProfileServiceInterface_Expecter) UpdateCustomFields(ctx any, userID any, customFields any, isAdmin any) *MockProfileServiceInterface_UpdateCustomFields_Call
- func (_e *MockProfileServiceInterface_Expecter) UpdateEmail(ctx any, userID any, newEmail any, currentPasswordHash any) *MockProfileServiceInterface_UpdateEmail_Call
- func (_e *MockProfileServiceInterface_Expecter) UpdateName(ctx any, userID any, name any) *MockProfileServiceInterface_UpdateName_Call
- func (_e *MockProfileServiceInterface_Expecter) VerifyEmailUpdate(ctx any, token any) *MockProfileServiceInterface_VerifyEmailUpdate_Call
- type MockProfileServiceInterface_ExportUserData_Call
- func (_c *MockProfileServiceInterface_ExportUserData_Call) Return(userDataExport *repository.UserDataExport, err error) *MockProfileServiceInterface_ExportUserData_Call
- func (_c *MockProfileServiceInterface_ExportUserData_Call) Run(run func(ctx context.Context, userID int)) *MockProfileServiceInterface_ExportUserData_Call
- func (_c *MockProfileServiceInterface_ExportUserData_Call) RunAndReturn(run func(ctx context.Context, userID int) (*repository.UserDataExport, error)) *MockProfileServiceInterface_ExportUserData_Call
- type MockProfileServiceInterface_GetProfile_Call
- func (_c *MockProfileServiceInterface_GetProfile_Call) Return(profile *user.Profile, err error) *MockProfileServiceInterface_GetProfile_Call
- func (_c *MockProfileServiceInterface_GetProfile_Call) Run(run func(ctx context.Context, userID int)) *MockProfileServiceInterface_GetProfile_Call
- func (_c *MockProfileServiceInterface_GetProfile_Call) RunAndReturn(run func(ctx context.Context, userID int) (*user.Profile, error)) *MockProfileServiceInterface_GetProfile_Call
- type MockProfileServiceInterface_UpdateCustomFields_Call
- func (_c *MockProfileServiceInterface_UpdateCustomFields_Call) Return(err error) *MockProfileServiceInterface_UpdateCustomFields_Call
- func (_c *MockProfileServiceInterface_UpdateCustomFields_Call) Run(...) *MockProfileServiceInterface_UpdateCustomFields_Call
- func (_c *MockProfileServiceInterface_UpdateCustomFields_Call) RunAndReturn(...) *MockProfileServiceInterface_UpdateCustomFields_Call
- type MockProfileServiceInterface_UpdateEmail_Call
- func (_c *MockProfileServiceInterface_UpdateEmail_Call) Return(err error) *MockProfileServiceInterface_UpdateEmail_Call
- func (_c *MockProfileServiceInterface_UpdateEmail_Call) Run(...) *MockProfileServiceInterface_UpdateEmail_Call
- func (_c *MockProfileServiceInterface_UpdateEmail_Call) RunAndReturn(...) *MockProfileServiceInterface_UpdateEmail_Call
- type MockProfileServiceInterface_UpdateName_Call
- func (_c *MockProfileServiceInterface_UpdateName_Call) Return(err error) *MockProfileServiceInterface_UpdateName_Call
- func (_c *MockProfileServiceInterface_UpdateName_Call) Run(run func(ctx context.Context, userID int, name string)) *MockProfileServiceInterface_UpdateName_Call
- func (_c *MockProfileServiceInterface_UpdateName_Call) RunAndReturn(run func(ctx context.Context, userID int, name string) error) *MockProfileServiceInterface_UpdateName_Call
- type MockProfileServiceInterface_VerifyEmailUpdate_Call
- func (_c *MockProfileServiceInterface_VerifyEmailUpdate_Call) Return(n int, s string, err error) *MockProfileServiceInterface_VerifyEmailUpdate_Call
- func (_c *MockProfileServiceInterface_VerifyEmailUpdate_Call) Run(run func(ctx context.Context, token string)) *MockProfileServiceInterface_VerifyEmailUpdate_Call
- func (_c *MockProfileServiceInterface_VerifyEmailUpdate_Call) RunAndReturn(run func(ctx context.Context, token string) (int, string, error)) *MockProfileServiceInterface_VerifyEmailUpdate_Call
- type MockUserRepo
- func (_mock *MockUserRepo) CheckEmailExistsForOtherUser(ctx context.Context, userID int, email string) (bool, error)
- func (_mock *MockUserRepo) DeleteUser(ctx context.Context, userID int) error
- func (_m *MockUserRepo) EXPECT() *MockUserRepo_Expecter
- func (_mock *MockUserRepo) GetAllUsers(ctx context.Context, status string, limit int, offset int) ([]*repository.User, error)
- func (_mock *MockUserRepo) GetPendingUsers(ctx context.Context, limit int, offset int) ([]*repository.User, error)
- func (_mock *MockUserRepo) GetUserByID(ctx context.Context, userID int) (*repository.User, error)
- func (_mock *MockUserRepo) GetUserStatus(ctx context.Context, userID int) (string, error)
- func (_mock *MockUserRepo) SoftDeleteUser(ctx context.Context, userID int) error
- func (_mock *MockUserRepo) SuspendUser(ctx context.Context, userID int) error
- func (_mock *MockUserRepo) UnsuspendUser(ctx context.Context, userID int) error
- func (_mock *MockUserRepo) UpdateProfile(ctx context.Context, userID int, name string, email string, role string, ...) error
- func (_mock *MockUserRepo) UpdateUserStatus(ctx context.Context, userID int, status string) error
- func (_mock *MockUserRepo) UpdateUserStatusIfCurrentStatus(ctx context.Context, userID int, currentStatus string, newStatus string) error
- type MockUserRepo_CheckEmailExistsForOtherUser_Call
- func (_c *MockUserRepo_CheckEmailExistsForOtherUser_Call) Return(b bool, err error) *MockUserRepo_CheckEmailExistsForOtherUser_Call
- func (_c *MockUserRepo_CheckEmailExistsForOtherUser_Call) Run(run func(ctx context.Context, userID int, email string)) *MockUserRepo_CheckEmailExistsForOtherUser_Call
- func (_c *MockUserRepo_CheckEmailExistsForOtherUser_Call) RunAndReturn(run func(ctx context.Context, userID int, email string) (bool, error)) *MockUserRepo_CheckEmailExistsForOtherUser_Call
- type MockUserRepo_DeleteUser_Call
- func (_c *MockUserRepo_DeleteUser_Call) Return(err error) *MockUserRepo_DeleteUser_Call
- func (_c *MockUserRepo_DeleteUser_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_DeleteUser_Call
- func (_c *MockUserRepo_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_DeleteUser_Call
- type MockUserRepo_Expecter
- func (_e *MockUserRepo_Expecter) CheckEmailExistsForOtherUser(ctx any, userID any, email any) *MockUserRepo_CheckEmailExistsForOtherUser_Call
- func (_e *MockUserRepo_Expecter) DeleteUser(ctx any, userID any) *MockUserRepo_DeleteUser_Call
- func (_e *MockUserRepo_Expecter) GetAllUsers(ctx any, status any, limit any, offset any) *MockUserRepo_GetAllUsers_Call
- func (_e *MockUserRepo_Expecter) GetPendingUsers(ctx any, limit any, offset any) *MockUserRepo_GetPendingUsers_Call
- func (_e *MockUserRepo_Expecter) GetUserByID(ctx any, userID any) *MockUserRepo_GetUserByID_Call
- func (_e *MockUserRepo_Expecter) GetUserStatus(ctx any, userID any) *MockUserRepo_GetUserStatus_Call
- func (_e *MockUserRepo_Expecter) SoftDeleteUser(ctx any, userID any) *MockUserRepo_SoftDeleteUser_Call
- func (_e *MockUserRepo_Expecter) SuspendUser(ctx any, userID any) *MockUserRepo_SuspendUser_Call
- func (_e *MockUserRepo_Expecter) UnsuspendUser(ctx any, userID any) *MockUserRepo_UnsuspendUser_Call
- func (_e *MockUserRepo_Expecter) UpdateProfile(ctx any, userID any, name any, email any, role any, customFields any) *MockUserRepo_UpdateProfile_Call
- func (_e *MockUserRepo_Expecter) UpdateUserStatus(ctx any, userID any, status any) *MockUserRepo_UpdateUserStatus_Call
- func (_e *MockUserRepo_Expecter) UpdateUserStatusIfCurrentStatus(ctx any, userID any, currentStatus any, newStatus any) *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call
- type MockUserRepo_GetAllUsers_Call
- func (_c *MockUserRepo_GetAllUsers_Call) Return(users []*repository.User, err error) *MockUserRepo_GetAllUsers_Call
- func (_c *MockUserRepo_GetAllUsers_Call) Run(run func(ctx context.Context, status string, limit int, offset int)) *MockUserRepo_GetAllUsers_Call
- func (_c *MockUserRepo_GetAllUsers_Call) RunAndReturn(...) *MockUserRepo_GetAllUsers_Call
- type MockUserRepo_GetPendingUsers_Call
- func (_c *MockUserRepo_GetPendingUsers_Call) Return(users []*repository.User, err error) *MockUserRepo_GetPendingUsers_Call
- func (_c *MockUserRepo_GetPendingUsers_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockUserRepo_GetPendingUsers_Call
- func (_c *MockUserRepo_GetPendingUsers_Call) RunAndReturn(...) *MockUserRepo_GetPendingUsers_Call
- type MockUserRepo_GetUserByID_Call
- func (_c *MockUserRepo_GetUserByID_Call) Return(user *repository.User, err error) *MockUserRepo_GetUserByID_Call
- func (_c *MockUserRepo_GetUserByID_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_GetUserByID_Call
- func (_c *MockUserRepo_GetUserByID_Call) RunAndReturn(run func(ctx context.Context, userID int) (*repository.User, error)) *MockUserRepo_GetUserByID_Call
- type MockUserRepo_GetUserStatus_Call
- func (_c *MockUserRepo_GetUserStatus_Call) Return(s string, err error) *MockUserRepo_GetUserStatus_Call
- func (_c *MockUserRepo_GetUserStatus_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_GetUserStatus_Call
- func (_c *MockUserRepo_GetUserStatus_Call) RunAndReturn(run func(ctx context.Context, userID int) (string, error)) *MockUserRepo_GetUserStatus_Call
- type MockUserRepo_SoftDeleteUser_Call
- func (_c *MockUserRepo_SoftDeleteUser_Call) Return(err error) *MockUserRepo_SoftDeleteUser_Call
- func (_c *MockUserRepo_SoftDeleteUser_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_SoftDeleteUser_Call
- func (_c *MockUserRepo_SoftDeleteUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_SoftDeleteUser_Call
- type MockUserRepo_SuspendUser_Call
- func (_c *MockUserRepo_SuspendUser_Call) Return(err error) *MockUserRepo_SuspendUser_Call
- func (_c *MockUserRepo_SuspendUser_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_SuspendUser_Call
- func (_c *MockUserRepo_SuspendUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_SuspendUser_Call
- type MockUserRepo_UnsuspendUser_Call
- func (_c *MockUserRepo_UnsuspendUser_Call) Return(err error) *MockUserRepo_UnsuspendUser_Call
- func (_c *MockUserRepo_UnsuspendUser_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_UnsuspendUser_Call
- func (_c *MockUserRepo_UnsuspendUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_UnsuspendUser_Call
- type MockUserRepo_UpdateProfile_Call
- type MockUserRepo_UpdateUserStatusIfCurrentStatus_Call
- func (_c *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) Return(err error) *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call
- func (_c *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) Run(...) *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call
- func (_c *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) RunAndReturn(...) *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call
- type MockUserRepo_UpdateUserStatus_Call
- func (_c *MockUserRepo_UpdateUserStatus_Call) Return(err error) *MockUserRepo_UpdateUserStatus_Call
- func (_c *MockUserRepo_UpdateUserStatus_Call) Run(run func(ctx context.Context, userID int, status string)) *MockUserRepo_UpdateUserStatus_Call
- func (_c *MockUserRepo_UpdateUserStatus_Call) RunAndReturn(run func(ctx context.Context, userID int, status string) error) *MockUserRepo_UpdateUserStatus_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccountDeletionServiceInterface ¶
MockAccountDeletionServiceInterface is an autogenerated mock type for the AccountDeletionServiceInterface type
func NewMockAccountDeletionServiceInterface ¶
func NewMockAccountDeletionServiceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockAccountDeletionServiceInterface
NewMockAccountDeletionServiceInterface creates a new instance of MockAccountDeletionServiceInterface. 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 (*MockAccountDeletionServiceInterface) DeleteAccount ¶
func (_mock *MockAccountDeletionServiceInterface) DeleteAccount(ctx context.Context, userID int, username string, userEmail string) error
DeleteAccount provides a mock function for the type MockAccountDeletionServiceInterface
func (*MockAccountDeletionServiceInterface) EXPECT ¶
func (_m *MockAccountDeletionServiceInterface) EXPECT() *MockAccountDeletionServiceInterface_Expecter
func (*MockAccountDeletionServiceInterface) ValidateConfirmationString ¶
func (_mock *MockAccountDeletionServiceInterface) ValidateConfirmationString(confirmation string) error
ValidateConfirmationString provides a mock function for the type MockAccountDeletionServiceInterface
type MockAccountDeletionServiceInterface_DeleteAccount_Call ¶
MockAccountDeletionServiceInterface_DeleteAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAccount'
func (*MockAccountDeletionServiceInterface_DeleteAccount_Call) Run ¶
func (_c *MockAccountDeletionServiceInterface_DeleteAccount_Call) Run(run func(ctx context.Context, userID int, username string, userEmail string)) *MockAccountDeletionServiceInterface_DeleteAccount_Call
func (*MockAccountDeletionServiceInterface_DeleteAccount_Call) RunAndReturn ¶
func (_c *MockAccountDeletionServiceInterface_DeleteAccount_Call) RunAndReturn(run func(ctx context.Context, userID int, username string, userEmail string) error) *MockAccountDeletionServiceInterface_DeleteAccount_Call
type MockAccountDeletionServiceInterface_Expecter ¶
type MockAccountDeletionServiceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAccountDeletionServiceInterface_Expecter) DeleteAccount ¶
func (_e *MockAccountDeletionServiceInterface_Expecter) DeleteAccount(ctx any, userID any, username any, userEmail any) *MockAccountDeletionServiceInterface_DeleteAccount_Call
DeleteAccount is a helper method to define mock.On call
- ctx context.Context
- userID int
- username string
- userEmail string
func (*MockAccountDeletionServiceInterface_Expecter) ValidateConfirmationString ¶
func (_e *MockAccountDeletionServiceInterface_Expecter) ValidateConfirmationString(confirmation any) *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call
ValidateConfirmationString is a helper method to define mock.On call
- confirmation string
type MockAccountDeletionServiceInterface_ValidateConfirmationString_Call ¶
MockAccountDeletionServiceInterface_ValidateConfirmationString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateConfirmationString'
func (*MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) Run ¶
func (_c *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) Run(run func(confirmation string)) *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call
func (*MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) RunAndReturn ¶
func (_c *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) RunAndReturn(run func(confirmation string) error) *MockAccountDeletionServiceInterface_ValidateConfirmationString_Call
type MockAdminCreateUserRepo ¶
MockAdminCreateUserRepo is an autogenerated mock type for the AdminCreateUserRepo type
func NewMockAdminCreateUserRepo ¶
func NewMockAdminCreateUserRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockAdminCreateUserRepo
NewMockAdminCreateUserRepo creates a new instance of MockAdminCreateUserRepo. 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 (*MockAdminCreateUserRepo) CheckEmailExists ¶
func (_mock *MockAdminCreateUserRepo) CheckEmailExists(ctx context.Context, email string) (bool, error)
CheckEmailExists provides a mock function for the type MockAdminCreateUserRepo
func (*MockAdminCreateUserRepo) CheckUsernameExists ¶
func (_mock *MockAdminCreateUserRepo) CheckUsernameExists(ctx context.Context, username string) (bool, error)
CheckUsernameExists provides a mock function for the type MockAdminCreateUserRepo
func (*MockAdminCreateUserRepo) CreateUser ¶
func (_mock *MockAdminCreateUserRepo) CreateUser(ctx context.Context, user *repository.User) error
CreateUser provides a mock function for the type MockAdminCreateUserRepo
func (*MockAdminCreateUserRepo) EXPECT ¶
func (_m *MockAdminCreateUserRepo) EXPECT() *MockAdminCreateUserRepo_Expecter
type MockAdminCreateUserRepo_CheckEmailExists_Call ¶
MockAdminCreateUserRepo_CheckEmailExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckEmailExists'
func (*MockAdminCreateUserRepo_CheckEmailExists_Call) Return ¶
func (_c *MockAdminCreateUserRepo_CheckEmailExists_Call) Return(b bool, err error) *MockAdminCreateUserRepo_CheckEmailExists_Call
func (*MockAdminCreateUserRepo_CheckEmailExists_Call) Run ¶
func (_c *MockAdminCreateUserRepo_CheckEmailExists_Call) Run(run func(ctx context.Context, email string)) *MockAdminCreateUserRepo_CheckEmailExists_Call
func (*MockAdminCreateUserRepo_CheckEmailExists_Call) RunAndReturn ¶
func (_c *MockAdminCreateUserRepo_CheckEmailExists_Call) RunAndReturn(run func(ctx context.Context, email string) (bool, error)) *MockAdminCreateUserRepo_CheckEmailExists_Call
type MockAdminCreateUserRepo_CheckUsernameExists_Call ¶
MockAdminCreateUserRepo_CheckUsernameExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckUsernameExists'
func (*MockAdminCreateUserRepo_CheckUsernameExists_Call) Return ¶
func (_c *MockAdminCreateUserRepo_CheckUsernameExists_Call) Return(b bool, err error) *MockAdminCreateUserRepo_CheckUsernameExists_Call
func (*MockAdminCreateUserRepo_CheckUsernameExists_Call) Run ¶
func (_c *MockAdminCreateUserRepo_CheckUsernameExists_Call) Run(run func(ctx context.Context, username string)) *MockAdminCreateUserRepo_CheckUsernameExists_Call
func (*MockAdminCreateUserRepo_CheckUsernameExists_Call) RunAndReturn ¶
func (_c *MockAdminCreateUserRepo_CheckUsernameExists_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *MockAdminCreateUserRepo_CheckUsernameExists_Call
type MockAdminCreateUserRepo_CreateUser_Call ¶
MockAdminCreateUserRepo_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*MockAdminCreateUserRepo_CreateUser_Call) Return ¶
func (_c *MockAdminCreateUserRepo_CreateUser_Call) Return(err error) *MockAdminCreateUserRepo_CreateUser_Call
func (*MockAdminCreateUserRepo_CreateUser_Call) Run ¶
func (_c *MockAdminCreateUserRepo_CreateUser_Call) Run(run func(ctx context.Context, user *repository.User)) *MockAdminCreateUserRepo_CreateUser_Call
func (*MockAdminCreateUserRepo_CreateUser_Call) RunAndReturn ¶
func (_c *MockAdminCreateUserRepo_CreateUser_Call) RunAndReturn(run func(ctx context.Context, user *repository.User) error) *MockAdminCreateUserRepo_CreateUser_Call
type MockAdminCreateUserRepo_Expecter ¶
type MockAdminCreateUserRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAdminCreateUserRepo_Expecter) CheckEmailExists ¶
func (_e *MockAdminCreateUserRepo_Expecter) CheckEmailExists(ctx any, email any) *MockAdminCreateUserRepo_CheckEmailExists_Call
CheckEmailExists is a helper method to define mock.On call
- ctx context.Context
- email string
func (*MockAdminCreateUserRepo_Expecter) CheckUsernameExists ¶
func (_e *MockAdminCreateUserRepo_Expecter) CheckUsernameExists(ctx any, username any) *MockAdminCreateUserRepo_CheckUsernameExists_Call
CheckUsernameExists is a helper method to define mock.On call
- ctx context.Context
- username string
func (*MockAdminCreateUserRepo_Expecter) CreateUser ¶
func (_e *MockAdminCreateUserRepo_Expecter) CreateUser(ctx any, user any) *MockAdminCreateUserRepo_CreateUser_Call
CreateUser is a helper method to define mock.On call
- ctx context.Context
- user *repository.User
type MockBlockedEmailRepo ¶
MockBlockedEmailRepo is an autogenerated mock type for the BlockedEmailRepo type
func NewMockBlockedEmailRepo ¶
func NewMockBlockedEmailRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockBlockedEmailRepo
NewMockBlockedEmailRepo creates a new instance of MockBlockedEmailRepo. 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 (*MockBlockedEmailRepo) BlockEmail ¶
func (_mock *MockBlockedEmailRepo) BlockEmail(ctx context.Context, email string, reason string) error
BlockEmail provides a mock function for the type MockBlockedEmailRepo
func (*MockBlockedEmailRepo) EXPECT ¶
func (_m *MockBlockedEmailRepo) EXPECT() *MockBlockedEmailRepo_Expecter
func (*MockBlockedEmailRepo) IsEmailBlocked ¶
IsEmailBlocked provides a mock function for the type MockBlockedEmailRepo
func (*MockBlockedEmailRepo) UnblockEmail ¶
func (_mock *MockBlockedEmailRepo) UnblockEmail(ctx context.Context, email string) error
UnblockEmail provides a mock function for the type MockBlockedEmailRepo
type MockBlockedEmailRepo_BlockEmail_Call ¶
MockBlockedEmailRepo_BlockEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockEmail'
func (*MockBlockedEmailRepo_BlockEmail_Call) Return ¶
func (_c *MockBlockedEmailRepo_BlockEmail_Call) Return(err error) *MockBlockedEmailRepo_BlockEmail_Call
func (*MockBlockedEmailRepo_BlockEmail_Call) Run ¶
func (_c *MockBlockedEmailRepo_BlockEmail_Call) Run(run func(ctx context.Context, email string, reason string)) *MockBlockedEmailRepo_BlockEmail_Call
func (*MockBlockedEmailRepo_BlockEmail_Call) RunAndReturn ¶
func (_c *MockBlockedEmailRepo_BlockEmail_Call) RunAndReturn(run func(ctx context.Context, email string, reason string) error) *MockBlockedEmailRepo_BlockEmail_Call
type MockBlockedEmailRepo_Expecter ¶
type MockBlockedEmailRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBlockedEmailRepo_Expecter) BlockEmail ¶
func (_e *MockBlockedEmailRepo_Expecter) BlockEmail(ctx any, email any, reason any) *MockBlockedEmailRepo_BlockEmail_Call
BlockEmail is a helper method to define mock.On call
- ctx context.Context
- email string
- reason string
func (*MockBlockedEmailRepo_Expecter) IsEmailBlocked ¶
func (_e *MockBlockedEmailRepo_Expecter) IsEmailBlocked(ctx any, email any) *MockBlockedEmailRepo_IsEmailBlocked_Call
IsEmailBlocked is a helper method to define mock.On call
- ctx context.Context
- email string
func (*MockBlockedEmailRepo_Expecter) UnblockEmail ¶
func (_e *MockBlockedEmailRepo_Expecter) UnblockEmail(ctx any, email any) *MockBlockedEmailRepo_UnblockEmail_Call
UnblockEmail is a helper method to define mock.On call
- ctx context.Context
- email string
type MockBlockedEmailRepo_IsEmailBlocked_Call ¶
MockBlockedEmailRepo_IsEmailBlocked_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsEmailBlocked'
func (*MockBlockedEmailRepo_IsEmailBlocked_Call) Return ¶
func (_c *MockBlockedEmailRepo_IsEmailBlocked_Call) Return(b bool, err error) *MockBlockedEmailRepo_IsEmailBlocked_Call
func (*MockBlockedEmailRepo_IsEmailBlocked_Call) Run ¶
func (_c *MockBlockedEmailRepo_IsEmailBlocked_Call) Run(run func(ctx context.Context, email string)) *MockBlockedEmailRepo_IsEmailBlocked_Call
func (*MockBlockedEmailRepo_IsEmailBlocked_Call) RunAndReturn ¶
func (_c *MockBlockedEmailRepo_IsEmailBlocked_Call) RunAndReturn(run func(ctx context.Context, email string) (bool, error)) *MockBlockedEmailRepo_IsEmailBlocked_Call
type MockBlockedEmailRepo_UnblockEmail_Call ¶
MockBlockedEmailRepo_UnblockEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnblockEmail'
func (*MockBlockedEmailRepo_UnblockEmail_Call) Return ¶
func (_c *MockBlockedEmailRepo_UnblockEmail_Call) Return(err error) *MockBlockedEmailRepo_UnblockEmail_Call
func (*MockBlockedEmailRepo_UnblockEmail_Call) Run ¶
func (_c *MockBlockedEmailRepo_UnblockEmail_Call) Run(run func(ctx context.Context, email string)) *MockBlockedEmailRepo_UnblockEmail_Call
func (*MockBlockedEmailRepo_UnblockEmail_Call) RunAndReturn ¶
func (_c *MockBlockedEmailRepo_UnblockEmail_Call) RunAndReturn(run func(ctx context.Context, email string) error) *MockBlockedEmailRepo_UnblockEmail_Call
type MockProfileServiceInterface ¶
MockProfileServiceInterface is an autogenerated mock type for the ProfileServiceInterface type
func NewMockProfileServiceInterface ¶
func NewMockProfileServiceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockProfileServiceInterface
NewMockProfileServiceInterface creates a new instance of MockProfileServiceInterface. 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 (*MockProfileServiceInterface) ChangePassword ¶
func (_mock *MockProfileServiceInterface) ChangePassword(ctx context.Context, userID int, currentPassword string, newPassword string) error
ChangePassword provides a mock function for the type MockProfileServiceInterface
func (*MockProfileServiceInterface) EXPECT ¶
func (_m *MockProfileServiceInterface) EXPECT() *MockProfileServiceInterface_Expecter
func (*MockProfileServiceInterface) ExportUserData ¶
func (_mock *MockProfileServiceInterface) ExportUserData(ctx context.Context, userID int) (*repository.UserDataExport, error)
ExportUserData provides a mock function for the type MockProfileServiceInterface
func (*MockProfileServiceInterface) GetProfile ¶
func (_mock *MockProfileServiceInterface) GetProfile(ctx context.Context, userID int) (*user.Profile, error)
GetProfile provides a mock function for the type MockProfileServiceInterface
func (*MockProfileServiceInterface) UpdateCustomFields ¶
func (_mock *MockProfileServiceInterface) UpdateCustomFields(ctx context.Context, userID int, customFields map[string]any, isAdmin bool) error
UpdateCustomFields provides a mock function for the type MockProfileServiceInterface
func (*MockProfileServiceInterface) UpdateEmail ¶
func (_mock *MockProfileServiceInterface) UpdateEmail(ctx context.Context, userID int, newEmail string, currentPasswordHash string) error
UpdateEmail provides a mock function for the type MockProfileServiceInterface
func (*MockProfileServiceInterface) UpdateName ¶ added in v0.2.0
func (_mock *MockProfileServiceInterface) UpdateName(ctx context.Context, userID int, name string) error
UpdateName provides a mock function for the type MockProfileServiceInterface
func (*MockProfileServiceInterface) VerifyEmailUpdate ¶
func (_mock *MockProfileServiceInterface) VerifyEmailUpdate(ctx context.Context, token string) (int, string, error)
VerifyEmailUpdate provides a mock function for the type MockProfileServiceInterface
type MockProfileServiceInterface_ChangePassword_Call ¶
MockProfileServiceInterface_ChangePassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChangePassword'
func (*MockProfileServiceInterface_ChangePassword_Call) Return ¶
func (_c *MockProfileServiceInterface_ChangePassword_Call) Return(err error) *MockProfileServiceInterface_ChangePassword_Call
func (*MockProfileServiceInterface_ChangePassword_Call) Run ¶
func (_c *MockProfileServiceInterface_ChangePassword_Call) Run(run func(ctx context.Context, userID int, currentPassword string, newPassword string)) *MockProfileServiceInterface_ChangePassword_Call
func (*MockProfileServiceInterface_ChangePassword_Call) RunAndReturn ¶
func (_c *MockProfileServiceInterface_ChangePassword_Call) RunAndReturn(run func(ctx context.Context, userID int, currentPassword string, newPassword string) error) *MockProfileServiceInterface_ChangePassword_Call
type MockProfileServiceInterface_Expecter ¶
type MockProfileServiceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProfileServiceInterface_Expecter) ChangePassword ¶
func (_e *MockProfileServiceInterface_Expecter) ChangePassword(ctx any, userID any, currentPassword any, newPassword any) *MockProfileServiceInterface_ChangePassword_Call
ChangePassword is a helper method to define mock.On call
- ctx context.Context
- userID int
- currentPassword string
- newPassword string
func (*MockProfileServiceInterface_Expecter) ExportUserData ¶
func (_e *MockProfileServiceInterface_Expecter) ExportUserData(ctx any, userID any) *MockProfileServiceInterface_ExportUserData_Call
ExportUserData is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockProfileServiceInterface_Expecter) GetProfile ¶
func (_e *MockProfileServiceInterface_Expecter) GetProfile(ctx any, userID any) *MockProfileServiceInterface_GetProfile_Call
GetProfile is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockProfileServiceInterface_Expecter) UpdateCustomFields ¶
func (_e *MockProfileServiceInterface_Expecter) UpdateCustomFields(ctx any, userID any, customFields any, isAdmin any) *MockProfileServiceInterface_UpdateCustomFields_Call
UpdateCustomFields is a helper method to define mock.On call
- ctx context.Context
- userID int
- customFields map[string]any
- isAdmin bool
func (*MockProfileServiceInterface_Expecter) UpdateEmail ¶
func (_e *MockProfileServiceInterface_Expecter) UpdateEmail(ctx any, userID any, newEmail any, currentPasswordHash any) *MockProfileServiceInterface_UpdateEmail_Call
UpdateEmail is a helper method to define mock.On call
- ctx context.Context
- userID int
- newEmail string
- currentPasswordHash string
func (*MockProfileServiceInterface_Expecter) UpdateName ¶ added in v0.2.0
func (_e *MockProfileServiceInterface_Expecter) UpdateName(ctx any, userID any, name any) *MockProfileServiceInterface_UpdateName_Call
UpdateName is a helper method to define mock.On call
- ctx context.Context
- userID int
- name string
func (*MockProfileServiceInterface_Expecter) VerifyEmailUpdate ¶
func (_e *MockProfileServiceInterface_Expecter) VerifyEmailUpdate(ctx any, token any) *MockProfileServiceInterface_VerifyEmailUpdate_Call
VerifyEmailUpdate is a helper method to define mock.On call
- ctx context.Context
- token string
type MockProfileServiceInterface_ExportUserData_Call ¶
MockProfileServiceInterface_ExportUserData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExportUserData'
func (*MockProfileServiceInterface_ExportUserData_Call) Return ¶
func (_c *MockProfileServiceInterface_ExportUserData_Call) Return(userDataExport *repository.UserDataExport, err error) *MockProfileServiceInterface_ExportUserData_Call
func (*MockProfileServiceInterface_ExportUserData_Call) Run ¶
func (_c *MockProfileServiceInterface_ExportUserData_Call) Run(run func(ctx context.Context, userID int)) *MockProfileServiceInterface_ExportUserData_Call
func (*MockProfileServiceInterface_ExportUserData_Call) RunAndReturn ¶
func (_c *MockProfileServiceInterface_ExportUserData_Call) RunAndReturn(run func(ctx context.Context, userID int) (*repository.UserDataExport, error)) *MockProfileServiceInterface_ExportUserData_Call
type MockProfileServiceInterface_GetProfile_Call ¶
MockProfileServiceInterface_GetProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProfile'
func (*MockProfileServiceInterface_GetProfile_Call) Return ¶
func (_c *MockProfileServiceInterface_GetProfile_Call) Return(profile *user.Profile, err error) *MockProfileServiceInterface_GetProfile_Call
func (*MockProfileServiceInterface_GetProfile_Call) Run ¶
func (_c *MockProfileServiceInterface_GetProfile_Call) Run(run func(ctx context.Context, userID int)) *MockProfileServiceInterface_GetProfile_Call
func (*MockProfileServiceInterface_GetProfile_Call) RunAndReturn ¶
func (_c *MockProfileServiceInterface_GetProfile_Call) RunAndReturn(run func(ctx context.Context, userID int) (*user.Profile, error)) *MockProfileServiceInterface_GetProfile_Call
type MockProfileServiceInterface_UpdateCustomFields_Call ¶
MockProfileServiceInterface_UpdateCustomFields_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCustomFields'
func (*MockProfileServiceInterface_UpdateCustomFields_Call) Run ¶
func (_c *MockProfileServiceInterface_UpdateCustomFields_Call) Run(run func(ctx context.Context, userID int, customFields map[string]any, isAdmin bool)) *MockProfileServiceInterface_UpdateCustomFields_Call
func (*MockProfileServiceInterface_UpdateCustomFields_Call) RunAndReturn ¶
func (_c *MockProfileServiceInterface_UpdateCustomFields_Call) RunAndReturn(run func(ctx context.Context, userID int, customFields map[string]any, isAdmin bool) error) *MockProfileServiceInterface_UpdateCustomFields_Call
type MockProfileServiceInterface_UpdateEmail_Call ¶
MockProfileServiceInterface_UpdateEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEmail'
func (*MockProfileServiceInterface_UpdateEmail_Call) Return ¶
func (_c *MockProfileServiceInterface_UpdateEmail_Call) Return(err error) *MockProfileServiceInterface_UpdateEmail_Call
func (*MockProfileServiceInterface_UpdateEmail_Call) Run ¶
func (_c *MockProfileServiceInterface_UpdateEmail_Call) Run(run func(ctx context.Context, userID int, newEmail string, currentPasswordHash string)) *MockProfileServiceInterface_UpdateEmail_Call
func (*MockProfileServiceInterface_UpdateEmail_Call) RunAndReturn ¶
func (_c *MockProfileServiceInterface_UpdateEmail_Call) RunAndReturn(run func(ctx context.Context, userID int, newEmail string, currentPasswordHash string) error) *MockProfileServiceInterface_UpdateEmail_Call
type MockProfileServiceInterface_UpdateName_Call ¶ added in v0.2.0
MockProfileServiceInterface_UpdateName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateName'
func (*MockProfileServiceInterface_UpdateName_Call) Return ¶ added in v0.2.0
func (_c *MockProfileServiceInterface_UpdateName_Call) Return(err error) *MockProfileServiceInterface_UpdateName_Call
func (*MockProfileServiceInterface_UpdateName_Call) Run ¶ added in v0.2.0
func (_c *MockProfileServiceInterface_UpdateName_Call) Run(run func(ctx context.Context, userID int, name string)) *MockProfileServiceInterface_UpdateName_Call
func (*MockProfileServiceInterface_UpdateName_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockProfileServiceInterface_UpdateName_Call) RunAndReturn(run func(ctx context.Context, userID int, name string) error) *MockProfileServiceInterface_UpdateName_Call
type MockProfileServiceInterface_VerifyEmailUpdate_Call ¶
MockProfileServiceInterface_VerifyEmailUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyEmailUpdate'
func (*MockProfileServiceInterface_VerifyEmailUpdate_Call) Return ¶
func (_c *MockProfileServiceInterface_VerifyEmailUpdate_Call) Return(n int, s string, err error) *MockProfileServiceInterface_VerifyEmailUpdate_Call
func (*MockProfileServiceInterface_VerifyEmailUpdate_Call) Run ¶
func (_c *MockProfileServiceInterface_VerifyEmailUpdate_Call) Run(run func(ctx context.Context, token string)) *MockProfileServiceInterface_VerifyEmailUpdate_Call
func (*MockProfileServiceInterface_VerifyEmailUpdate_Call) RunAndReturn ¶
func (_c *MockProfileServiceInterface_VerifyEmailUpdate_Call) RunAndReturn(run func(ctx context.Context, token string) (int, string, error)) *MockProfileServiceInterface_VerifyEmailUpdate_Call
type MockUserRepo ¶
MockUserRepo is an autogenerated mock type for the UserRepo type
func NewMockUserRepo ¶
func NewMockUserRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockUserRepo
NewMockUserRepo creates a new instance of MockUserRepo. 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 (*MockUserRepo) CheckEmailExistsForOtherUser ¶
func (_mock *MockUserRepo) CheckEmailExistsForOtherUser(ctx context.Context, userID int, email string) (bool, error)
CheckEmailExistsForOtherUser provides a mock function for the type MockUserRepo
func (*MockUserRepo) DeleteUser ¶
func (_mock *MockUserRepo) DeleteUser(ctx context.Context, userID int) error
DeleteUser provides a mock function for the type MockUserRepo
func (*MockUserRepo) EXPECT ¶
func (_m *MockUserRepo) EXPECT() *MockUserRepo_Expecter
func (*MockUserRepo) GetAllUsers ¶
func (_mock *MockUserRepo) GetAllUsers(ctx context.Context, status string, limit int, offset int) ([]*repository.User, error)
GetAllUsers provides a mock function for the type MockUserRepo
func (*MockUserRepo) GetPendingUsers ¶
func (_mock *MockUserRepo) GetPendingUsers(ctx context.Context, limit int, offset int) ([]*repository.User, error)
GetPendingUsers provides a mock function for the type MockUserRepo
func (*MockUserRepo) GetUserByID ¶
func (_mock *MockUserRepo) GetUserByID(ctx context.Context, userID int) (*repository.User, error)
GetUserByID provides a mock function for the type MockUserRepo
func (*MockUserRepo) GetUserStatus ¶
GetUserStatus provides a mock function for the type MockUserRepo
func (*MockUserRepo) SoftDeleteUser ¶
func (_mock *MockUserRepo) SoftDeleteUser(ctx context.Context, userID int) error
SoftDeleteUser provides a mock function for the type MockUserRepo
func (*MockUserRepo) SuspendUser ¶
func (_mock *MockUserRepo) SuspendUser(ctx context.Context, userID int) error
SuspendUser provides a mock function for the type MockUserRepo
func (*MockUserRepo) UnsuspendUser ¶
func (_mock *MockUserRepo) UnsuspendUser(ctx context.Context, userID int) error
UnsuspendUser provides a mock function for the type MockUserRepo
func (*MockUserRepo) UpdateProfile ¶
func (_mock *MockUserRepo) UpdateProfile(ctx context.Context, userID int, name string, email string, role string, customFields map[string]any) error
UpdateProfile provides a mock function for the type MockUserRepo
func (*MockUserRepo) UpdateUserStatus ¶
UpdateUserStatus provides a mock function for the type MockUserRepo
func (*MockUserRepo) UpdateUserStatusIfCurrentStatus ¶
func (_mock *MockUserRepo) UpdateUserStatusIfCurrentStatus(ctx context.Context, userID int, currentStatus string, newStatus string) error
UpdateUserStatusIfCurrentStatus provides a mock function for the type MockUserRepo
type MockUserRepo_CheckEmailExistsForOtherUser_Call ¶
MockUserRepo_CheckEmailExistsForOtherUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckEmailExistsForOtherUser'
func (*MockUserRepo_CheckEmailExistsForOtherUser_Call) Return ¶
func (_c *MockUserRepo_CheckEmailExistsForOtherUser_Call) Return(b bool, err error) *MockUserRepo_CheckEmailExistsForOtherUser_Call
func (*MockUserRepo_CheckEmailExistsForOtherUser_Call) Run ¶
func (_c *MockUserRepo_CheckEmailExistsForOtherUser_Call) Run(run func(ctx context.Context, userID int, email string)) *MockUserRepo_CheckEmailExistsForOtherUser_Call
func (*MockUserRepo_CheckEmailExistsForOtherUser_Call) RunAndReturn ¶
func (_c *MockUserRepo_CheckEmailExistsForOtherUser_Call) RunAndReturn(run func(ctx context.Context, userID int, email string) (bool, error)) *MockUserRepo_CheckEmailExistsForOtherUser_Call
type MockUserRepo_DeleteUser_Call ¶
MockUserRepo_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'
func (*MockUserRepo_DeleteUser_Call) Return ¶
func (_c *MockUserRepo_DeleteUser_Call) Return(err error) *MockUserRepo_DeleteUser_Call
func (*MockUserRepo_DeleteUser_Call) Run ¶
func (_c *MockUserRepo_DeleteUser_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_DeleteUser_Call
func (*MockUserRepo_DeleteUser_Call) RunAndReturn ¶
func (_c *MockUserRepo_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_DeleteUser_Call
type MockUserRepo_Expecter ¶
type MockUserRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUserRepo_Expecter) CheckEmailExistsForOtherUser ¶
func (_e *MockUserRepo_Expecter) CheckEmailExistsForOtherUser(ctx any, userID any, email any) *MockUserRepo_CheckEmailExistsForOtherUser_Call
CheckEmailExistsForOtherUser is a helper method to define mock.On call
- ctx context.Context
- userID int
- email string
func (*MockUserRepo_Expecter) DeleteUser ¶
func (_e *MockUserRepo_Expecter) DeleteUser(ctx any, userID any) *MockUserRepo_DeleteUser_Call
DeleteUser is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserRepo_Expecter) GetAllUsers ¶
func (_e *MockUserRepo_Expecter) GetAllUsers(ctx any, status any, limit any, offset any) *MockUserRepo_GetAllUsers_Call
GetAllUsers is a helper method to define mock.On call
- ctx context.Context
- status string
- limit int
- offset int
func (*MockUserRepo_Expecter) GetPendingUsers ¶
func (_e *MockUserRepo_Expecter) GetPendingUsers(ctx any, limit any, offset any) *MockUserRepo_GetPendingUsers_Call
GetPendingUsers is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockUserRepo_Expecter) GetUserByID ¶
func (_e *MockUserRepo_Expecter) GetUserByID(ctx any, userID any) *MockUserRepo_GetUserByID_Call
GetUserByID is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserRepo_Expecter) GetUserStatus ¶
func (_e *MockUserRepo_Expecter) GetUserStatus(ctx any, userID any) *MockUserRepo_GetUserStatus_Call
GetUserStatus is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserRepo_Expecter) SoftDeleteUser ¶
func (_e *MockUserRepo_Expecter) SoftDeleteUser(ctx any, userID any) *MockUserRepo_SoftDeleteUser_Call
SoftDeleteUser is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserRepo_Expecter) SuspendUser ¶
func (_e *MockUserRepo_Expecter) SuspendUser(ctx any, userID any) *MockUserRepo_SuspendUser_Call
SuspendUser is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserRepo_Expecter) UnsuspendUser ¶
func (_e *MockUserRepo_Expecter) UnsuspendUser(ctx any, userID any) *MockUserRepo_UnsuspendUser_Call
UnsuspendUser is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserRepo_Expecter) UpdateProfile ¶
func (_e *MockUserRepo_Expecter) UpdateProfile(ctx any, userID any, name any, email any, role any, customFields any) *MockUserRepo_UpdateProfile_Call
UpdateProfile is a helper method to define mock.On call
- ctx context.Context
- userID int
- name string
- email string
- role string
- customFields map[string]any
func (*MockUserRepo_Expecter) UpdateUserStatus ¶
func (_e *MockUserRepo_Expecter) UpdateUserStatus(ctx any, userID any, status any) *MockUserRepo_UpdateUserStatus_Call
UpdateUserStatus is a helper method to define mock.On call
- ctx context.Context
- userID int
- status string
func (*MockUserRepo_Expecter) UpdateUserStatusIfCurrentStatus ¶
func (_e *MockUserRepo_Expecter) UpdateUserStatusIfCurrentStatus(ctx any, userID any, currentStatus any, newStatus any) *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call
UpdateUserStatusIfCurrentStatus is a helper method to define mock.On call
- ctx context.Context
- userID int
- currentStatus string
- newStatus string
type MockUserRepo_GetAllUsers_Call ¶
MockUserRepo_GetAllUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllUsers'
func (*MockUserRepo_GetAllUsers_Call) Return ¶
func (_c *MockUserRepo_GetAllUsers_Call) Return(users []*repository.User, err error) *MockUserRepo_GetAllUsers_Call
func (*MockUserRepo_GetAllUsers_Call) Run ¶
func (_c *MockUserRepo_GetAllUsers_Call) Run(run func(ctx context.Context, status string, limit int, offset int)) *MockUserRepo_GetAllUsers_Call
func (*MockUserRepo_GetAllUsers_Call) RunAndReturn ¶
func (_c *MockUserRepo_GetAllUsers_Call) RunAndReturn(run func(ctx context.Context, status string, limit int, offset int) ([]*repository.User, error)) *MockUserRepo_GetAllUsers_Call
type MockUserRepo_GetPendingUsers_Call ¶
MockUserRepo_GetPendingUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPendingUsers'
func (*MockUserRepo_GetPendingUsers_Call) Return ¶
func (_c *MockUserRepo_GetPendingUsers_Call) Return(users []*repository.User, err error) *MockUserRepo_GetPendingUsers_Call
func (*MockUserRepo_GetPendingUsers_Call) Run ¶
func (_c *MockUserRepo_GetPendingUsers_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockUserRepo_GetPendingUsers_Call
func (*MockUserRepo_GetPendingUsers_Call) RunAndReturn ¶
func (_c *MockUserRepo_GetPendingUsers_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*repository.User, error)) *MockUserRepo_GetPendingUsers_Call
type MockUserRepo_GetUserByID_Call ¶
MockUserRepo_GetUserByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByID'
func (*MockUserRepo_GetUserByID_Call) Return ¶
func (_c *MockUserRepo_GetUserByID_Call) Return(user *repository.User, err error) *MockUserRepo_GetUserByID_Call
func (*MockUserRepo_GetUserByID_Call) Run ¶
func (_c *MockUserRepo_GetUserByID_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_GetUserByID_Call
func (*MockUserRepo_GetUserByID_Call) RunAndReturn ¶
func (_c *MockUserRepo_GetUserByID_Call) RunAndReturn(run func(ctx context.Context, userID int) (*repository.User, error)) *MockUserRepo_GetUserByID_Call
type MockUserRepo_GetUserStatus_Call ¶
MockUserRepo_GetUserStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserStatus'
func (*MockUserRepo_GetUserStatus_Call) Return ¶
func (_c *MockUserRepo_GetUserStatus_Call) Return(s string, err error) *MockUserRepo_GetUserStatus_Call
func (*MockUserRepo_GetUserStatus_Call) Run ¶
func (_c *MockUserRepo_GetUserStatus_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_GetUserStatus_Call
func (*MockUserRepo_GetUserStatus_Call) RunAndReturn ¶
func (_c *MockUserRepo_GetUserStatus_Call) RunAndReturn(run func(ctx context.Context, userID int) (string, error)) *MockUserRepo_GetUserStatus_Call
type MockUserRepo_SoftDeleteUser_Call ¶
MockUserRepo_SoftDeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SoftDeleteUser'
func (*MockUserRepo_SoftDeleteUser_Call) Return ¶
func (_c *MockUserRepo_SoftDeleteUser_Call) Return(err error) *MockUserRepo_SoftDeleteUser_Call
func (*MockUserRepo_SoftDeleteUser_Call) Run ¶
func (_c *MockUserRepo_SoftDeleteUser_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_SoftDeleteUser_Call
func (*MockUserRepo_SoftDeleteUser_Call) RunAndReturn ¶
func (_c *MockUserRepo_SoftDeleteUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_SoftDeleteUser_Call
type MockUserRepo_SuspendUser_Call ¶
MockUserRepo_SuspendUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuspendUser'
func (*MockUserRepo_SuspendUser_Call) Return ¶
func (_c *MockUserRepo_SuspendUser_Call) Return(err error) *MockUserRepo_SuspendUser_Call
func (*MockUserRepo_SuspendUser_Call) Run ¶
func (_c *MockUserRepo_SuspendUser_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_SuspendUser_Call
func (*MockUserRepo_SuspendUser_Call) RunAndReturn ¶
func (_c *MockUserRepo_SuspendUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_SuspendUser_Call
type MockUserRepo_UnsuspendUser_Call ¶
MockUserRepo_UnsuspendUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnsuspendUser'
func (*MockUserRepo_UnsuspendUser_Call) Return ¶
func (_c *MockUserRepo_UnsuspendUser_Call) Return(err error) *MockUserRepo_UnsuspendUser_Call
func (*MockUserRepo_UnsuspendUser_Call) Run ¶
func (_c *MockUserRepo_UnsuspendUser_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_UnsuspendUser_Call
func (*MockUserRepo_UnsuspendUser_Call) RunAndReturn ¶
func (_c *MockUserRepo_UnsuspendUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_UnsuspendUser_Call
type MockUserRepo_UpdateProfile_Call ¶
MockUserRepo_UpdateProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProfile'
func (*MockUserRepo_UpdateProfile_Call) Return ¶
func (_c *MockUserRepo_UpdateProfile_Call) Return(err error) *MockUserRepo_UpdateProfile_Call
func (*MockUserRepo_UpdateProfile_Call) Run ¶
func (_c *MockUserRepo_UpdateProfile_Call) Run(run func(ctx context.Context, userID int, name string, email string, role string, customFields map[string]any)) *MockUserRepo_UpdateProfile_Call
func (*MockUserRepo_UpdateProfile_Call) RunAndReturn ¶
type MockUserRepo_UpdateUserStatusIfCurrentStatus_Call ¶
MockUserRepo_UpdateUserStatusIfCurrentStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUserStatusIfCurrentStatus'
func (*MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) Return ¶
func (_c *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) Return(err error) *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call
func (*MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) Run ¶
func (_c *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) Run(run func(ctx context.Context, userID int, currentStatus string, newStatus string)) *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call
func (*MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) RunAndReturn ¶
func (_c *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) RunAndReturn(run func(ctx context.Context, userID int, currentStatus string, newStatus string) error) *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call
type MockUserRepo_UpdateUserStatus_Call ¶
MockUserRepo_UpdateUserStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUserStatus'
func (*MockUserRepo_UpdateUserStatus_Call) Return ¶
func (_c *MockUserRepo_UpdateUserStatus_Call) Return(err error) *MockUserRepo_UpdateUserStatus_Call
func (*MockUserRepo_UpdateUserStatus_Call) Run ¶
func (_c *MockUserRepo_UpdateUserStatus_Call) Run(run func(ctx context.Context, userID int, status string)) *MockUserRepo_UpdateUserStatus_Call
func (*MockUserRepo_UpdateUserStatus_Call) RunAndReturn ¶
func (_c *MockUserRepo_UpdateUserStatus_Call) RunAndReturn(run func(ctx context.Context, userID int, status string) error) *MockUserRepo_UpdateUserStatus_Call