Documentation
¶
Index ¶
- 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 MockEmailUpdateTokenRepo
- func (_mock *MockEmailUpdateTokenRepo) CleanUpExpiredTokens(ctx context.Context) error
- func (_mock *MockEmailUpdateTokenRepo) CreateToken(ctx context.Context, token string, userID int, newEmail string) error
- func (_mock *MockEmailUpdateTokenRepo) DeleteToken(ctx context.Context, tokenID int) error
- func (_m *MockEmailUpdateTokenRepo) EXPECT() *MockEmailUpdateTokenRepo_Expecter
- func (_mock *MockEmailUpdateTokenRepo) GetToken(ctx context.Context, token string) (*repository.EmailUpdateToken, error)
- type MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call
- func (_c *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) Return(err error) *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call
- func (_c *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) Run(run func(ctx context.Context)) *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call
- func (_c *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) RunAndReturn(run func(ctx context.Context) error) *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call
- type MockEmailUpdateTokenRepo_CreateToken_Call
- func (_c *MockEmailUpdateTokenRepo_CreateToken_Call) Return(err error) *MockEmailUpdateTokenRepo_CreateToken_Call
- func (_c *MockEmailUpdateTokenRepo_CreateToken_Call) Run(run func(ctx context.Context, token string, userID int, newEmail string)) *MockEmailUpdateTokenRepo_CreateToken_Call
- func (_c *MockEmailUpdateTokenRepo_CreateToken_Call) RunAndReturn(run func(ctx context.Context, token string, userID int, newEmail string) error) *MockEmailUpdateTokenRepo_CreateToken_Call
- type MockEmailUpdateTokenRepo_DeleteToken_Call
- func (_c *MockEmailUpdateTokenRepo_DeleteToken_Call) Return(err error) *MockEmailUpdateTokenRepo_DeleteToken_Call
- func (_c *MockEmailUpdateTokenRepo_DeleteToken_Call) Run(run func(ctx context.Context, tokenID int)) *MockEmailUpdateTokenRepo_DeleteToken_Call
- func (_c *MockEmailUpdateTokenRepo_DeleteToken_Call) RunAndReturn(run func(ctx context.Context, tokenID int) error) *MockEmailUpdateTokenRepo_DeleteToken_Call
- type MockEmailUpdateTokenRepo_Expecter
- func (_e *MockEmailUpdateTokenRepo_Expecter) CleanUpExpiredTokens(ctx any) *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call
- func (_e *MockEmailUpdateTokenRepo_Expecter) CreateToken(ctx any, token any, userID any, newEmail any) *MockEmailUpdateTokenRepo_CreateToken_Call
- func (_e *MockEmailUpdateTokenRepo_Expecter) DeleteToken(ctx any, tokenID any) *MockEmailUpdateTokenRepo_DeleteToken_Call
- func (_e *MockEmailUpdateTokenRepo_Expecter) GetToken(ctx any, token any) *MockEmailUpdateTokenRepo_GetToken_Call
- type MockEmailUpdateTokenRepo_GetToken_Call
- func (_c *MockEmailUpdateTokenRepo_GetToken_Call) Return(emailUpdateToken *repository.EmailUpdateToken, err error) *MockEmailUpdateTokenRepo_GetToken_Call
- func (_c *MockEmailUpdateTokenRepo_GetToken_Call) Run(run func(ctx context.Context, token string)) *MockEmailUpdateTokenRepo_GetToken_Call
- func (_c *MockEmailUpdateTokenRepo_GetToken_Call) RunAndReturn(...) *MockEmailUpdateTokenRepo_GetToken_Call
- type MockFailedLoginAttemptRepo
- func (_mock *MockFailedLoginAttemptRepo) Create(ctx context.Context, attempt *repository.FailedLoginAttempt) error
- func (_mock *MockFailedLoginAttemptRepo) Delete(ctx context.Context, userID int) error
- func (_m *MockFailedLoginAttemptRepo) EXPECT() *MockFailedLoginAttemptRepo_Expecter
- func (_mock *MockFailedLoginAttemptRepo) GetByUserID(ctx context.Context, userID int) (*repository.FailedLoginAttempt, error)
- func (_mock *MockFailedLoginAttemptRepo) IncrementAttempts(ctx context.Context, userID int) error
- func (_mock *MockFailedLoginAttemptRepo) IsLocked(ctx context.Context, userID int) (bool, *time.Time, error)
- func (_mock *MockFailedLoginAttemptRepo) LockAccount(ctx context.Context, userID int, lockoutDuration time.Duration) error
- func (_mock *MockFailedLoginAttemptRepo) ResetAttempts(ctx context.Context, userID int) error
- func (_mock *MockFailedLoginAttemptRepo) ShouldSendLockoutEmail(ctx context.Context, userID int, minInterval time.Duration) (bool, error)
- func (_mock *MockFailedLoginAttemptRepo) UpdateLastEmailSent(ctx context.Context, userID int) error
- type MockFailedLoginAttemptRepo_Create_Call
- func (_c *MockFailedLoginAttemptRepo_Create_Call) Return(err error) *MockFailedLoginAttemptRepo_Create_Call
- func (_c *MockFailedLoginAttemptRepo_Create_Call) Run(run func(ctx context.Context, attempt *repository.FailedLoginAttempt)) *MockFailedLoginAttemptRepo_Create_Call
- func (_c *MockFailedLoginAttemptRepo_Create_Call) RunAndReturn(run func(ctx context.Context, attempt *repository.FailedLoginAttempt) error) *MockFailedLoginAttemptRepo_Create_Call
- type MockFailedLoginAttemptRepo_Delete_Call
- func (_c *MockFailedLoginAttemptRepo_Delete_Call) Return(err error) *MockFailedLoginAttemptRepo_Delete_Call
- func (_c *MockFailedLoginAttemptRepo_Delete_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_Delete_Call
- func (_c *MockFailedLoginAttemptRepo_Delete_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockFailedLoginAttemptRepo_Delete_Call
- type MockFailedLoginAttemptRepo_Expecter
- func (_e *MockFailedLoginAttemptRepo_Expecter) Create(ctx any, attempt any) *MockFailedLoginAttemptRepo_Create_Call
- func (_e *MockFailedLoginAttemptRepo_Expecter) Delete(ctx any, userID any) *MockFailedLoginAttemptRepo_Delete_Call
- func (_e *MockFailedLoginAttemptRepo_Expecter) GetByUserID(ctx any, userID any) *MockFailedLoginAttemptRepo_GetByUserID_Call
- func (_e *MockFailedLoginAttemptRepo_Expecter) IncrementAttempts(ctx any, userID any) *MockFailedLoginAttemptRepo_IncrementAttempts_Call
- func (_e *MockFailedLoginAttemptRepo_Expecter) IsLocked(ctx any, userID any) *MockFailedLoginAttemptRepo_IsLocked_Call
- func (_e *MockFailedLoginAttemptRepo_Expecter) LockAccount(ctx any, userID any, lockoutDuration any) *MockFailedLoginAttemptRepo_LockAccount_Call
- func (_e *MockFailedLoginAttemptRepo_Expecter) ResetAttempts(ctx any, userID any) *MockFailedLoginAttemptRepo_ResetAttempts_Call
- func (_e *MockFailedLoginAttemptRepo_Expecter) ShouldSendLockoutEmail(ctx any, userID any, minInterval any) *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call
- func (_e *MockFailedLoginAttemptRepo_Expecter) UpdateLastEmailSent(ctx any, userID any) *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call
- type MockFailedLoginAttemptRepo_GetByUserID_Call
- func (_c *MockFailedLoginAttemptRepo_GetByUserID_Call) Return(failedLoginAttempt *repository.FailedLoginAttempt, err error) *MockFailedLoginAttemptRepo_GetByUserID_Call
- func (_c *MockFailedLoginAttemptRepo_GetByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_GetByUserID_Call
- func (_c *MockFailedLoginAttemptRepo_GetByUserID_Call) RunAndReturn(...) *MockFailedLoginAttemptRepo_GetByUserID_Call
- type MockFailedLoginAttemptRepo_IncrementAttempts_Call
- func (_c *MockFailedLoginAttemptRepo_IncrementAttempts_Call) Return(err error) *MockFailedLoginAttemptRepo_IncrementAttempts_Call
- func (_c *MockFailedLoginAttemptRepo_IncrementAttempts_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_IncrementAttempts_Call
- func (_c *MockFailedLoginAttemptRepo_IncrementAttempts_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockFailedLoginAttemptRepo_IncrementAttempts_Call
- type MockFailedLoginAttemptRepo_IsLocked_Call
- func (_c *MockFailedLoginAttemptRepo_IsLocked_Call) Return(b bool, time1 *time.Time, err error) *MockFailedLoginAttemptRepo_IsLocked_Call
- func (_c *MockFailedLoginAttemptRepo_IsLocked_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_IsLocked_Call
- func (_c *MockFailedLoginAttemptRepo_IsLocked_Call) RunAndReturn(run func(ctx context.Context, userID int) (bool, *time.Time, error)) *MockFailedLoginAttemptRepo_IsLocked_Call
- type MockFailedLoginAttemptRepo_LockAccount_Call
- func (_c *MockFailedLoginAttemptRepo_LockAccount_Call) Return(err error) *MockFailedLoginAttemptRepo_LockAccount_Call
- func (_c *MockFailedLoginAttemptRepo_LockAccount_Call) Run(run func(ctx context.Context, userID int, lockoutDuration time.Duration)) *MockFailedLoginAttemptRepo_LockAccount_Call
- func (_c *MockFailedLoginAttemptRepo_LockAccount_Call) RunAndReturn(run func(ctx context.Context, userID int, lockoutDuration time.Duration) error) *MockFailedLoginAttemptRepo_LockAccount_Call
- type MockFailedLoginAttemptRepo_ResetAttempts_Call
- func (_c *MockFailedLoginAttemptRepo_ResetAttempts_Call) Return(err error) *MockFailedLoginAttemptRepo_ResetAttempts_Call
- func (_c *MockFailedLoginAttemptRepo_ResetAttempts_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_ResetAttempts_Call
- func (_c *MockFailedLoginAttemptRepo_ResetAttempts_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockFailedLoginAttemptRepo_ResetAttempts_Call
- type MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call
- func (_c *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) Return(b bool, err error) *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call
- func (_c *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) Run(run func(ctx context.Context, userID int, minInterval time.Duration)) *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call
- func (_c *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) RunAndReturn(...) *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call
- type MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call
- func (_c *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) Return(err error) *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call
- func (_c *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call
- func (_c *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call
- type MockNotificationRepo
- func (_mock *MockNotificationRepo) CreateNotification(ctx context.Context, notificationType repository.NotificationType, ...) error
- func (_m *MockNotificationRepo) EXPECT() *MockNotificationRepo_Expecter
- func (_mock *MockNotificationRepo) GetNotifications(ctx context.Context, limit int) ([]repository.Notification, error)
- type MockNotificationRepo_CreateNotification_Call
- func (_c *MockNotificationRepo_CreateNotification_Call) Return(err error) *MockNotificationRepo_CreateNotification_Call
- func (_c *MockNotificationRepo_CreateNotification_Call) Run(...) *MockNotificationRepo_CreateNotification_Call
- func (_c *MockNotificationRepo_CreateNotification_Call) RunAndReturn(...) *MockNotificationRepo_CreateNotification_Call
- type MockNotificationRepo_Expecter
- type MockNotificationRepo_GetNotifications_Call
- func (_c *MockNotificationRepo_GetNotifications_Call) Return(notifications []repository.Notification, err error) *MockNotificationRepo_GetNotifications_Call
- func (_c *MockNotificationRepo_GetNotifications_Call) Run(run func(ctx context.Context, limit int)) *MockNotificationRepo_GetNotifications_Call
- func (_c *MockNotificationRepo_GetNotifications_Call) RunAndReturn(run func(ctx context.Context, limit int) ([]repository.Notification, error)) *MockNotificationRepo_GetNotifications_Call
- type MockPasswordResetTokenRepo
- func (_mock *MockPasswordResetTokenRepo) CreateToken(ctx context.Context, token *repository.PasswordResetToken) error
- func (_mock *MockPasswordResetTokenRepo) DeleteUserTokens(ctx context.Context, userID int) error
- func (_m *MockPasswordResetTokenRepo) EXPECT() *MockPasswordResetTokenRepo_Expecter
- func (_mock *MockPasswordResetTokenRepo) FindValidToken(ctx context.Context, tokenHash string) (*repository.PasswordResetToken, error)
- type MockPasswordResetTokenRepo_CreateToken_Call
- func (_c *MockPasswordResetTokenRepo_CreateToken_Call) Return(err error) *MockPasswordResetTokenRepo_CreateToken_Call
- func (_c *MockPasswordResetTokenRepo_CreateToken_Call) Run(run func(ctx context.Context, token *repository.PasswordResetToken)) *MockPasswordResetTokenRepo_CreateToken_Call
- func (_c *MockPasswordResetTokenRepo_CreateToken_Call) RunAndReturn(run func(ctx context.Context, token *repository.PasswordResetToken) error) *MockPasswordResetTokenRepo_CreateToken_Call
- type MockPasswordResetTokenRepo_DeleteUserTokens_Call
- func (_c *MockPasswordResetTokenRepo_DeleteUserTokens_Call) Return(err error) *MockPasswordResetTokenRepo_DeleteUserTokens_Call
- func (_c *MockPasswordResetTokenRepo_DeleteUserTokens_Call) Run(run func(ctx context.Context, userID int)) *MockPasswordResetTokenRepo_DeleteUserTokens_Call
- func (_c *MockPasswordResetTokenRepo_DeleteUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockPasswordResetTokenRepo_DeleteUserTokens_Call
- type MockPasswordResetTokenRepo_Expecter
- func (_e *MockPasswordResetTokenRepo_Expecter) CreateToken(ctx any, token any) *MockPasswordResetTokenRepo_CreateToken_Call
- func (_e *MockPasswordResetTokenRepo_Expecter) DeleteUserTokens(ctx any, userID any) *MockPasswordResetTokenRepo_DeleteUserTokens_Call
- func (_e *MockPasswordResetTokenRepo_Expecter) FindValidToken(ctx any, tokenHash any) *MockPasswordResetTokenRepo_FindValidToken_Call
- type MockPasswordResetTokenRepo_FindValidToken_Call
- func (_c *MockPasswordResetTokenRepo_FindValidToken_Call) Return(passwordResetToken *repository.PasswordResetToken, err error) *MockPasswordResetTokenRepo_FindValidToken_Call
- func (_c *MockPasswordResetTokenRepo_FindValidToken_Call) Run(run func(ctx context.Context, tokenHash string)) *MockPasswordResetTokenRepo_FindValidToken_Call
- func (_c *MockPasswordResetTokenRepo_FindValidToken_Call) RunAndReturn(...) *MockPasswordResetTokenRepo_FindValidToken_Call
- type MockSoftDeleteRepo
- func (_m *MockSoftDeleteRepo) EXPECT() *MockSoftDeleteRepo_Expecter
- func (_mock *MockSoftDeleteRepo) GetSoftDeletedContentByID(ctx context.Context, id int) (*repository.SoftDeletedContent, error)
- func (_mock *MockSoftDeleteRepo) GetSoftDeletedContentByUser(ctx context.Context, userID int) ([]*repository.SoftDeletedContent, error)
- func (_mock *MockSoftDeleteRepo) PermanentDeleteContent(ctx context.Context, contentType string, contentID int) error
- func (_mock *MockSoftDeleteRepo) RestoreContent(ctx context.Context, contentType string, contentID int) error
- func (_mock *MockSoftDeleteRepo) SoftDeleteContent(ctx context.Context, contentType string, contentID int, userID int, ...) error
- type MockSoftDeleteRepo_Expecter
- func (_e *MockSoftDeleteRepo_Expecter) GetSoftDeletedContentByID(ctx any, id any) *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call
- func (_e *MockSoftDeleteRepo_Expecter) GetSoftDeletedContentByUser(ctx any, userID any) *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call
- func (_e *MockSoftDeleteRepo_Expecter) PermanentDeleteContent(ctx any, contentType any, contentID any) *MockSoftDeleteRepo_PermanentDeleteContent_Call
- func (_e *MockSoftDeleteRepo_Expecter) RestoreContent(ctx any, contentType any, contentID any) *MockSoftDeleteRepo_RestoreContent_Call
- func (_e *MockSoftDeleteRepo_Expecter) SoftDeleteContent(ctx any, contentType any, contentID any, userID any, deletedBy any, reason any) *MockSoftDeleteRepo_SoftDeleteContent_Call
- type MockSoftDeleteRepo_GetSoftDeletedContentByID_Call
- func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) Return(softDeletedContent *repository.SoftDeletedContent, err error) *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call
- func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) Run(run func(ctx context.Context, id int)) *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call
- func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*repository.SoftDeletedContent, error)) *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call
- type MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call
- func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) Return(softDeletedContents []*repository.SoftDeletedContent, err error) *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call
- func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) Run(run func(ctx context.Context, userID int)) *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call
- func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) RunAndReturn(...) *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call
- type MockSoftDeleteRepo_PermanentDeleteContent_Call
- func (_c *MockSoftDeleteRepo_PermanentDeleteContent_Call) Return(err error) *MockSoftDeleteRepo_PermanentDeleteContent_Call
- func (_c *MockSoftDeleteRepo_PermanentDeleteContent_Call) Run(run func(ctx context.Context, contentType string, contentID int)) *MockSoftDeleteRepo_PermanentDeleteContent_Call
- func (_c *MockSoftDeleteRepo_PermanentDeleteContent_Call) RunAndReturn(run func(ctx context.Context, contentType string, contentID int) error) *MockSoftDeleteRepo_PermanentDeleteContent_Call
- type MockSoftDeleteRepo_RestoreContent_Call
- func (_c *MockSoftDeleteRepo_RestoreContent_Call) Return(err error) *MockSoftDeleteRepo_RestoreContent_Call
- func (_c *MockSoftDeleteRepo_RestoreContent_Call) Run(run func(ctx context.Context, contentType string, contentID int)) *MockSoftDeleteRepo_RestoreContent_Call
- func (_c *MockSoftDeleteRepo_RestoreContent_Call) RunAndReturn(run func(ctx context.Context, contentType string, contentID int) error) *MockSoftDeleteRepo_RestoreContent_Call
- type MockSoftDeleteRepo_SoftDeleteContent_Call
- func (_c *MockSoftDeleteRepo_SoftDeleteContent_Call) Return(err error) *MockSoftDeleteRepo_SoftDeleteContent_Call
- func (_c *MockSoftDeleteRepo_SoftDeleteContent_Call) Run(...) *MockSoftDeleteRepo_SoftDeleteContent_Call
- func (_c *MockSoftDeleteRepo_SoftDeleteContent_Call) RunAndReturn(...) *MockSoftDeleteRepo_SoftDeleteContent_Call
- type MockUserDataExportRepo
- func (_m *MockUserDataExportRepo) EXPECT() *MockUserDataExportRepo_Expecter
- func (_mock *MockUserDataExportRepo) GetUserComments(ctx context.Context, userID int) ([]*repository.UserCommentItem, error)
- func (_mock *MockUserDataExportRepo) GetUserContent(ctx context.Context, userID int) ([]*repository.UserContentItem, error)
- func (_mock *MockUserDataExportRepo) GetUserDataForExport(ctx context.Context, userID int) (*repository.UserDataExport, error)
- func (_mock *MockUserDataExportRepo) GetUserMedia(ctx context.Context, userID int) ([]*repository.UserMediaItem, error)
- type MockUserDataExportRepo_Expecter
- func (_e *MockUserDataExportRepo_Expecter) GetUserComments(ctx any, userID any) *MockUserDataExportRepo_GetUserComments_Call
- func (_e *MockUserDataExportRepo_Expecter) GetUserContent(ctx any, userID any) *MockUserDataExportRepo_GetUserContent_Call
- func (_e *MockUserDataExportRepo_Expecter) GetUserDataForExport(ctx any, userID any) *MockUserDataExportRepo_GetUserDataForExport_Call
- func (_e *MockUserDataExportRepo_Expecter) GetUserMedia(ctx any, userID any) *MockUserDataExportRepo_GetUserMedia_Call
- type MockUserDataExportRepo_GetUserComments_Call
- func (_c *MockUserDataExportRepo_GetUserComments_Call) Return(userCommentItems []*repository.UserCommentItem, err error) *MockUserDataExportRepo_GetUserComments_Call
- func (_c *MockUserDataExportRepo_GetUserComments_Call) Run(run func(ctx context.Context, userID int)) *MockUserDataExportRepo_GetUserComments_Call
- func (_c *MockUserDataExportRepo_GetUserComments_Call) RunAndReturn(...) *MockUserDataExportRepo_GetUserComments_Call
- type MockUserDataExportRepo_GetUserContent_Call
- func (_c *MockUserDataExportRepo_GetUserContent_Call) Return(userContentItems []*repository.UserContentItem, err error) *MockUserDataExportRepo_GetUserContent_Call
- func (_c *MockUserDataExportRepo_GetUserContent_Call) Run(run func(ctx context.Context, userID int)) *MockUserDataExportRepo_GetUserContent_Call
- func (_c *MockUserDataExportRepo_GetUserContent_Call) RunAndReturn(...) *MockUserDataExportRepo_GetUserContent_Call
- type MockUserDataExportRepo_GetUserDataForExport_Call
- func (_c *MockUserDataExportRepo_GetUserDataForExport_Call) Return(userDataExport *repository.UserDataExport, err error) *MockUserDataExportRepo_GetUserDataForExport_Call
- func (_c *MockUserDataExportRepo_GetUserDataForExport_Call) Run(run func(ctx context.Context, userID int)) *MockUserDataExportRepo_GetUserDataForExport_Call
- func (_c *MockUserDataExportRepo_GetUserDataForExport_Call) RunAndReturn(run func(ctx context.Context, userID int) (*repository.UserDataExport, error)) *MockUserDataExportRepo_GetUserDataForExport_Call
- type MockUserDataExportRepo_GetUserMedia_Call
- func (_c *MockUserDataExportRepo_GetUserMedia_Call) Return(userMediaItems []*repository.UserMediaItem, err error) *MockUserDataExportRepo_GetUserMedia_Call
- func (_c *MockUserDataExportRepo_GetUserMedia_Call) Run(run func(ctx context.Context, userID int)) *MockUserDataExportRepo_GetUserMedia_Call
- func (_c *MockUserDataExportRepo_GetUserMedia_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*repository.UserMediaItem, error)) *MockUserDataExportRepo_GetUserMedia_Call
- type MockUserDeletionRepo
- func (_mock *MockUserDeletionRepo) CountUsersByRoleAndStatus(ctx context.Context, role string, status string) (int, error)
- func (_mock *MockUserDeletionRepo) DeleteAllUserData(ctx context.Context, userID int) error
- func (_mock *MockUserDeletionRepo) DeleteUserAccount(ctx context.Context, userID int) error
- func (_mock *MockUserDeletionRepo) DeleteUserComments(ctx context.Context, userID int) error
- func (_mock *MockUserDeletionRepo) DeleteUserContent(ctx context.Context, userID int) error
- func (_mock *MockUserDeletionRepo) DeleteUserMedia(ctx context.Context, userID int) error
- func (_mock *MockUserDeletionRepo) DeleteUserTokens(ctx context.Context, userID int) error
- func (_m *MockUserDeletionRepo) EXPECT() *MockUserDeletionRepo_Expecter
- type MockUserDeletionRepo_CountUsersByRoleAndStatus_Call
- func (_c *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) Return(n int, err error) *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call
- func (_c *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) Run(run func(ctx context.Context, role string, status string)) *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call
- func (_c *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) RunAndReturn(run func(ctx context.Context, role string, status string) (int, error)) *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call
- type MockUserDeletionRepo_DeleteAllUserData_Call
- func (_c *MockUserDeletionRepo_DeleteAllUserData_Call) Return(err error) *MockUserDeletionRepo_DeleteAllUserData_Call
- func (_c *MockUserDeletionRepo_DeleteAllUserData_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteAllUserData_Call
- func (_c *MockUserDeletionRepo_DeleteAllUserData_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteAllUserData_Call
- type MockUserDeletionRepo_DeleteUserAccount_Call
- func (_c *MockUserDeletionRepo_DeleteUserAccount_Call) Return(err error) *MockUserDeletionRepo_DeleteUserAccount_Call
- func (_c *MockUserDeletionRepo_DeleteUserAccount_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserAccount_Call
- func (_c *MockUserDeletionRepo_DeleteUserAccount_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserAccount_Call
- type MockUserDeletionRepo_DeleteUserComments_Call
- func (_c *MockUserDeletionRepo_DeleteUserComments_Call) Return(err error) *MockUserDeletionRepo_DeleteUserComments_Call
- func (_c *MockUserDeletionRepo_DeleteUserComments_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserComments_Call
- func (_c *MockUserDeletionRepo_DeleteUserComments_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserComments_Call
- type MockUserDeletionRepo_DeleteUserContent_Call
- func (_c *MockUserDeletionRepo_DeleteUserContent_Call) Return(err error) *MockUserDeletionRepo_DeleteUserContent_Call
- func (_c *MockUserDeletionRepo_DeleteUserContent_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserContent_Call
- func (_c *MockUserDeletionRepo_DeleteUserContent_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserContent_Call
- type MockUserDeletionRepo_DeleteUserMedia_Call
- func (_c *MockUserDeletionRepo_DeleteUserMedia_Call) Return(err error) *MockUserDeletionRepo_DeleteUserMedia_Call
- func (_c *MockUserDeletionRepo_DeleteUserMedia_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserMedia_Call
- func (_c *MockUserDeletionRepo_DeleteUserMedia_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserMedia_Call
- type MockUserDeletionRepo_DeleteUserTokens_Call
- func (_c *MockUserDeletionRepo_DeleteUserTokens_Call) Return(err error) *MockUserDeletionRepo_DeleteUserTokens_Call
- func (_c *MockUserDeletionRepo_DeleteUserTokens_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserTokens_Call
- func (_c *MockUserDeletionRepo_DeleteUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserTokens_Call
- type MockUserDeletionRepo_Expecter
- func (_e *MockUserDeletionRepo_Expecter) CountUsersByRoleAndStatus(ctx any, role any, status any) *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call
- func (_e *MockUserDeletionRepo_Expecter) DeleteAllUserData(ctx any, userID any) *MockUserDeletionRepo_DeleteAllUserData_Call
- func (_e *MockUserDeletionRepo_Expecter) DeleteUserAccount(ctx any, userID any) *MockUserDeletionRepo_DeleteUserAccount_Call
- func (_e *MockUserDeletionRepo_Expecter) DeleteUserComments(ctx any, userID any) *MockUserDeletionRepo_DeleteUserComments_Call
- func (_e *MockUserDeletionRepo_Expecter) DeleteUserContent(ctx any, userID any) *MockUserDeletionRepo_DeleteUserContent_Call
- func (_e *MockUserDeletionRepo_Expecter) DeleteUserMedia(ctx any, userID any) *MockUserDeletionRepo_DeleteUserMedia_Call
- func (_e *MockUserDeletionRepo_Expecter) DeleteUserTokens(ctx any, userID any) *MockUserDeletionRepo_DeleteUserTokens_Call
- type MockUserRepo
- func (_mock *MockUserRepo) CheckEmailExists(ctx context.Context, email string) (bool, error)
- func (_mock *MockUserRepo) CheckEmailExistsForOtherUser(ctx context.Context, userID int, email string) (bool, error)
- func (_mock *MockUserRepo) CheckUsernameExists(ctx context.Context, username string) (bool, error)
- func (_mock *MockUserRepo) CreateUser(ctx context.Context, user *repository.User) error
- func (_mock *MockUserRepo) DeleteProfilePicture(ctx context.Context, userID int) error
- func (_mock *MockUserRepo) DeleteUser(ctx context.Context, userID int) error
- func (_m *MockUserRepo) EXPECT() *MockUserRepo_Expecter
- func (_mock *MockUserRepo) GetAdminUser(ctx context.Context) (*repository.User, error)
- 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) GetUserByEmail(ctx context.Context, email string) (*repository.User, error)
- func (_mock *MockUserRepo) GetUserByID(ctx context.Context, userID int) (*repository.User, error)
- func (_mock *MockUserRepo) GetUserByUsername(ctx context.Context, username string) (*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) UpdateAdminPasswordAndEmail(ctx context.Context, passwordHash string, email string, ...) error
- func (_mock *MockUserRepo) UpdateCustomFields(ctx context.Context, userID int, customFields map[string]any) error
- func (_mock *MockUserRepo) UpdateEmail(ctx context.Context, userID int, email string) error
- func (_mock *MockUserRepo) UpdateLastLoginAt(ctx context.Context, userID int) error
- func (_mock *MockUserRepo) UpdateName(ctx context.Context, userID int, name string) error
- func (_mock *MockUserRepo) UpdatePassword(ctx context.Context, userID int, currentPasswordHash string, ...) error
- func (_mock *MockUserRepo) UpdatePasswordByUserID(ctx context.Context, userID int, newPasswordHash string) error
- func (_mock *MockUserRepo) UpdateProfile(ctx context.Context, userID int, name string, email string, role string, ...) error
- func (_mock *MockUserRepo) UpdateProfilePicture(ctx context.Context, userID int, profilePicture 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_CheckEmailExists_Call
- func (_c *MockUserRepo_CheckEmailExists_Call) Return(b bool, err error) *MockUserRepo_CheckEmailExists_Call
- func (_c *MockUserRepo_CheckEmailExists_Call) Run(run func(ctx context.Context, email string)) *MockUserRepo_CheckEmailExists_Call
- func (_c *MockUserRepo_CheckEmailExists_Call) RunAndReturn(run func(ctx context.Context, email string) (bool, error)) *MockUserRepo_CheckEmailExists_Call
- type MockUserRepo_CheckUsernameExists_Call
- func (_c *MockUserRepo_CheckUsernameExists_Call) Return(b bool, err error) *MockUserRepo_CheckUsernameExists_Call
- func (_c *MockUserRepo_CheckUsernameExists_Call) Run(run func(ctx context.Context, username string)) *MockUserRepo_CheckUsernameExists_Call
- func (_c *MockUserRepo_CheckUsernameExists_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *MockUserRepo_CheckUsernameExists_Call
- type MockUserRepo_CreateUser_Call
- func (_c *MockUserRepo_CreateUser_Call) Return(err error) *MockUserRepo_CreateUser_Call
- func (_c *MockUserRepo_CreateUser_Call) Run(run func(ctx context.Context, user *repository.User)) *MockUserRepo_CreateUser_Call
- func (_c *MockUserRepo_CreateUser_Call) RunAndReturn(run func(ctx context.Context, user *repository.User) error) *MockUserRepo_CreateUser_Call
- type MockUserRepo_DeleteProfilePicture_Call
- func (_c *MockUserRepo_DeleteProfilePicture_Call) Return(err error) *MockUserRepo_DeleteProfilePicture_Call
- func (_c *MockUserRepo_DeleteProfilePicture_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_DeleteProfilePicture_Call
- func (_c *MockUserRepo_DeleteProfilePicture_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_DeleteProfilePicture_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) CheckEmailExists(ctx any, email any) *MockUserRepo_CheckEmailExists_Call
- func (_e *MockUserRepo_Expecter) CheckEmailExistsForOtherUser(ctx any, userID any, email any) *MockUserRepo_CheckEmailExistsForOtherUser_Call
- func (_e *MockUserRepo_Expecter) CheckUsernameExists(ctx any, username any) *MockUserRepo_CheckUsernameExists_Call
- func (_e *MockUserRepo_Expecter) CreateUser(ctx any, user any) *MockUserRepo_CreateUser_Call
- func (_e *MockUserRepo_Expecter) DeleteProfilePicture(ctx any, userID any) *MockUserRepo_DeleteProfilePicture_Call
- func (_e *MockUserRepo_Expecter) DeleteUser(ctx any, userID any) *MockUserRepo_DeleteUser_Call
- func (_e *MockUserRepo_Expecter) GetAdminUser(ctx any) *MockUserRepo_GetAdminUser_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) GetUserByEmail(ctx any, email any) *MockUserRepo_GetUserByEmail_Call
- func (_e *MockUserRepo_Expecter) GetUserByID(ctx any, userID any) *MockUserRepo_GetUserByID_Call
- func (_e *MockUserRepo_Expecter) GetUserByUsername(ctx any, username any) *MockUserRepo_GetUserByUsername_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) UpdateAdminPasswordAndEmail(ctx any, passwordHash any, email any, currentPasswordHash any) *MockUserRepo_UpdateAdminPasswordAndEmail_Call
- func (_e *MockUserRepo_Expecter) UpdateCustomFields(ctx any, userID any, customFields any) *MockUserRepo_UpdateCustomFields_Call
- func (_e *MockUserRepo_Expecter) UpdateEmail(ctx any, userID any, email any) *MockUserRepo_UpdateEmail_Call
- func (_e *MockUserRepo_Expecter) UpdateLastLoginAt(ctx any, userID any) *MockUserRepo_UpdateLastLoginAt_Call
- func (_e *MockUserRepo_Expecter) UpdateName(ctx any, userID any, name any) *MockUserRepo_UpdateName_Call
- func (_e *MockUserRepo_Expecter) UpdatePassword(ctx any, userID any, currentPasswordHash any, newPasswordHash any) *MockUserRepo_UpdatePassword_Call
- func (_e *MockUserRepo_Expecter) UpdatePasswordByUserID(ctx any, userID any, newPasswordHash any) *MockUserRepo_UpdatePasswordByUserID_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) UpdateProfilePicture(ctx any, userID any, profilePicture any) *MockUserRepo_UpdateProfilePicture_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_GetAdminUser_Call
- func (_c *MockUserRepo_GetAdminUser_Call) Return(user *repository.User, err error) *MockUserRepo_GetAdminUser_Call
- func (_c *MockUserRepo_GetAdminUser_Call) Run(run func(ctx context.Context)) *MockUserRepo_GetAdminUser_Call
- func (_c *MockUserRepo_GetAdminUser_Call) RunAndReturn(run func(ctx context.Context) (*repository.User, error)) *MockUserRepo_GetAdminUser_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_GetUserByEmail_Call
- func (_c *MockUserRepo_GetUserByEmail_Call) Return(user *repository.User, err error) *MockUserRepo_GetUserByEmail_Call
- func (_c *MockUserRepo_GetUserByEmail_Call) Run(run func(ctx context.Context, email string)) *MockUserRepo_GetUserByEmail_Call
- func (_c *MockUserRepo_GetUserByEmail_Call) RunAndReturn(run func(ctx context.Context, email string) (*repository.User, error)) *MockUserRepo_GetUserByEmail_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_GetUserByUsername_Call
- func (_c *MockUserRepo_GetUserByUsername_Call) Return(user *repository.User, err error) *MockUserRepo_GetUserByUsername_Call
- func (_c *MockUserRepo_GetUserByUsername_Call) Run(run func(ctx context.Context, username string)) *MockUserRepo_GetUserByUsername_Call
- func (_c *MockUserRepo_GetUserByUsername_Call) RunAndReturn(run func(ctx context.Context, username string) (*repository.User, error)) *MockUserRepo_GetUserByUsername_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_UpdateAdminPasswordAndEmail_Call
- func (_c *MockUserRepo_UpdateAdminPasswordAndEmail_Call) Return(err error) *MockUserRepo_UpdateAdminPasswordAndEmail_Call
- func (_c *MockUserRepo_UpdateAdminPasswordAndEmail_Call) Run(run func(ctx context.Context, passwordHash string, email string, ...)) *MockUserRepo_UpdateAdminPasswordAndEmail_Call
- func (_c *MockUserRepo_UpdateAdminPasswordAndEmail_Call) RunAndReturn(run func(ctx context.Context, passwordHash string, email string, ...) error) *MockUserRepo_UpdateAdminPasswordAndEmail_Call
- type MockUserRepo_UpdateCustomFields_Call
- func (_c *MockUserRepo_UpdateCustomFields_Call) Return(err error) *MockUserRepo_UpdateCustomFields_Call
- func (_c *MockUserRepo_UpdateCustomFields_Call) Run(run func(ctx context.Context, userID int, customFields map[string]any)) *MockUserRepo_UpdateCustomFields_Call
- func (_c *MockUserRepo_UpdateCustomFields_Call) RunAndReturn(run func(ctx context.Context, userID int, customFields map[string]any) error) *MockUserRepo_UpdateCustomFields_Call
- type MockUserRepo_UpdateEmail_Call
- func (_c *MockUserRepo_UpdateEmail_Call) Return(err error) *MockUserRepo_UpdateEmail_Call
- func (_c *MockUserRepo_UpdateEmail_Call) Run(run func(ctx context.Context, userID int, email string)) *MockUserRepo_UpdateEmail_Call
- func (_c *MockUserRepo_UpdateEmail_Call) RunAndReturn(run func(ctx context.Context, userID int, email string) error) *MockUserRepo_UpdateEmail_Call
- type MockUserRepo_UpdateLastLoginAt_Call
- func (_c *MockUserRepo_UpdateLastLoginAt_Call) Return(err error) *MockUserRepo_UpdateLastLoginAt_Call
- func (_c *MockUserRepo_UpdateLastLoginAt_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_UpdateLastLoginAt_Call
- func (_c *MockUserRepo_UpdateLastLoginAt_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_UpdateLastLoginAt_Call
- type MockUserRepo_UpdateName_Call
- func (_c *MockUserRepo_UpdateName_Call) Return(err error) *MockUserRepo_UpdateName_Call
- func (_c *MockUserRepo_UpdateName_Call) Run(run func(ctx context.Context, userID int, name string)) *MockUserRepo_UpdateName_Call
- func (_c *MockUserRepo_UpdateName_Call) RunAndReturn(run func(ctx context.Context, userID int, name string) error) *MockUserRepo_UpdateName_Call
- type MockUserRepo_UpdatePasswordByUserID_Call
- func (_c *MockUserRepo_UpdatePasswordByUserID_Call) Return(err error) *MockUserRepo_UpdatePasswordByUserID_Call
- func (_c *MockUserRepo_UpdatePasswordByUserID_Call) Run(run func(ctx context.Context, userID int, newPasswordHash string)) *MockUserRepo_UpdatePasswordByUserID_Call
- func (_c *MockUserRepo_UpdatePasswordByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int, newPasswordHash string) error) *MockUserRepo_UpdatePasswordByUserID_Call
- type MockUserRepo_UpdatePassword_Call
- func (_c *MockUserRepo_UpdatePassword_Call) Return(err error) *MockUserRepo_UpdatePassword_Call
- func (_c *MockUserRepo_UpdatePassword_Call) Run(run func(ctx context.Context, userID int, currentPasswordHash string, ...)) *MockUserRepo_UpdatePassword_Call
- func (_c *MockUserRepo_UpdatePassword_Call) RunAndReturn(...) *MockUserRepo_UpdatePassword_Call
- type MockUserRepo_UpdateProfilePicture_Call
- func (_c *MockUserRepo_UpdateProfilePicture_Call) Return(err error) *MockUserRepo_UpdateProfilePicture_Call
- func (_c *MockUserRepo_UpdateProfilePicture_Call) Run(run func(ctx context.Context, userID int, profilePicture string)) *MockUserRepo_UpdateProfilePicture_Call
- func (_c *MockUserRepo_UpdateProfilePicture_Call) RunAndReturn(run func(ctx context.Context, userID int, profilePicture string) error) *MockUserRepo_UpdateProfilePicture_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
- type MockVerificationTokenRepo
- func (_mock *MockVerificationTokenRepo) CreateToken(ctx context.Context, token *repository.VerificationToken) error
- func (_mock *MockVerificationTokenRepo) DeleteExpiredTokens(ctx context.Context) error
- func (_mock *MockVerificationTokenRepo) DeleteUserTokens(ctx context.Context, userID int) error
- func (_m *MockVerificationTokenRepo) EXPECT() *MockVerificationTokenRepo_Expecter
- func (_mock *MockVerificationTokenRepo) FindValidToken(ctx context.Context, tokenHash string) (*repository.VerificationToken, error)
- type MockVerificationTokenRepo_CreateToken_Call
- func (_c *MockVerificationTokenRepo_CreateToken_Call) Return(err error) *MockVerificationTokenRepo_CreateToken_Call
- func (_c *MockVerificationTokenRepo_CreateToken_Call) Run(run func(ctx context.Context, token *repository.VerificationToken)) *MockVerificationTokenRepo_CreateToken_Call
- func (_c *MockVerificationTokenRepo_CreateToken_Call) RunAndReturn(run func(ctx context.Context, token *repository.VerificationToken) error) *MockVerificationTokenRepo_CreateToken_Call
- type MockVerificationTokenRepo_DeleteExpiredTokens_Call
- func (_c *MockVerificationTokenRepo_DeleteExpiredTokens_Call) Return(err error) *MockVerificationTokenRepo_DeleteExpiredTokens_Call
- func (_c *MockVerificationTokenRepo_DeleteExpiredTokens_Call) Run(run func(ctx context.Context)) *MockVerificationTokenRepo_DeleteExpiredTokens_Call
- func (_c *MockVerificationTokenRepo_DeleteExpiredTokens_Call) RunAndReturn(run func(ctx context.Context) error) *MockVerificationTokenRepo_DeleteExpiredTokens_Call
- type MockVerificationTokenRepo_DeleteUserTokens_Call
- func (_c *MockVerificationTokenRepo_DeleteUserTokens_Call) Return(err error) *MockVerificationTokenRepo_DeleteUserTokens_Call
- func (_c *MockVerificationTokenRepo_DeleteUserTokens_Call) Run(run func(ctx context.Context, userID int)) *MockVerificationTokenRepo_DeleteUserTokens_Call
- func (_c *MockVerificationTokenRepo_DeleteUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockVerificationTokenRepo_DeleteUserTokens_Call
- type MockVerificationTokenRepo_Expecter
- func (_e *MockVerificationTokenRepo_Expecter) CreateToken(ctx any, token any) *MockVerificationTokenRepo_CreateToken_Call
- func (_e *MockVerificationTokenRepo_Expecter) DeleteExpiredTokens(ctx any) *MockVerificationTokenRepo_DeleteExpiredTokens_Call
- func (_e *MockVerificationTokenRepo_Expecter) DeleteUserTokens(ctx any, userID any) *MockVerificationTokenRepo_DeleteUserTokens_Call
- func (_e *MockVerificationTokenRepo_Expecter) FindValidToken(ctx any, tokenHash any) *MockVerificationTokenRepo_FindValidToken_Call
- type MockVerificationTokenRepo_FindValidToken_Call
- func (_c *MockVerificationTokenRepo_FindValidToken_Call) Return(verificationToken *repository.VerificationToken, err error) *MockVerificationTokenRepo_FindValidToken_Call
- func (_c *MockVerificationTokenRepo_FindValidToken_Call) Run(run func(ctx context.Context, tokenHash string)) *MockVerificationTokenRepo_FindValidToken_Call
- func (_c *MockVerificationTokenRepo_FindValidToken_Call) RunAndReturn(...) *MockVerificationTokenRepo_FindValidToken_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 MockEmailUpdateTokenRepo ¶
MockEmailUpdateTokenRepo is an autogenerated mock type for the EmailUpdateTokenRepo type
func NewMockEmailUpdateTokenRepo ¶
func NewMockEmailUpdateTokenRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockEmailUpdateTokenRepo
NewMockEmailUpdateTokenRepo creates a new instance of MockEmailUpdateTokenRepo. 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 (*MockEmailUpdateTokenRepo) CleanUpExpiredTokens ¶
func (_mock *MockEmailUpdateTokenRepo) CleanUpExpiredTokens(ctx context.Context) error
CleanUpExpiredTokens provides a mock function for the type MockEmailUpdateTokenRepo
func (*MockEmailUpdateTokenRepo) CreateToken ¶
func (_mock *MockEmailUpdateTokenRepo) CreateToken(ctx context.Context, token string, userID int, newEmail string) error
CreateToken provides a mock function for the type MockEmailUpdateTokenRepo
func (*MockEmailUpdateTokenRepo) DeleteToken ¶
func (_mock *MockEmailUpdateTokenRepo) DeleteToken(ctx context.Context, tokenID int) error
DeleteToken provides a mock function for the type MockEmailUpdateTokenRepo
func (*MockEmailUpdateTokenRepo) EXPECT ¶
func (_m *MockEmailUpdateTokenRepo) EXPECT() *MockEmailUpdateTokenRepo_Expecter
func (*MockEmailUpdateTokenRepo) GetToken ¶
func (_mock *MockEmailUpdateTokenRepo) GetToken(ctx context.Context, token string) (*repository.EmailUpdateToken, error)
GetToken provides a mock function for the type MockEmailUpdateTokenRepo
type MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call ¶
MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanUpExpiredTokens'
func (*MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) Run ¶
func (_c *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) Run(run func(ctx context.Context)) *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call
func (*MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) RunAndReturn ¶
func (_c *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) RunAndReturn(run func(ctx context.Context) error) *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call
type MockEmailUpdateTokenRepo_CreateToken_Call ¶
MockEmailUpdateTokenRepo_CreateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateToken'
func (*MockEmailUpdateTokenRepo_CreateToken_Call) Return ¶
func (_c *MockEmailUpdateTokenRepo_CreateToken_Call) Return(err error) *MockEmailUpdateTokenRepo_CreateToken_Call
func (*MockEmailUpdateTokenRepo_CreateToken_Call) Run ¶
func (_c *MockEmailUpdateTokenRepo_CreateToken_Call) Run(run func(ctx context.Context, token string, userID int, newEmail string)) *MockEmailUpdateTokenRepo_CreateToken_Call
func (*MockEmailUpdateTokenRepo_CreateToken_Call) RunAndReturn ¶
func (_c *MockEmailUpdateTokenRepo_CreateToken_Call) RunAndReturn(run func(ctx context.Context, token string, userID int, newEmail string) error) *MockEmailUpdateTokenRepo_CreateToken_Call
type MockEmailUpdateTokenRepo_DeleteToken_Call ¶
MockEmailUpdateTokenRepo_DeleteToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteToken'
func (*MockEmailUpdateTokenRepo_DeleteToken_Call) Return ¶
func (_c *MockEmailUpdateTokenRepo_DeleteToken_Call) Return(err error) *MockEmailUpdateTokenRepo_DeleteToken_Call
func (*MockEmailUpdateTokenRepo_DeleteToken_Call) Run ¶
func (_c *MockEmailUpdateTokenRepo_DeleteToken_Call) Run(run func(ctx context.Context, tokenID int)) *MockEmailUpdateTokenRepo_DeleteToken_Call
func (*MockEmailUpdateTokenRepo_DeleteToken_Call) RunAndReturn ¶
func (_c *MockEmailUpdateTokenRepo_DeleteToken_Call) RunAndReturn(run func(ctx context.Context, tokenID int) error) *MockEmailUpdateTokenRepo_DeleteToken_Call
type MockEmailUpdateTokenRepo_Expecter ¶
type MockEmailUpdateTokenRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEmailUpdateTokenRepo_Expecter) CleanUpExpiredTokens ¶
func (_e *MockEmailUpdateTokenRepo_Expecter) CleanUpExpiredTokens(ctx any) *MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call
CleanUpExpiredTokens is a helper method to define mock.On call
- ctx context.Context
func (*MockEmailUpdateTokenRepo_Expecter) CreateToken ¶
func (_e *MockEmailUpdateTokenRepo_Expecter) CreateToken(ctx any, token any, userID any, newEmail any) *MockEmailUpdateTokenRepo_CreateToken_Call
CreateToken is a helper method to define mock.On call
- ctx context.Context
- token string
- userID int
- newEmail string
func (*MockEmailUpdateTokenRepo_Expecter) DeleteToken ¶
func (_e *MockEmailUpdateTokenRepo_Expecter) DeleteToken(ctx any, tokenID any) *MockEmailUpdateTokenRepo_DeleteToken_Call
DeleteToken is a helper method to define mock.On call
- ctx context.Context
- tokenID int
func (*MockEmailUpdateTokenRepo_Expecter) GetToken ¶
func (_e *MockEmailUpdateTokenRepo_Expecter) GetToken(ctx any, token any) *MockEmailUpdateTokenRepo_GetToken_Call
GetToken is a helper method to define mock.On call
- ctx context.Context
- token string
type MockEmailUpdateTokenRepo_GetToken_Call ¶
MockEmailUpdateTokenRepo_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'
func (*MockEmailUpdateTokenRepo_GetToken_Call) Return ¶
func (_c *MockEmailUpdateTokenRepo_GetToken_Call) Return(emailUpdateToken *repository.EmailUpdateToken, err error) *MockEmailUpdateTokenRepo_GetToken_Call
func (*MockEmailUpdateTokenRepo_GetToken_Call) Run ¶
func (_c *MockEmailUpdateTokenRepo_GetToken_Call) Run(run func(ctx context.Context, token string)) *MockEmailUpdateTokenRepo_GetToken_Call
func (*MockEmailUpdateTokenRepo_GetToken_Call) RunAndReturn ¶
func (_c *MockEmailUpdateTokenRepo_GetToken_Call) RunAndReturn(run func(ctx context.Context, token string) (*repository.EmailUpdateToken, error)) *MockEmailUpdateTokenRepo_GetToken_Call
type MockFailedLoginAttemptRepo ¶
MockFailedLoginAttemptRepo is an autogenerated mock type for the FailedLoginAttemptRepo type
func NewMockFailedLoginAttemptRepo ¶
func NewMockFailedLoginAttemptRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockFailedLoginAttemptRepo
NewMockFailedLoginAttemptRepo creates a new instance of MockFailedLoginAttemptRepo. 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 (*MockFailedLoginAttemptRepo) Create ¶
func (_mock *MockFailedLoginAttemptRepo) Create(ctx context.Context, attempt *repository.FailedLoginAttempt) error
Create provides a mock function for the type MockFailedLoginAttemptRepo
func (*MockFailedLoginAttemptRepo) Delete ¶
func (_mock *MockFailedLoginAttemptRepo) Delete(ctx context.Context, userID int) error
Delete provides a mock function for the type MockFailedLoginAttemptRepo
func (*MockFailedLoginAttemptRepo) EXPECT ¶
func (_m *MockFailedLoginAttemptRepo) EXPECT() *MockFailedLoginAttemptRepo_Expecter
func (*MockFailedLoginAttemptRepo) GetByUserID ¶
func (_mock *MockFailedLoginAttemptRepo) GetByUserID(ctx context.Context, userID int) (*repository.FailedLoginAttempt, error)
GetByUserID provides a mock function for the type MockFailedLoginAttemptRepo
func (*MockFailedLoginAttemptRepo) IncrementAttempts ¶
func (_mock *MockFailedLoginAttemptRepo) IncrementAttempts(ctx context.Context, userID int) error
IncrementAttempts provides a mock function for the type MockFailedLoginAttemptRepo
func (*MockFailedLoginAttemptRepo) IsLocked ¶
func (_mock *MockFailedLoginAttemptRepo) IsLocked(ctx context.Context, userID int) (bool, *time.Time, error)
IsLocked provides a mock function for the type MockFailedLoginAttemptRepo
func (*MockFailedLoginAttemptRepo) LockAccount ¶
func (_mock *MockFailedLoginAttemptRepo) LockAccount(ctx context.Context, userID int, lockoutDuration time.Duration) error
LockAccount provides a mock function for the type MockFailedLoginAttemptRepo
func (*MockFailedLoginAttemptRepo) ResetAttempts ¶
func (_mock *MockFailedLoginAttemptRepo) ResetAttempts(ctx context.Context, userID int) error
ResetAttempts provides a mock function for the type MockFailedLoginAttemptRepo
func (*MockFailedLoginAttemptRepo) ShouldSendLockoutEmail ¶
func (_mock *MockFailedLoginAttemptRepo) ShouldSendLockoutEmail(ctx context.Context, userID int, minInterval time.Duration) (bool, error)
ShouldSendLockoutEmail provides a mock function for the type MockFailedLoginAttemptRepo
func (*MockFailedLoginAttemptRepo) UpdateLastEmailSent ¶
func (_mock *MockFailedLoginAttemptRepo) UpdateLastEmailSent(ctx context.Context, userID int) error
UpdateLastEmailSent provides a mock function for the type MockFailedLoginAttemptRepo
type MockFailedLoginAttemptRepo_Create_Call ¶
MockFailedLoginAttemptRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockFailedLoginAttemptRepo_Create_Call) Return ¶
func (_c *MockFailedLoginAttemptRepo_Create_Call) Return(err error) *MockFailedLoginAttemptRepo_Create_Call
func (*MockFailedLoginAttemptRepo_Create_Call) Run ¶
func (_c *MockFailedLoginAttemptRepo_Create_Call) Run(run func(ctx context.Context, attempt *repository.FailedLoginAttempt)) *MockFailedLoginAttemptRepo_Create_Call
func (*MockFailedLoginAttemptRepo_Create_Call) RunAndReturn ¶
func (_c *MockFailedLoginAttemptRepo_Create_Call) RunAndReturn(run func(ctx context.Context, attempt *repository.FailedLoginAttempt) error) *MockFailedLoginAttemptRepo_Create_Call
type MockFailedLoginAttemptRepo_Delete_Call ¶
MockFailedLoginAttemptRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockFailedLoginAttemptRepo_Delete_Call) Return ¶
func (_c *MockFailedLoginAttemptRepo_Delete_Call) Return(err error) *MockFailedLoginAttemptRepo_Delete_Call
func (*MockFailedLoginAttemptRepo_Delete_Call) Run ¶
func (_c *MockFailedLoginAttemptRepo_Delete_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_Delete_Call
func (*MockFailedLoginAttemptRepo_Delete_Call) RunAndReturn ¶
func (_c *MockFailedLoginAttemptRepo_Delete_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockFailedLoginAttemptRepo_Delete_Call
type MockFailedLoginAttemptRepo_Expecter ¶
type MockFailedLoginAttemptRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockFailedLoginAttemptRepo_Expecter) Create ¶
func (_e *MockFailedLoginAttemptRepo_Expecter) Create(ctx any, attempt any) *MockFailedLoginAttemptRepo_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- attempt *repository.FailedLoginAttempt
func (*MockFailedLoginAttemptRepo_Expecter) Delete ¶
func (_e *MockFailedLoginAttemptRepo_Expecter) Delete(ctx any, userID any) *MockFailedLoginAttemptRepo_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockFailedLoginAttemptRepo_Expecter) GetByUserID ¶
func (_e *MockFailedLoginAttemptRepo_Expecter) GetByUserID(ctx any, userID any) *MockFailedLoginAttemptRepo_GetByUserID_Call
GetByUserID is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockFailedLoginAttemptRepo_Expecter) IncrementAttempts ¶
func (_e *MockFailedLoginAttemptRepo_Expecter) IncrementAttempts(ctx any, userID any) *MockFailedLoginAttemptRepo_IncrementAttempts_Call
IncrementAttempts is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockFailedLoginAttemptRepo_Expecter) IsLocked ¶
func (_e *MockFailedLoginAttemptRepo_Expecter) IsLocked(ctx any, userID any) *MockFailedLoginAttemptRepo_IsLocked_Call
IsLocked is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockFailedLoginAttemptRepo_Expecter) LockAccount ¶
func (_e *MockFailedLoginAttemptRepo_Expecter) LockAccount(ctx any, userID any, lockoutDuration any) *MockFailedLoginAttemptRepo_LockAccount_Call
LockAccount is a helper method to define mock.On call
- ctx context.Context
- userID int
- lockoutDuration time.Duration
func (*MockFailedLoginAttemptRepo_Expecter) ResetAttempts ¶
func (_e *MockFailedLoginAttemptRepo_Expecter) ResetAttempts(ctx any, userID any) *MockFailedLoginAttemptRepo_ResetAttempts_Call
ResetAttempts is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockFailedLoginAttemptRepo_Expecter) ShouldSendLockoutEmail ¶
func (_e *MockFailedLoginAttemptRepo_Expecter) ShouldSendLockoutEmail(ctx any, userID any, minInterval any) *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call
ShouldSendLockoutEmail is a helper method to define mock.On call
- ctx context.Context
- userID int
- minInterval time.Duration
func (*MockFailedLoginAttemptRepo_Expecter) UpdateLastEmailSent ¶
func (_e *MockFailedLoginAttemptRepo_Expecter) UpdateLastEmailSent(ctx any, userID any) *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call
UpdateLastEmailSent is a helper method to define mock.On call
- ctx context.Context
- userID int
type MockFailedLoginAttemptRepo_GetByUserID_Call ¶
MockFailedLoginAttemptRepo_GetByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByUserID'
func (*MockFailedLoginAttemptRepo_GetByUserID_Call) Return ¶
func (_c *MockFailedLoginAttemptRepo_GetByUserID_Call) Return(failedLoginAttempt *repository.FailedLoginAttempt, err error) *MockFailedLoginAttemptRepo_GetByUserID_Call
func (*MockFailedLoginAttemptRepo_GetByUserID_Call) Run ¶
func (_c *MockFailedLoginAttemptRepo_GetByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_GetByUserID_Call
func (*MockFailedLoginAttemptRepo_GetByUserID_Call) RunAndReturn ¶
func (_c *MockFailedLoginAttemptRepo_GetByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int) (*repository.FailedLoginAttempt, error)) *MockFailedLoginAttemptRepo_GetByUserID_Call
type MockFailedLoginAttemptRepo_IncrementAttempts_Call ¶
MockFailedLoginAttemptRepo_IncrementAttempts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrementAttempts'
func (*MockFailedLoginAttemptRepo_IncrementAttempts_Call) Return ¶
func (_c *MockFailedLoginAttemptRepo_IncrementAttempts_Call) Return(err error) *MockFailedLoginAttemptRepo_IncrementAttempts_Call
func (*MockFailedLoginAttemptRepo_IncrementAttempts_Call) Run ¶
func (_c *MockFailedLoginAttemptRepo_IncrementAttempts_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_IncrementAttempts_Call
func (*MockFailedLoginAttemptRepo_IncrementAttempts_Call) RunAndReturn ¶
func (_c *MockFailedLoginAttemptRepo_IncrementAttempts_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockFailedLoginAttemptRepo_IncrementAttempts_Call
type MockFailedLoginAttemptRepo_IsLocked_Call ¶
MockFailedLoginAttemptRepo_IsLocked_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLocked'
func (*MockFailedLoginAttemptRepo_IsLocked_Call) Return ¶
func (_c *MockFailedLoginAttemptRepo_IsLocked_Call) Return(b bool, time1 *time.Time, err error) *MockFailedLoginAttemptRepo_IsLocked_Call
func (*MockFailedLoginAttemptRepo_IsLocked_Call) Run ¶
func (_c *MockFailedLoginAttemptRepo_IsLocked_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_IsLocked_Call
func (*MockFailedLoginAttemptRepo_IsLocked_Call) RunAndReturn ¶
func (_c *MockFailedLoginAttemptRepo_IsLocked_Call) RunAndReturn(run func(ctx context.Context, userID int) (bool, *time.Time, error)) *MockFailedLoginAttemptRepo_IsLocked_Call
type MockFailedLoginAttemptRepo_LockAccount_Call ¶
MockFailedLoginAttemptRepo_LockAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LockAccount'
func (*MockFailedLoginAttemptRepo_LockAccount_Call) Return ¶
func (_c *MockFailedLoginAttemptRepo_LockAccount_Call) Return(err error) *MockFailedLoginAttemptRepo_LockAccount_Call
func (*MockFailedLoginAttemptRepo_LockAccount_Call) Run ¶
func (_c *MockFailedLoginAttemptRepo_LockAccount_Call) Run(run func(ctx context.Context, userID int, lockoutDuration time.Duration)) *MockFailedLoginAttemptRepo_LockAccount_Call
func (*MockFailedLoginAttemptRepo_LockAccount_Call) RunAndReturn ¶
func (_c *MockFailedLoginAttemptRepo_LockAccount_Call) RunAndReturn(run func(ctx context.Context, userID int, lockoutDuration time.Duration) error) *MockFailedLoginAttemptRepo_LockAccount_Call
type MockFailedLoginAttemptRepo_ResetAttempts_Call ¶
MockFailedLoginAttemptRepo_ResetAttempts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetAttempts'
func (*MockFailedLoginAttemptRepo_ResetAttempts_Call) Return ¶
func (_c *MockFailedLoginAttemptRepo_ResetAttempts_Call) Return(err error) *MockFailedLoginAttemptRepo_ResetAttempts_Call
func (*MockFailedLoginAttemptRepo_ResetAttempts_Call) Run ¶
func (_c *MockFailedLoginAttemptRepo_ResetAttempts_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_ResetAttempts_Call
func (*MockFailedLoginAttemptRepo_ResetAttempts_Call) RunAndReturn ¶
func (_c *MockFailedLoginAttemptRepo_ResetAttempts_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockFailedLoginAttemptRepo_ResetAttempts_Call
type MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call ¶
MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldSendLockoutEmail'
func (*MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) Return ¶
func (_c *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) Return(b bool, err error) *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call
func (*MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) Run ¶
func (_c *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) Run(run func(ctx context.Context, userID int, minInterval time.Duration)) *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call
func (*MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) RunAndReturn ¶
func (_c *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) RunAndReturn(run func(ctx context.Context, userID int, minInterval time.Duration) (bool, error)) *MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call
type MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call ¶
MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLastEmailSent'
func (*MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) Run ¶
func (_c *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) Run(run func(ctx context.Context, userID int)) *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call
func (*MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) RunAndReturn ¶
func (_c *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call
type MockNotificationRepo ¶
MockNotificationRepo is an autogenerated mock type for the NotificationRepo type
func NewMockNotificationRepo ¶
func NewMockNotificationRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockNotificationRepo
NewMockNotificationRepo creates a new instance of MockNotificationRepo. 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 (*MockNotificationRepo) CreateNotification ¶
func (_mock *MockNotificationRepo) CreateNotification(ctx context.Context, notificationType repository.NotificationType, message string) error
CreateNotification provides a mock function for the type MockNotificationRepo
func (*MockNotificationRepo) EXPECT ¶
func (_m *MockNotificationRepo) EXPECT() *MockNotificationRepo_Expecter
func (*MockNotificationRepo) GetNotifications ¶
func (_mock *MockNotificationRepo) GetNotifications(ctx context.Context, limit int) ([]repository.Notification, error)
GetNotifications provides a mock function for the type MockNotificationRepo
type MockNotificationRepo_CreateNotification_Call ¶
MockNotificationRepo_CreateNotification_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNotification'
func (*MockNotificationRepo_CreateNotification_Call) Return ¶
func (_c *MockNotificationRepo_CreateNotification_Call) Return(err error) *MockNotificationRepo_CreateNotification_Call
func (*MockNotificationRepo_CreateNotification_Call) Run ¶
func (_c *MockNotificationRepo_CreateNotification_Call) Run(run func(ctx context.Context, notificationType repository.NotificationType, message string)) *MockNotificationRepo_CreateNotification_Call
func (*MockNotificationRepo_CreateNotification_Call) RunAndReturn ¶
func (_c *MockNotificationRepo_CreateNotification_Call) RunAndReturn(run func(ctx context.Context, notificationType repository.NotificationType, message string) error) *MockNotificationRepo_CreateNotification_Call
type MockNotificationRepo_Expecter ¶
type MockNotificationRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockNotificationRepo_Expecter) CreateNotification ¶
func (_e *MockNotificationRepo_Expecter) CreateNotification(ctx any, notificationType any, message any) *MockNotificationRepo_CreateNotification_Call
CreateNotification is a helper method to define mock.On call
- ctx context.Context
- notificationType repository.NotificationType
- message string
func (*MockNotificationRepo_Expecter) GetNotifications ¶
func (_e *MockNotificationRepo_Expecter) GetNotifications(ctx any, limit any) *MockNotificationRepo_GetNotifications_Call
GetNotifications is a helper method to define mock.On call
- ctx context.Context
- limit int
type MockNotificationRepo_GetNotifications_Call ¶
MockNotificationRepo_GetNotifications_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNotifications'
func (*MockNotificationRepo_GetNotifications_Call) Return ¶
func (_c *MockNotificationRepo_GetNotifications_Call) Return(notifications []repository.Notification, err error) *MockNotificationRepo_GetNotifications_Call
func (*MockNotificationRepo_GetNotifications_Call) Run ¶
func (_c *MockNotificationRepo_GetNotifications_Call) Run(run func(ctx context.Context, limit int)) *MockNotificationRepo_GetNotifications_Call
func (*MockNotificationRepo_GetNotifications_Call) RunAndReturn ¶
func (_c *MockNotificationRepo_GetNotifications_Call) RunAndReturn(run func(ctx context.Context, limit int) ([]repository.Notification, error)) *MockNotificationRepo_GetNotifications_Call
type MockPasswordResetTokenRepo ¶
MockPasswordResetTokenRepo is an autogenerated mock type for the PasswordResetTokenRepo type
func NewMockPasswordResetTokenRepo ¶
func NewMockPasswordResetTokenRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockPasswordResetTokenRepo
NewMockPasswordResetTokenRepo creates a new instance of MockPasswordResetTokenRepo. 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 (*MockPasswordResetTokenRepo) CreateToken ¶
func (_mock *MockPasswordResetTokenRepo) CreateToken(ctx context.Context, token *repository.PasswordResetToken) error
CreateToken provides a mock function for the type MockPasswordResetTokenRepo
func (*MockPasswordResetTokenRepo) DeleteUserTokens ¶
func (_mock *MockPasswordResetTokenRepo) DeleteUserTokens(ctx context.Context, userID int) error
DeleteUserTokens provides a mock function for the type MockPasswordResetTokenRepo
func (*MockPasswordResetTokenRepo) EXPECT ¶
func (_m *MockPasswordResetTokenRepo) EXPECT() *MockPasswordResetTokenRepo_Expecter
func (*MockPasswordResetTokenRepo) FindValidToken ¶
func (_mock *MockPasswordResetTokenRepo) FindValidToken(ctx context.Context, tokenHash string) (*repository.PasswordResetToken, error)
FindValidToken provides a mock function for the type MockPasswordResetTokenRepo
type MockPasswordResetTokenRepo_CreateToken_Call ¶
MockPasswordResetTokenRepo_CreateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateToken'
func (*MockPasswordResetTokenRepo_CreateToken_Call) Return ¶
func (_c *MockPasswordResetTokenRepo_CreateToken_Call) Return(err error) *MockPasswordResetTokenRepo_CreateToken_Call
func (*MockPasswordResetTokenRepo_CreateToken_Call) Run ¶
func (_c *MockPasswordResetTokenRepo_CreateToken_Call) Run(run func(ctx context.Context, token *repository.PasswordResetToken)) *MockPasswordResetTokenRepo_CreateToken_Call
func (*MockPasswordResetTokenRepo_CreateToken_Call) RunAndReturn ¶
func (_c *MockPasswordResetTokenRepo_CreateToken_Call) RunAndReturn(run func(ctx context.Context, token *repository.PasswordResetToken) error) *MockPasswordResetTokenRepo_CreateToken_Call
type MockPasswordResetTokenRepo_DeleteUserTokens_Call ¶
MockPasswordResetTokenRepo_DeleteUserTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserTokens'
func (*MockPasswordResetTokenRepo_DeleteUserTokens_Call) Return ¶
func (_c *MockPasswordResetTokenRepo_DeleteUserTokens_Call) Return(err error) *MockPasswordResetTokenRepo_DeleteUserTokens_Call
func (*MockPasswordResetTokenRepo_DeleteUserTokens_Call) Run ¶
func (_c *MockPasswordResetTokenRepo_DeleteUserTokens_Call) Run(run func(ctx context.Context, userID int)) *MockPasswordResetTokenRepo_DeleteUserTokens_Call
func (*MockPasswordResetTokenRepo_DeleteUserTokens_Call) RunAndReturn ¶
func (_c *MockPasswordResetTokenRepo_DeleteUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockPasswordResetTokenRepo_DeleteUserTokens_Call
type MockPasswordResetTokenRepo_Expecter ¶
type MockPasswordResetTokenRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPasswordResetTokenRepo_Expecter) CreateToken ¶
func (_e *MockPasswordResetTokenRepo_Expecter) CreateToken(ctx any, token any) *MockPasswordResetTokenRepo_CreateToken_Call
CreateToken is a helper method to define mock.On call
- ctx context.Context
- token *repository.PasswordResetToken
func (*MockPasswordResetTokenRepo_Expecter) DeleteUserTokens ¶
func (_e *MockPasswordResetTokenRepo_Expecter) DeleteUserTokens(ctx any, userID any) *MockPasswordResetTokenRepo_DeleteUserTokens_Call
DeleteUserTokens is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockPasswordResetTokenRepo_Expecter) FindValidToken ¶
func (_e *MockPasswordResetTokenRepo_Expecter) FindValidToken(ctx any, tokenHash any) *MockPasswordResetTokenRepo_FindValidToken_Call
FindValidToken is a helper method to define mock.On call
- ctx context.Context
- tokenHash string
type MockPasswordResetTokenRepo_FindValidToken_Call ¶
MockPasswordResetTokenRepo_FindValidToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindValidToken'
func (*MockPasswordResetTokenRepo_FindValidToken_Call) Return ¶
func (_c *MockPasswordResetTokenRepo_FindValidToken_Call) Return(passwordResetToken *repository.PasswordResetToken, err error) *MockPasswordResetTokenRepo_FindValidToken_Call
func (*MockPasswordResetTokenRepo_FindValidToken_Call) Run ¶
func (_c *MockPasswordResetTokenRepo_FindValidToken_Call) Run(run func(ctx context.Context, tokenHash string)) *MockPasswordResetTokenRepo_FindValidToken_Call
func (*MockPasswordResetTokenRepo_FindValidToken_Call) RunAndReturn ¶
func (_c *MockPasswordResetTokenRepo_FindValidToken_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) (*repository.PasswordResetToken, error)) *MockPasswordResetTokenRepo_FindValidToken_Call
type MockSoftDeleteRepo ¶
MockSoftDeleteRepo is an autogenerated mock type for the SoftDeleteRepo type
func NewMockSoftDeleteRepo ¶
func NewMockSoftDeleteRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockSoftDeleteRepo
NewMockSoftDeleteRepo creates a new instance of MockSoftDeleteRepo. 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 (*MockSoftDeleteRepo) EXPECT ¶
func (_m *MockSoftDeleteRepo) EXPECT() *MockSoftDeleteRepo_Expecter
func (*MockSoftDeleteRepo) GetSoftDeletedContentByID ¶
func (_mock *MockSoftDeleteRepo) GetSoftDeletedContentByID(ctx context.Context, id int) (*repository.SoftDeletedContent, error)
GetSoftDeletedContentByID provides a mock function for the type MockSoftDeleteRepo
func (*MockSoftDeleteRepo) GetSoftDeletedContentByUser ¶
func (_mock *MockSoftDeleteRepo) GetSoftDeletedContentByUser(ctx context.Context, userID int) ([]*repository.SoftDeletedContent, error)
GetSoftDeletedContentByUser provides a mock function for the type MockSoftDeleteRepo
func (*MockSoftDeleteRepo) PermanentDeleteContent ¶
func (_mock *MockSoftDeleteRepo) PermanentDeleteContent(ctx context.Context, contentType string, contentID int) error
PermanentDeleteContent provides a mock function for the type MockSoftDeleteRepo
func (*MockSoftDeleteRepo) RestoreContent ¶
func (_mock *MockSoftDeleteRepo) RestoreContent(ctx context.Context, contentType string, contentID int) error
RestoreContent provides a mock function for the type MockSoftDeleteRepo
type MockSoftDeleteRepo_Expecter ¶
type MockSoftDeleteRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSoftDeleteRepo_Expecter) GetSoftDeletedContentByID ¶
func (_e *MockSoftDeleteRepo_Expecter) GetSoftDeletedContentByID(ctx any, id any) *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call
GetSoftDeletedContentByID is a helper method to define mock.On call
- ctx context.Context
- id int
func (*MockSoftDeleteRepo_Expecter) GetSoftDeletedContentByUser ¶
func (_e *MockSoftDeleteRepo_Expecter) GetSoftDeletedContentByUser(ctx any, userID any) *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call
GetSoftDeletedContentByUser is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockSoftDeleteRepo_Expecter) PermanentDeleteContent ¶
func (_e *MockSoftDeleteRepo_Expecter) PermanentDeleteContent(ctx any, contentType any, contentID any) *MockSoftDeleteRepo_PermanentDeleteContent_Call
PermanentDeleteContent is a helper method to define mock.On call
- ctx context.Context
- contentType string
- contentID int
func (*MockSoftDeleteRepo_Expecter) RestoreContent ¶
func (_e *MockSoftDeleteRepo_Expecter) RestoreContent(ctx any, contentType any, contentID any) *MockSoftDeleteRepo_RestoreContent_Call
RestoreContent is a helper method to define mock.On call
- ctx context.Context
- contentType string
- contentID int
func (*MockSoftDeleteRepo_Expecter) SoftDeleteContent ¶
func (_e *MockSoftDeleteRepo_Expecter) SoftDeleteContent(ctx any, contentType any, contentID any, userID any, deletedBy any, reason any) *MockSoftDeleteRepo_SoftDeleteContent_Call
SoftDeleteContent is a helper method to define mock.On call
- ctx context.Context
- contentType string
- contentID int
- userID int
- deletedBy int
- reason string
type MockSoftDeleteRepo_GetSoftDeletedContentByID_Call ¶
MockSoftDeleteRepo_GetSoftDeletedContentByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSoftDeletedContentByID'
func (*MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) Return ¶
func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) Return(softDeletedContent *repository.SoftDeletedContent, err error) *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call
func (*MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) Run ¶
func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) Run(run func(ctx context.Context, id int)) *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call
func (*MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) RunAndReturn ¶
func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*repository.SoftDeletedContent, error)) *MockSoftDeleteRepo_GetSoftDeletedContentByID_Call
type MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call ¶
MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSoftDeletedContentByUser'
func (*MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) Return ¶
func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) Return(softDeletedContents []*repository.SoftDeletedContent, err error) *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call
func (*MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) Run ¶
func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) Run(run func(ctx context.Context, userID int)) *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call
func (*MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) RunAndReturn ¶
func (_c *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*repository.SoftDeletedContent, error)) *MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call
type MockSoftDeleteRepo_PermanentDeleteContent_Call ¶
MockSoftDeleteRepo_PermanentDeleteContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PermanentDeleteContent'
func (*MockSoftDeleteRepo_PermanentDeleteContent_Call) Return ¶
func (_c *MockSoftDeleteRepo_PermanentDeleteContent_Call) Return(err error) *MockSoftDeleteRepo_PermanentDeleteContent_Call
func (*MockSoftDeleteRepo_PermanentDeleteContent_Call) Run ¶
func (_c *MockSoftDeleteRepo_PermanentDeleteContent_Call) Run(run func(ctx context.Context, contentType string, contentID int)) *MockSoftDeleteRepo_PermanentDeleteContent_Call
func (*MockSoftDeleteRepo_PermanentDeleteContent_Call) RunAndReturn ¶
func (_c *MockSoftDeleteRepo_PermanentDeleteContent_Call) RunAndReturn(run func(ctx context.Context, contentType string, contentID int) error) *MockSoftDeleteRepo_PermanentDeleteContent_Call
type MockSoftDeleteRepo_RestoreContent_Call ¶
MockSoftDeleteRepo_RestoreContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RestoreContent'
func (*MockSoftDeleteRepo_RestoreContent_Call) Return ¶
func (_c *MockSoftDeleteRepo_RestoreContent_Call) Return(err error) *MockSoftDeleteRepo_RestoreContent_Call
func (*MockSoftDeleteRepo_RestoreContent_Call) Run ¶
func (_c *MockSoftDeleteRepo_RestoreContent_Call) Run(run func(ctx context.Context, contentType string, contentID int)) *MockSoftDeleteRepo_RestoreContent_Call
func (*MockSoftDeleteRepo_RestoreContent_Call) RunAndReturn ¶
func (_c *MockSoftDeleteRepo_RestoreContent_Call) RunAndReturn(run func(ctx context.Context, contentType string, contentID int) error) *MockSoftDeleteRepo_RestoreContent_Call
type MockSoftDeleteRepo_SoftDeleteContent_Call ¶
MockSoftDeleteRepo_SoftDeleteContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SoftDeleteContent'
func (*MockSoftDeleteRepo_SoftDeleteContent_Call) Return ¶
func (_c *MockSoftDeleteRepo_SoftDeleteContent_Call) Return(err error) *MockSoftDeleteRepo_SoftDeleteContent_Call
func (*MockSoftDeleteRepo_SoftDeleteContent_Call) Run ¶
func (_c *MockSoftDeleteRepo_SoftDeleteContent_Call) Run(run func(ctx context.Context, contentType string, contentID int, userID int, deletedBy int, reason string)) *MockSoftDeleteRepo_SoftDeleteContent_Call
func (*MockSoftDeleteRepo_SoftDeleteContent_Call) RunAndReturn ¶
func (_c *MockSoftDeleteRepo_SoftDeleteContent_Call) RunAndReturn(run func(ctx context.Context, contentType string, contentID int, userID int, deletedBy int, reason string) error) *MockSoftDeleteRepo_SoftDeleteContent_Call
type MockUserDataExportRepo ¶
MockUserDataExportRepo is an autogenerated mock type for the UserDataExportRepo type
func NewMockUserDataExportRepo ¶
func NewMockUserDataExportRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockUserDataExportRepo
NewMockUserDataExportRepo creates a new instance of MockUserDataExportRepo. 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 (*MockUserDataExportRepo) EXPECT ¶
func (_m *MockUserDataExportRepo) EXPECT() *MockUserDataExportRepo_Expecter
func (*MockUserDataExportRepo) GetUserComments ¶
func (_mock *MockUserDataExportRepo) GetUserComments(ctx context.Context, userID int) ([]*repository.UserCommentItem, error)
GetUserComments provides a mock function for the type MockUserDataExportRepo
func (*MockUserDataExportRepo) GetUserContent ¶
func (_mock *MockUserDataExportRepo) GetUserContent(ctx context.Context, userID int) ([]*repository.UserContentItem, error)
GetUserContent provides a mock function for the type MockUserDataExportRepo
func (*MockUserDataExportRepo) GetUserDataForExport ¶
func (_mock *MockUserDataExportRepo) GetUserDataForExport(ctx context.Context, userID int) (*repository.UserDataExport, error)
GetUserDataForExport provides a mock function for the type MockUserDataExportRepo
func (*MockUserDataExportRepo) GetUserMedia ¶
func (_mock *MockUserDataExportRepo) GetUserMedia(ctx context.Context, userID int) ([]*repository.UserMediaItem, error)
GetUserMedia provides a mock function for the type MockUserDataExportRepo
type MockUserDataExportRepo_Expecter ¶
type MockUserDataExportRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUserDataExportRepo_Expecter) GetUserComments ¶
func (_e *MockUserDataExportRepo_Expecter) GetUserComments(ctx any, userID any) *MockUserDataExportRepo_GetUserComments_Call
GetUserComments is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserDataExportRepo_Expecter) GetUserContent ¶
func (_e *MockUserDataExportRepo_Expecter) GetUserContent(ctx any, userID any) *MockUserDataExportRepo_GetUserContent_Call
GetUserContent is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserDataExportRepo_Expecter) GetUserDataForExport ¶
func (_e *MockUserDataExportRepo_Expecter) GetUserDataForExport(ctx any, userID any) *MockUserDataExportRepo_GetUserDataForExport_Call
GetUserDataForExport is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserDataExportRepo_Expecter) GetUserMedia ¶
func (_e *MockUserDataExportRepo_Expecter) GetUserMedia(ctx any, userID any) *MockUserDataExportRepo_GetUserMedia_Call
GetUserMedia is a helper method to define mock.On call
- ctx context.Context
- userID int
type MockUserDataExportRepo_GetUserComments_Call ¶
MockUserDataExportRepo_GetUserComments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserComments'
func (*MockUserDataExportRepo_GetUserComments_Call) Return ¶
func (_c *MockUserDataExportRepo_GetUserComments_Call) Return(userCommentItems []*repository.UserCommentItem, err error) *MockUserDataExportRepo_GetUserComments_Call
func (*MockUserDataExportRepo_GetUserComments_Call) Run ¶
func (_c *MockUserDataExportRepo_GetUserComments_Call) Run(run func(ctx context.Context, userID int)) *MockUserDataExportRepo_GetUserComments_Call
func (*MockUserDataExportRepo_GetUserComments_Call) RunAndReturn ¶
func (_c *MockUserDataExportRepo_GetUserComments_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*repository.UserCommentItem, error)) *MockUserDataExportRepo_GetUserComments_Call
type MockUserDataExportRepo_GetUserContent_Call ¶
MockUserDataExportRepo_GetUserContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserContent'
func (*MockUserDataExportRepo_GetUserContent_Call) Return ¶
func (_c *MockUserDataExportRepo_GetUserContent_Call) Return(userContentItems []*repository.UserContentItem, err error) *MockUserDataExportRepo_GetUserContent_Call
func (*MockUserDataExportRepo_GetUserContent_Call) Run ¶
func (_c *MockUserDataExportRepo_GetUserContent_Call) Run(run func(ctx context.Context, userID int)) *MockUserDataExportRepo_GetUserContent_Call
func (*MockUserDataExportRepo_GetUserContent_Call) RunAndReturn ¶
func (_c *MockUserDataExportRepo_GetUserContent_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*repository.UserContentItem, error)) *MockUserDataExportRepo_GetUserContent_Call
type MockUserDataExportRepo_GetUserDataForExport_Call ¶
MockUserDataExportRepo_GetUserDataForExport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserDataForExport'
func (*MockUserDataExportRepo_GetUserDataForExport_Call) Return ¶
func (_c *MockUserDataExportRepo_GetUserDataForExport_Call) Return(userDataExport *repository.UserDataExport, err error) *MockUserDataExportRepo_GetUserDataForExport_Call
func (*MockUserDataExportRepo_GetUserDataForExport_Call) Run ¶
func (_c *MockUserDataExportRepo_GetUserDataForExport_Call) Run(run func(ctx context.Context, userID int)) *MockUserDataExportRepo_GetUserDataForExport_Call
func (*MockUserDataExportRepo_GetUserDataForExport_Call) RunAndReturn ¶
func (_c *MockUserDataExportRepo_GetUserDataForExport_Call) RunAndReturn(run func(ctx context.Context, userID int) (*repository.UserDataExport, error)) *MockUserDataExportRepo_GetUserDataForExport_Call
type MockUserDataExportRepo_GetUserMedia_Call ¶
MockUserDataExportRepo_GetUserMedia_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserMedia'
func (*MockUserDataExportRepo_GetUserMedia_Call) Return ¶
func (_c *MockUserDataExportRepo_GetUserMedia_Call) Return(userMediaItems []*repository.UserMediaItem, err error) *MockUserDataExportRepo_GetUserMedia_Call
func (*MockUserDataExportRepo_GetUserMedia_Call) Run ¶
func (_c *MockUserDataExportRepo_GetUserMedia_Call) Run(run func(ctx context.Context, userID int)) *MockUserDataExportRepo_GetUserMedia_Call
func (*MockUserDataExportRepo_GetUserMedia_Call) RunAndReturn ¶
func (_c *MockUserDataExportRepo_GetUserMedia_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*repository.UserMediaItem, error)) *MockUserDataExportRepo_GetUserMedia_Call
type MockUserDeletionRepo ¶
MockUserDeletionRepo is an autogenerated mock type for the UserDeletionRepo type
func NewMockUserDeletionRepo ¶
func NewMockUserDeletionRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockUserDeletionRepo
NewMockUserDeletionRepo creates a new instance of MockUserDeletionRepo. 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 (*MockUserDeletionRepo) CountUsersByRoleAndStatus ¶
func (_mock *MockUserDeletionRepo) CountUsersByRoleAndStatus(ctx context.Context, role string, status string) (int, error)
CountUsersByRoleAndStatus provides a mock function for the type MockUserDeletionRepo
func (*MockUserDeletionRepo) DeleteAllUserData ¶
func (_mock *MockUserDeletionRepo) DeleteAllUserData(ctx context.Context, userID int) error
DeleteAllUserData provides a mock function for the type MockUserDeletionRepo
func (*MockUserDeletionRepo) DeleteUserAccount ¶
func (_mock *MockUserDeletionRepo) DeleteUserAccount(ctx context.Context, userID int) error
DeleteUserAccount provides a mock function for the type MockUserDeletionRepo
func (*MockUserDeletionRepo) DeleteUserComments ¶
func (_mock *MockUserDeletionRepo) DeleteUserComments(ctx context.Context, userID int) error
DeleteUserComments provides a mock function for the type MockUserDeletionRepo
func (*MockUserDeletionRepo) DeleteUserContent ¶
func (_mock *MockUserDeletionRepo) DeleteUserContent(ctx context.Context, userID int) error
DeleteUserContent provides a mock function for the type MockUserDeletionRepo
func (*MockUserDeletionRepo) DeleteUserMedia ¶
func (_mock *MockUserDeletionRepo) DeleteUserMedia(ctx context.Context, userID int) error
DeleteUserMedia provides a mock function for the type MockUserDeletionRepo
func (*MockUserDeletionRepo) DeleteUserTokens ¶
func (_mock *MockUserDeletionRepo) DeleteUserTokens(ctx context.Context, userID int) error
DeleteUserTokens provides a mock function for the type MockUserDeletionRepo
func (*MockUserDeletionRepo) EXPECT ¶
func (_m *MockUserDeletionRepo) EXPECT() *MockUserDeletionRepo_Expecter
type MockUserDeletionRepo_CountUsersByRoleAndStatus_Call ¶
MockUserDeletionRepo_CountUsersByRoleAndStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountUsersByRoleAndStatus'
func (*MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) Return ¶
func (_c *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) Return(n int, err error) *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call
func (*MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) Run ¶
func (_c *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) Run(run func(ctx context.Context, role string, status string)) *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call
func (*MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) RunAndReturn ¶
func (_c *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) RunAndReturn(run func(ctx context.Context, role string, status string) (int, error)) *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call
type MockUserDeletionRepo_DeleteAllUserData_Call ¶
MockUserDeletionRepo_DeleteAllUserData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllUserData'
func (*MockUserDeletionRepo_DeleteAllUserData_Call) Return ¶
func (_c *MockUserDeletionRepo_DeleteAllUserData_Call) Return(err error) *MockUserDeletionRepo_DeleteAllUserData_Call
func (*MockUserDeletionRepo_DeleteAllUserData_Call) Run ¶
func (_c *MockUserDeletionRepo_DeleteAllUserData_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteAllUserData_Call
func (*MockUserDeletionRepo_DeleteAllUserData_Call) RunAndReturn ¶
func (_c *MockUserDeletionRepo_DeleteAllUserData_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteAllUserData_Call
type MockUserDeletionRepo_DeleteUserAccount_Call ¶
MockUserDeletionRepo_DeleteUserAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserAccount'
func (*MockUserDeletionRepo_DeleteUserAccount_Call) Return ¶
func (_c *MockUserDeletionRepo_DeleteUserAccount_Call) Return(err error) *MockUserDeletionRepo_DeleteUserAccount_Call
func (*MockUserDeletionRepo_DeleteUserAccount_Call) Run ¶
func (_c *MockUserDeletionRepo_DeleteUserAccount_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserAccount_Call
func (*MockUserDeletionRepo_DeleteUserAccount_Call) RunAndReturn ¶
func (_c *MockUserDeletionRepo_DeleteUserAccount_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserAccount_Call
type MockUserDeletionRepo_DeleteUserComments_Call ¶
MockUserDeletionRepo_DeleteUserComments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserComments'
func (*MockUserDeletionRepo_DeleteUserComments_Call) Return ¶
func (_c *MockUserDeletionRepo_DeleteUserComments_Call) Return(err error) *MockUserDeletionRepo_DeleteUserComments_Call
func (*MockUserDeletionRepo_DeleteUserComments_Call) Run ¶
func (_c *MockUserDeletionRepo_DeleteUserComments_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserComments_Call
func (*MockUserDeletionRepo_DeleteUserComments_Call) RunAndReturn ¶
func (_c *MockUserDeletionRepo_DeleteUserComments_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserComments_Call
type MockUserDeletionRepo_DeleteUserContent_Call ¶
MockUserDeletionRepo_DeleteUserContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserContent'
func (*MockUserDeletionRepo_DeleteUserContent_Call) Return ¶
func (_c *MockUserDeletionRepo_DeleteUserContent_Call) Return(err error) *MockUserDeletionRepo_DeleteUserContent_Call
func (*MockUserDeletionRepo_DeleteUserContent_Call) Run ¶
func (_c *MockUserDeletionRepo_DeleteUserContent_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserContent_Call
func (*MockUserDeletionRepo_DeleteUserContent_Call) RunAndReturn ¶
func (_c *MockUserDeletionRepo_DeleteUserContent_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserContent_Call
type MockUserDeletionRepo_DeleteUserMedia_Call ¶
MockUserDeletionRepo_DeleteUserMedia_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserMedia'
func (*MockUserDeletionRepo_DeleteUserMedia_Call) Return ¶
func (_c *MockUserDeletionRepo_DeleteUserMedia_Call) Return(err error) *MockUserDeletionRepo_DeleteUserMedia_Call
func (*MockUserDeletionRepo_DeleteUserMedia_Call) Run ¶
func (_c *MockUserDeletionRepo_DeleteUserMedia_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserMedia_Call
func (*MockUserDeletionRepo_DeleteUserMedia_Call) RunAndReturn ¶
func (_c *MockUserDeletionRepo_DeleteUserMedia_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserMedia_Call
type MockUserDeletionRepo_DeleteUserTokens_Call ¶
MockUserDeletionRepo_DeleteUserTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserTokens'
func (*MockUserDeletionRepo_DeleteUserTokens_Call) Return ¶
func (_c *MockUserDeletionRepo_DeleteUserTokens_Call) Return(err error) *MockUserDeletionRepo_DeleteUserTokens_Call
func (*MockUserDeletionRepo_DeleteUserTokens_Call) Run ¶
func (_c *MockUserDeletionRepo_DeleteUserTokens_Call) Run(run func(ctx context.Context, userID int)) *MockUserDeletionRepo_DeleteUserTokens_Call
func (*MockUserDeletionRepo_DeleteUserTokens_Call) RunAndReturn ¶
func (_c *MockUserDeletionRepo_DeleteUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserDeletionRepo_DeleteUserTokens_Call
type MockUserDeletionRepo_Expecter ¶
type MockUserDeletionRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUserDeletionRepo_Expecter) CountUsersByRoleAndStatus ¶
func (_e *MockUserDeletionRepo_Expecter) CountUsersByRoleAndStatus(ctx any, role any, status any) *MockUserDeletionRepo_CountUsersByRoleAndStatus_Call
CountUsersByRoleAndStatus is a helper method to define mock.On call
- ctx context.Context
- role string
- status string
func (*MockUserDeletionRepo_Expecter) DeleteAllUserData ¶
func (_e *MockUserDeletionRepo_Expecter) DeleteAllUserData(ctx any, userID any) *MockUserDeletionRepo_DeleteAllUserData_Call
DeleteAllUserData is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserDeletionRepo_Expecter) DeleteUserAccount ¶
func (_e *MockUserDeletionRepo_Expecter) DeleteUserAccount(ctx any, userID any) *MockUserDeletionRepo_DeleteUserAccount_Call
DeleteUserAccount is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserDeletionRepo_Expecter) DeleteUserComments ¶
func (_e *MockUserDeletionRepo_Expecter) DeleteUserComments(ctx any, userID any) *MockUserDeletionRepo_DeleteUserComments_Call
DeleteUserComments is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserDeletionRepo_Expecter) DeleteUserContent ¶
func (_e *MockUserDeletionRepo_Expecter) DeleteUserContent(ctx any, userID any) *MockUserDeletionRepo_DeleteUserContent_Call
DeleteUserContent is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserDeletionRepo_Expecter) DeleteUserMedia ¶
func (_e *MockUserDeletionRepo_Expecter) DeleteUserMedia(ctx any, userID any) *MockUserDeletionRepo_DeleteUserMedia_Call
DeleteUserMedia is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserDeletionRepo_Expecter) DeleteUserTokens ¶
func (_e *MockUserDeletionRepo_Expecter) DeleteUserTokens(ctx any, userID any) *MockUserDeletionRepo_DeleteUserTokens_Call
DeleteUserTokens is a helper method to define mock.On call
- ctx context.Context
- userID int
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) CheckEmailExists ¶
CheckEmailExists provides a mock function for the type MockUserRepo
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) CheckUsernameExists ¶
CheckUsernameExists provides a mock function for the type MockUserRepo
func (*MockUserRepo) CreateUser ¶
func (_mock *MockUserRepo) CreateUser(ctx context.Context, user *repository.User) error
CreateUser provides a mock function for the type MockUserRepo
func (*MockUserRepo) DeleteProfilePicture ¶
func (_mock *MockUserRepo) DeleteProfilePicture(ctx context.Context, userID int) error
DeleteProfilePicture 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) GetAdminUser ¶
func (_mock *MockUserRepo) GetAdminUser(ctx context.Context) (*repository.User, error)
GetAdminUser provides a mock function for the type MockUserRepo
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) GetUserByEmail ¶
func (_mock *MockUserRepo) GetUserByEmail(ctx context.Context, email string) (*repository.User, error)
GetUserByEmail 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) GetUserByUsername ¶
func (_mock *MockUserRepo) GetUserByUsername(ctx context.Context, username string) (*repository.User, error)
GetUserByUsername 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) UpdateAdminPasswordAndEmail ¶
func (_mock *MockUserRepo) UpdateAdminPasswordAndEmail(ctx context.Context, passwordHash string, email string, currentPasswordHash string) error
UpdateAdminPasswordAndEmail provides a mock function for the type MockUserRepo
func (*MockUserRepo) UpdateCustomFields ¶
func (_mock *MockUserRepo) UpdateCustomFields(ctx context.Context, userID int, customFields map[string]any) error
UpdateCustomFields provides a mock function for the type MockUserRepo
func (*MockUserRepo) UpdateEmail ¶
UpdateEmail provides a mock function for the type MockUserRepo
func (*MockUserRepo) UpdateLastLoginAt ¶
func (_mock *MockUserRepo) UpdateLastLoginAt(ctx context.Context, userID int) error
UpdateLastLoginAt provides a mock function for the type MockUserRepo
func (*MockUserRepo) UpdateName ¶ added in v0.2.0
UpdateName provides a mock function for the type MockUserRepo
func (*MockUserRepo) UpdatePassword ¶
func (_mock *MockUserRepo) UpdatePassword(ctx context.Context, userID int, currentPasswordHash string, newPasswordHash string) error
UpdatePassword provides a mock function for the type MockUserRepo
func (*MockUserRepo) UpdatePasswordByUserID ¶
func (_mock *MockUserRepo) UpdatePasswordByUserID(ctx context.Context, userID int, newPasswordHash string) error
UpdatePasswordByUserID 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) UpdateProfilePicture ¶
func (_mock *MockUserRepo) UpdateProfilePicture(ctx context.Context, userID int, profilePicture string) error
UpdateProfilePicture 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_CheckEmailExists_Call ¶
MockUserRepo_CheckEmailExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckEmailExists'
func (*MockUserRepo_CheckEmailExists_Call) Return ¶
func (_c *MockUserRepo_CheckEmailExists_Call) Return(b bool, err error) *MockUserRepo_CheckEmailExists_Call
func (*MockUserRepo_CheckEmailExists_Call) Run ¶
func (_c *MockUserRepo_CheckEmailExists_Call) Run(run func(ctx context.Context, email string)) *MockUserRepo_CheckEmailExists_Call
func (*MockUserRepo_CheckEmailExists_Call) RunAndReturn ¶
func (_c *MockUserRepo_CheckEmailExists_Call) RunAndReturn(run func(ctx context.Context, email string) (bool, error)) *MockUserRepo_CheckEmailExists_Call
type MockUserRepo_CheckUsernameExists_Call ¶
MockUserRepo_CheckUsernameExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckUsernameExists'
func (*MockUserRepo_CheckUsernameExists_Call) Return ¶
func (_c *MockUserRepo_CheckUsernameExists_Call) Return(b bool, err error) *MockUserRepo_CheckUsernameExists_Call
func (*MockUserRepo_CheckUsernameExists_Call) Run ¶
func (_c *MockUserRepo_CheckUsernameExists_Call) Run(run func(ctx context.Context, username string)) *MockUserRepo_CheckUsernameExists_Call
func (*MockUserRepo_CheckUsernameExists_Call) RunAndReturn ¶
func (_c *MockUserRepo_CheckUsernameExists_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *MockUserRepo_CheckUsernameExists_Call
type MockUserRepo_CreateUser_Call ¶
MockUserRepo_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*MockUserRepo_CreateUser_Call) Return ¶
func (_c *MockUserRepo_CreateUser_Call) Return(err error) *MockUserRepo_CreateUser_Call
func (*MockUserRepo_CreateUser_Call) Run ¶
func (_c *MockUserRepo_CreateUser_Call) Run(run func(ctx context.Context, user *repository.User)) *MockUserRepo_CreateUser_Call
func (*MockUserRepo_CreateUser_Call) RunAndReturn ¶
func (_c *MockUserRepo_CreateUser_Call) RunAndReturn(run func(ctx context.Context, user *repository.User) error) *MockUserRepo_CreateUser_Call
type MockUserRepo_DeleteProfilePicture_Call ¶
MockUserRepo_DeleteProfilePicture_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProfilePicture'
func (*MockUserRepo_DeleteProfilePicture_Call) Return ¶
func (_c *MockUserRepo_DeleteProfilePicture_Call) Return(err error) *MockUserRepo_DeleteProfilePicture_Call
func (*MockUserRepo_DeleteProfilePicture_Call) Run ¶
func (_c *MockUserRepo_DeleteProfilePicture_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_DeleteProfilePicture_Call
func (*MockUserRepo_DeleteProfilePicture_Call) RunAndReturn ¶
func (_c *MockUserRepo_DeleteProfilePicture_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_DeleteProfilePicture_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) CheckEmailExists ¶
func (_e *MockUserRepo_Expecter) CheckEmailExists(ctx any, email any) *MockUserRepo_CheckEmailExists_Call
CheckEmailExists is a helper method to define mock.On call
- ctx context.Context
- email string
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) CheckUsernameExists ¶
func (_e *MockUserRepo_Expecter) CheckUsernameExists(ctx any, username any) *MockUserRepo_CheckUsernameExists_Call
CheckUsernameExists is a helper method to define mock.On call
- ctx context.Context
- username string
func (*MockUserRepo_Expecter) CreateUser ¶
func (_e *MockUserRepo_Expecter) CreateUser(ctx any, user any) *MockUserRepo_CreateUser_Call
CreateUser is a helper method to define mock.On call
- ctx context.Context
- user *repository.User
func (*MockUserRepo_Expecter) DeleteProfilePicture ¶
func (_e *MockUserRepo_Expecter) DeleteProfilePicture(ctx any, userID any) *MockUserRepo_DeleteProfilePicture_Call
DeleteProfilePicture is a helper method to define mock.On call
- ctx context.Context
- userID int
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) GetAdminUser ¶
func (_e *MockUserRepo_Expecter) GetAdminUser(ctx any) *MockUserRepo_GetAdminUser_Call
GetAdminUser is a helper method to define mock.On call
- ctx context.Context
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) GetUserByEmail ¶
func (_e *MockUserRepo_Expecter) GetUserByEmail(ctx any, email any) *MockUserRepo_GetUserByEmail_Call
GetUserByEmail is a helper method to define mock.On call
- ctx context.Context
- email string
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) GetUserByUsername ¶
func (_e *MockUserRepo_Expecter) GetUserByUsername(ctx any, username any) *MockUserRepo_GetUserByUsername_Call
GetUserByUsername is a helper method to define mock.On call
- ctx context.Context
- username string
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) UpdateAdminPasswordAndEmail ¶
func (_e *MockUserRepo_Expecter) UpdateAdminPasswordAndEmail(ctx any, passwordHash any, email any, currentPasswordHash any) *MockUserRepo_UpdateAdminPasswordAndEmail_Call
UpdateAdminPasswordAndEmail is a helper method to define mock.On call
- ctx context.Context
- passwordHash string
- email string
- currentPasswordHash string
func (*MockUserRepo_Expecter) UpdateCustomFields ¶
func (_e *MockUserRepo_Expecter) UpdateCustomFields(ctx any, userID any, customFields any) *MockUserRepo_UpdateCustomFields_Call
UpdateCustomFields is a helper method to define mock.On call
- ctx context.Context
- userID int
- customFields map[string]any
func (*MockUserRepo_Expecter) UpdateEmail ¶
func (_e *MockUserRepo_Expecter) UpdateEmail(ctx any, userID any, email any) *MockUserRepo_UpdateEmail_Call
UpdateEmail is a helper method to define mock.On call
- ctx context.Context
- userID int
- email string
func (*MockUserRepo_Expecter) UpdateLastLoginAt ¶
func (_e *MockUserRepo_Expecter) UpdateLastLoginAt(ctx any, userID any) *MockUserRepo_UpdateLastLoginAt_Call
UpdateLastLoginAt is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockUserRepo_Expecter) UpdateName ¶ added in v0.2.0
func (_e *MockUserRepo_Expecter) UpdateName(ctx any, userID any, name any) *MockUserRepo_UpdateName_Call
UpdateName is a helper method to define mock.On call
- ctx context.Context
- userID int
- name string
func (*MockUserRepo_Expecter) UpdatePassword ¶
func (_e *MockUserRepo_Expecter) UpdatePassword(ctx any, userID any, currentPasswordHash any, newPasswordHash any) *MockUserRepo_UpdatePassword_Call
UpdatePassword is a helper method to define mock.On call
- ctx context.Context
- userID int
- currentPasswordHash string
- newPasswordHash string
func (*MockUserRepo_Expecter) UpdatePasswordByUserID ¶
func (_e *MockUserRepo_Expecter) UpdatePasswordByUserID(ctx any, userID any, newPasswordHash any) *MockUserRepo_UpdatePasswordByUserID_Call
UpdatePasswordByUserID is a helper method to define mock.On call
- ctx context.Context
- userID int
- newPasswordHash string
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) UpdateProfilePicture ¶
func (_e *MockUserRepo_Expecter) UpdateProfilePicture(ctx any, userID any, profilePicture any) *MockUserRepo_UpdateProfilePicture_Call
UpdateProfilePicture is a helper method to define mock.On call
- ctx context.Context
- userID int
- profilePicture string
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_GetAdminUser_Call ¶
MockUserRepo_GetAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAdminUser'
func (*MockUserRepo_GetAdminUser_Call) Return ¶
func (_c *MockUserRepo_GetAdminUser_Call) Return(user *repository.User, err error) *MockUserRepo_GetAdminUser_Call
func (*MockUserRepo_GetAdminUser_Call) Run ¶
func (_c *MockUserRepo_GetAdminUser_Call) Run(run func(ctx context.Context)) *MockUserRepo_GetAdminUser_Call
func (*MockUserRepo_GetAdminUser_Call) RunAndReturn ¶
func (_c *MockUserRepo_GetAdminUser_Call) RunAndReturn(run func(ctx context.Context) (*repository.User, error)) *MockUserRepo_GetAdminUser_Call
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_GetUserByEmail_Call ¶
MockUserRepo_GetUserByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByEmail'
func (*MockUserRepo_GetUserByEmail_Call) Return ¶
func (_c *MockUserRepo_GetUserByEmail_Call) Return(user *repository.User, err error) *MockUserRepo_GetUserByEmail_Call
func (*MockUserRepo_GetUserByEmail_Call) Run ¶
func (_c *MockUserRepo_GetUserByEmail_Call) Run(run func(ctx context.Context, email string)) *MockUserRepo_GetUserByEmail_Call
func (*MockUserRepo_GetUserByEmail_Call) RunAndReturn ¶
func (_c *MockUserRepo_GetUserByEmail_Call) RunAndReturn(run func(ctx context.Context, email string) (*repository.User, error)) *MockUserRepo_GetUserByEmail_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_GetUserByUsername_Call ¶
MockUserRepo_GetUserByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsername'
func (*MockUserRepo_GetUserByUsername_Call) Return ¶
func (_c *MockUserRepo_GetUserByUsername_Call) Return(user *repository.User, err error) *MockUserRepo_GetUserByUsername_Call
func (*MockUserRepo_GetUserByUsername_Call) Run ¶
func (_c *MockUserRepo_GetUserByUsername_Call) Run(run func(ctx context.Context, username string)) *MockUserRepo_GetUserByUsername_Call
func (*MockUserRepo_GetUserByUsername_Call) RunAndReturn ¶
func (_c *MockUserRepo_GetUserByUsername_Call) RunAndReturn(run func(ctx context.Context, username string) (*repository.User, error)) *MockUserRepo_GetUserByUsername_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_UpdateAdminPasswordAndEmail_Call ¶
MockUserRepo_UpdateAdminPasswordAndEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAdminPasswordAndEmail'
func (*MockUserRepo_UpdateAdminPasswordAndEmail_Call) Return ¶
func (_c *MockUserRepo_UpdateAdminPasswordAndEmail_Call) Return(err error) *MockUserRepo_UpdateAdminPasswordAndEmail_Call
func (*MockUserRepo_UpdateAdminPasswordAndEmail_Call) Run ¶
func (_c *MockUserRepo_UpdateAdminPasswordAndEmail_Call) Run(run func(ctx context.Context, passwordHash string, email string, currentPasswordHash string)) *MockUserRepo_UpdateAdminPasswordAndEmail_Call
func (*MockUserRepo_UpdateAdminPasswordAndEmail_Call) RunAndReturn ¶
func (_c *MockUserRepo_UpdateAdminPasswordAndEmail_Call) RunAndReturn(run func(ctx context.Context, passwordHash string, email string, currentPasswordHash string) error) *MockUserRepo_UpdateAdminPasswordAndEmail_Call
type MockUserRepo_UpdateCustomFields_Call ¶
MockUserRepo_UpdateCustomFields_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCustomFields'
func (*MockUserRepo_UpdateCustomFields_Call) Return ¶
func (_c *MockUserRepo_UpdateCustomFields_Call) Return(err error) *MockUserRepo_UpdateCustomFields_Call
func (*MockUserRepo_UpdateCustomFields_Call) Run ¶
func (_c *MockUserRepo_UpdateCustomFields_Call) Run(run func(ctx context.Context, userID int, customFields map[string]any)) *MockUserRepo_UpdateCustomFields_Call
func (*MockUserRepo_UpdateCustomFields_Call) RunAndReturn ¶
func (_c *MockUserRepo_UpdateCustomFields_Call) RunAndReturn(run func(ctx context.Context, userID int, customFields map[string]any) error) *MockUserRepo_UpdateCustomFields_Call
type MockUserRepo_UpdateEmail_Call ¶
MockUserRepo_UpdateEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEmail'
func (*MockUserRepo_UpdateEmail_Call) Return ¶
func (_c *MockUserRepo_UpdateEmail_Call) Return(err error) *MockUserRepo_UpdateEmail_Call
func (*MockUserRepo_UpdateEmail_Call) Run ¶
func (_c *MockUserRepo_UpdateEmail_Call) Run(run func(ctx context.Context, userID int, email string)) *MockUserRepo_UpdateEmail_Call
func (*MockUserRepo_UpdateEmail_Call) RunAndReturn ¶
func (_c *MockUserRepo_UpdateEmail_Call) RunAndReturn(run func(ctx context.Context, userID int, email string) error) *MockUserRepo_UpdateEmail_Call
type MockUserRepo_UpdateLastLoginAt_Call ¶
MockUserRepo_UpdateLastLoginAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLastLoginAt'
func (*MockUserRepo_UpdateLastLoginAt_Call) Return ¶
func (_c *MockUserRepo_UpdateLastLoginAt_Call) Return(err error) *MockUserRepo_UpdateLastLoginAt_Call
func (*MockUserRepo_UpdateLastLoginAt_Call) Run ¶
func (_c *MockUserRepo_UpdateLastLoginAt_Call) Run(run func(ctx context.Context, userID int)) *MockUserRepo_UpdateLastLoginAt_Call
func (*MockUserRepo_UpdateLastLoginAt_Call) RunAndReturn ¶
func (_c *MockUserRepo_UpdateLastLoginAt_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_UpdateLastLoginAt_Call
type MockUserRepo_UpdateName_Call ¶ added in v0.2.0
MockUserRepo_UpdateName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateName'
func (*MockUserRepo_UpdateName_Call) Return ¶ added in v0.2.0
func (_c *MockUserRepo_UpdateName_Call) Return(err error) *MockUserRepo_UpdateName_Call
func (*MockUserRepo_UpdateName_Call) Run ¶ added in v0.2.0
func (_c *MockUserRepo_UpdateName_Call) Run(run func(ctx context.Context, userID int, name string)) *MockUserRepo_UpdateName_Call
func (*MockUserRepo_UpdateName_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockUserRepo_UpdateName_Call) RunAndReturn(run func(ctx context.Context, userID int, name string) error) *MockUserRepo_UpdateName_Call
type MockUserRepo_UpdatePasswordByUserID_Call ¶
MockUserRepo_UpdatePasswordByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePasswordByUserID'
func (*MockUserRepo_UpdatePasswordByUserID_Call) Return ¶
func (_c *MockUserRepo_UpdatePasswordByUserID_Call) Return(err error) *MockUserRepo_UpdatePasswordByUserID_Call
func (*MockUserRepo_UpdatePasswordByUserID_Call) Run ¶
func (_c *MockUserRepo_UpdatePasswordByUserID_Call) Run(run func(ctx context.Context, userID int, newPasswordHash string)) *MockUserRepo_UpdatePasswordByUserID_Call
func (*MockUserRepo_UpdatePasswordByUserID_Call) RunAndReturn ¶
func (_c *MockUserRepo_UpdatePasswordByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int, newPasswordHash string) error) *MockUserRepo_UpdatePasswordByUserID_Call
type MockUserRepo_UpdatePassword_Call ¶
MockUserRepo_UpdatePassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePassword'
func (*MockUserRepo_UpdatePassword_Call) Return ¶
func (_c *MockUserRepo_UpdatePassword_Call) Return(err error) *MockUserRepo_UpdatePassword_Call
func (*MockUserRepo_UpdatePassword_Call) Run ¶
func (_c *MockUserRepo_UpdatePassword_Call) Run(run func(ctx context.Context, userID int, currentPasswordHash string, newPasswordHash string)) *MockUserRepo_UpdatePassword_Call
func (*MockUserRepo_UpdatePassword_Call) RunAndReturn ¶
func (_c *MockUserRepo_UpdatePassword_Call) RunAndReturn(run func(ctx context.Context, userID int, currentPasswordHash string, newPasswordHash string) error) *MockUserRepo_UpdatePassword_Call
type MockUserRepo_UpdateProfilePicture_Call ¶
MockUserRepo_UpdateProfilePicture_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProfilePicture'
func (*MockUserRepo_UpdateProfilePicture_Call) Return ¶
func (_c *MockUserRepo_UpdateProfilePicture_Call) Return(err error) *MockUserRepo_UpdateProfilePicture_Call
func (*MockUserRepo_UpdateProfilePicture_Call) Run ¶
func (_c *MockUserRepo_UpdateProfilePicture_Call) Run(run func(ctx context.Context, userID int, profilePicture string)) *MockUserRepo_UpdateProfilePicture_Call
func (*MockUserRepo_UpdateProfilePicture_Call) RunAndReturn ¶
func (_c *MockUserRepo_UpdateProfilePicture_Call) RunAndReturn(run func(ctx context.Context, userID int, profilePicture string) error) *MockUserRepo_UpdateProfilePicture_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
type MockVerificationTokenRepo ¶
MockVerificationTokenRepo is an autogenerated mock type for the VerificationTokenRepo type
func NewMockVerificationTokenRepo ¶
func NewMockVerificationTokenRepo(t interface {
mock.TestingT
Cleanup(func())
}) *MockVerificationTokenRepo
NewMockVerificationTokenRepo creates a new instance of MockVerificationTokenRepo. 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 (*MockVerificationTokenRepo) CreateToken ¶
func (_mock *MockVerificationTokenRepo) CreateToken(ctx context.Context, token *repository.VerificationToken) error
CreateToken provides a mock function for the type MockVerificationTokenRepo
func (*MockVerificationTokenRepo) DeleteExpiredTokens ¶
func (_mock *MockVerificationTokenRepo) DeleteExpiredTokens(ctx context.Context) error
DeleteExpiredTokens provides a mock function for the type MockVerificationTokenRepo
func (*MockVerificationTokenRepo) DeleteUserTokens ¶
func (_mock *MockVerificationTokenRepo) DeleteUserTokens(ctx context.Context, userID int) error
DeleteUserTokens provides a mock function for the type MockVerificationTokenRepo
func (*MockVerificationTokenRepo) EXPECT ¶
func (_m *MockVerificationTokenRepo) EXPECT() *MockVerificationTokenRepo_Expecter
func (*MockVerificationTokenRepo) FindValidToken ¶
func (_mock *MockVerificationTokenRepo) FindValidToken(ctx context.Context, tokenHash string) (*repository.VerificationToken, error)
FindValidToken provides a mock function for the type MockVerificationTokenRepo
type MockVerificationTokenRepo_CreateToken_Call ¶
MockVerificationTokenRepo_CreateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateToken'
func (*MockVerificationTokenRepo_CreateToken_Call) Return ¶
func (_c *MockVerificationTokenRepo_CreateToken_Call) Return(err error) *MockVerificationTokenRepo_CreateToken_Call
func (*MockVerificationTokenRepo_CreateToken_Call) Run ¶
func (_c *MockVerificationTokenRepo_CreateToken_Call) Run(run func(ctx context.Context, token *repository.VerificationToken)) *MockVerificationTokenRepo_CreateToken_Call
func (*MockVerificationTokenRepo_CreateToken_Call) RunAndReturn ¶
func (_c *MockVerificationTokenRepo_CreateToken_Call) RunAndReturn(run func(ctx context.Context, token *repository.VerificationToken) error) *MockVerificationTokenRepo_CreateToken_Call
type MockVerificationTokenRepo_DeleteExpiredTokens_Call ¶
MockVerificationTokenRepo_DeleteExpiredTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteExpiredTokens'
func (*MockVerificationTokenRepo_DeleteExpiredTokens_Call) Run ¶
func (_c *MockVerificationTokenRepo_DeleteExpiredTokens_Call) Run(run func(ctx context.Context)) *MockVerificationTokenRepo_DeleteExpiredTokens_Call
func (*MockVerificationTokenRepo_DeleteExpiredTokens_Call) RunAndReturn ¶
func (_c *MockVerificationTokenRepo_DeleteExpiredTokens_Call) RunAndReturn(run func(ctx context.Context) error) *MockVerificationTokenRepo_DeleteExpiredTokens_Call
type MockVerificationTokenRepo_DeleteUserTokens_Call ¶
MockVerificationTokenRepo_DeleteUserTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserTokens'
func (*MockVerificationTokenRepo_DeleteUserTokens_Call) Return ¶
func (_c *MockVerificationTokenRepo_DeleteUserTokens_Call) Return(err error) *MockVerificationTokenRepo_DeleteUserTokens_Call
func (*MockVerificationTokenRepo_DeleteUserTokens_Call) Run ¶
func (_c *MockVerificationTokenRepo_DeleteUserTokens_Call) Run(run func(ctx context.Context, userID int)) *MockVerificationTokenRepo_DeleteUserTokens_Call
func (*MockVerificationTokenRepo_DeleteUserTokens_Call) RunAndReturn ¶
func (_c *MockVerificationTokenRepo_DeleteUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockVerificationTokenRepo_DeleteUserTokens_Call
type MockVerificationTokenRepo_Expecter ¶
type MockVerificationTokenRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockVerificationTokenRepo_Expecter) CreateToken ¶
func (_e *MockVerificationTokenRepo_Expecter) CreateToken(ctx any, token any) *MockVerificationTokenRepo_CreateToken_Call
CreateToken is a helper method to define mock.On call
- ctx context.Context
- token *repository.VerificationToken
func (*MockVerificationTokenRepo_Expecter) DeleteExpiredTokens ¶
func (_e *MockVerificationTokenRepo_Expecter) DeleteExpiredTokens(ctx any) *MockVerificationTokenRepo_DeleteExpiredTokens_Call
DeleteExpiredTokens is a helper method to define mock.On call
- ctx context.Context
func (*MockVerificationTokenRepo_Expecter) DeleteUserTokens ¶
func (_e *MockVerificationTokenRepo_Expecter) DeleteUserTokens(ctx any, userID any) *MockVerificationTokenRepo_DeleteUserTokens_Call
DeleteUserTokens is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockVerificationTokenRepo_Expecter) FindValidToken ¶
func (_e *MockVerificationTokenRepo_Expecter) FindValidToken(ctx any, tokenHash any) *MockVerificationTokenRepo_FindValidToken_Call
FindValidToken is a helper method to define mock.On call
- ctx context.Context
- tokenHash string
type MockVerificationTokenRepo_FindValidToken_Call ¶
MockVerificationTokenRepo_FindValidToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindValidToken'
func (*MockVerificationTokenRepo_FindValidToken_Call) Return ¶
func (_c *MockVerificationTokenRepo_FindValidToken_Call) Return(verificationToken *repository.VerificationToken, err error) *MockVerificationTokenRepo_FindValidToken_Call
func (*MockVerificationTokenRepo_FindValidToken_Call) Run ¶
func (_c *MockVerificationTokenRepo_FindValidToken_Call) Run(run func(ctx context.Context, tokenHash string)) *MockVerificationTokenRepo_FindValidToken_Call
func (*MockVerificationTokenRepo_FindValidToken_Call) RunAndReturn ¶
func (_c *MockVerificationTokenRepo_FindValidToken_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) (*repository.VerificationToken, error)) *MockVerificationTokenRepo_FindValidToken_Call