mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockedEmailRepo

type MockBlockedEmailRepo struct {
	mock.Mock
}

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 (*MockBlockedEmailRepo) IsEmailBlocked

func (_mock *MockBlockedEmailRepo) IsEmailBlocked(ctx context.Context, email string) (bool, error)

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

type MockBlockedEmailRepo_BlockEmail_Call struct {
	*mock.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 (*MockBlockedEmailRepo_BlockEmail_Call) Run

func (*MockBlockedEmailRepo_BlockEmail_Call) RunAndReturn

type MockBlockedEmailRepo_Expecter

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

func (*MockBlockedEmailRepo_Expecter) BlockEmail

BlockEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string
  • reason string

func (*MockBlockedEmailRepo_Expecter) IsEmailBlocked

IsEmailBlocked is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*MockBlockedEmailRepo_Expecter) UnblockEmail

UnblockEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string

type MockBlockedEmailRepo_IsEmailBlocked_Call

type MockBlockedEmailRepo_IsEmailBlocked_Call struct {
	*mock.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 (*MockBlockedEmailRepo_IsEmailBlocked_Call) Run

func (*MockBlockedEmailRepo_IsEmailBlocked_Call) RunAndReturn

type MockBlockedEmailRepo_UnblockEmail_Call

type MockBlockedEmailRepo_UnblockEmail_Call struct {
	*mock.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 (*MockBlockedEmailRepo_UnblockEmail_Call) Run

func (*MockBlockedEmailRepo_UnblockEmail_Call) RunAndReturn

type MockEmailUpdateTokenRepo

type MockEmailUpdateTokenRepo struct {
	mock.Mock
}

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 (*MockEmailUpdateTokenRepo) GetToken

GetToken provides a mock function for the type MockEmailUpdateTokenRepo

type MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call

type MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call struct {
	*mock.Call
}

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

func (*MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) Return

func (*MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) Run

func (*MockEmailUpdateTokenRepo_CleanUpExpiredTokens_Call) RunAndReturn

type MockEmailUpdateTokenRepo_CreateToken_Call

type MockEmailUpdateTokenRepo_CreateToken_Call struct {
	*mock.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 (*MockEmailUpdateTokenRepo_CreateToken_Call) Run

func (*MockEmailUpdateTokenRepo_CreateToken_Call) RunAndReturn

type MockEmailUpdateTokenRepo_DeleteToken_Call

type MockEmailUpdateTokenRepo_DeleteToken_Call struct {
	*mock.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 (*MockEmailUpdateTokenRepo_DeleteToken_Call) Run

func (*MockEmailUpdateTokenRepo_DeleteToken_Call) RunAndReturn

type MockEmailUpdateTokenRepo_Expecter

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

func (*MockEmailUpdateTokenRepo_Expecter) CleanUpExpiredTokens

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

DeleteToken is a helper method to define mock.On call

  • ctx context.Context
  • tokenID int

func (*MockEmailUpdateTokenRepo_Expecter) GetToken

GetToken is a helper method to define mock.On call

  • ctx context.Context
  • token string

type MockEmailUpdateTokenRepo_GetToken_Call

type MockEmailUpdateTokenRepo_GetToken_Call struct {
	*mock.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 (*MockEmailUpdateTokenRepo_GetToken_Call) Run

func (*MockEmailUpdateTokenRepo_GetToken_Call) RunAndReturn

type MockFailedLoginAttemptRepo

type MockFailedLoginAttemptRepo struct {
	mock.Mock
}

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

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 (*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

type MockFailedLoginAttemptRepo_Create_Call struct {
	*mock.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 (*MockFailedLoginAttemptRepo_Create_Call) Run

func (*MockFailedLoginAttemptRepo_Create_Call) RunAndReturn

type MockFailedLoginAttemptRepo_Delete_Call

type MockFailedLoginAttemptRepo_Delete_Call struct {
	*mock.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 (*MockFailedLoginAttemptRepo_Delete_Call) Run

func (*MockFailedLoginAttemptRepo_Delete_Call) RunAndReturn

type MockFailedLoginAttemptRepo_Expecter

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

func (*MockFailedLoginAttemptRepo_Expecter) Create

Create is a helper method to define mock.On call

  • ctx context.Context
  • attempt *repository.FailedLoginAttempt

func (*MockFailedLoginAttemptRepo_Expecter) Delete

Delete is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockFailedLoginAttemptRepo_Expecter) GetByUserID

GetByUserID is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockFailedLoginAttemptRepo_Expecter) IncrementAttempts

IncrementAttempts is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockFailedLoginAttemptRepo_Expecter) IsLocked

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

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

UpdateLastEmailSent is a helper method to define mock.On call

  • ctx context.Context
  • userID int

type MockFailedLoginAttemptRepo_GetByUserID_Call

type MockFailedLoginAttemptRepo_GetByUserID_Call struct {
	*mock.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 (*MockFailedLoginAttemptRepo_GetByUserID_Call) Run

func (*MockFailedLoginAttemptRepo_GetByUserID_Call) RunAndReturn

type MockFailedLoginAttemptRepo_IncrementAttempts_Call

type MockFailedLoginAttemptRepo_IncrementAttempts_Call struct {
	*mock.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 (*MockFailedLoginAttemptRepo_IncrementAttempts_Call) Run

func (*MockFailedLoginAttemptRepo_IncrementAttempts_Call) RunAndReturn

type MockFailedLoginAttemptRepo_IsLocked_Call

type MockFailedLoginAttemptRepo_IsLocked_Call struct {
	*mock.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 (*MockFailedLoginAttemptRepo_IsLocked_Call) Run

func (*MockFailedLoginAttemptRepo_IsLocked_Call) RunAndReturn

type MockFailedLoginAttemptRepo_LockAccount_Call

type MockFailedLoginAttemptRepo_LockAccount_Call struct {
	*mock.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 (*MockFailedLoginAttemptRepo_LockAccount_Call) Run

func (*MockFailedLoginAttemptRepo_LockAccount_Call) RunAndReturn

type MockFailedLoginAttemptRepo_ResetAttempts_Call

type MockFailedLoginAttemptRepo_ResetAttempts_Call struct {
	*mock.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 (*MockFailedLoginAttemptRepo_ResetAttempts_Call) Run

func (*MockFailedLoginAttemptRepo_ResetAttempts_Call) RunAndReturn

type MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call

type MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call struct {
	*mock.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 (*MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) Run

func (*MockFailedLoginAttemptRepo_ShouldSendLockoutEmail_Call) RunAndReturn

type MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call

type MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call struct {
	*mock.Call
}

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

func (*MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) Return

func (*MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) Run

func (*MockFailedLoginAttemptRepo_UpdateLastEmailSent_Call) RunAndReturn

type MockNotificationRepo

type MockNotificationRepo struct {
	mock.Mock
}

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 (*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

type MockNotificationRepo_CreateNotification_Call struct {
	*mock.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 (*MockNotificationRepo_CreateNotification_Call) Run

func (*MockNotificationRepo_CreateNotification_Call) RunAndReturn

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

GetNotifications is a helper method to define mock.On call

  • ctx context.Context
  • limit int

type MockNotificationRepo_GetNotifications_Call

type MockNotificationRepo_GetNotifications_Call struct {
	*mock.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 (*MockNotificationRepo_GetNotifications_Call) Run

func (*MockNotificationRepo_GetNotifications_Call) RunAndReturn

type MockPasswordResetTokenRepo

type MockPasswordResetTokenRepo struct {
	mock.Mock
}

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

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 (*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

type MockPasswordResetTokenRepo_CreateToken_Call struct {
	*mock.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 (*MockPasswordResetTokenRepo_CreateToken_Call) Run

func (*MockPasswordResetTokenRepo_CreateToken_Call) RunAndReturn

type MockPasswordResetTokenRepo_DeleteUserTokens_Call

type MockPasswordResetTokenRepo_DeleteUserTokens_Call struct {
	*mock.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 (*MockPasswordResetTokenRepo_DeleteUserTokens_Call) Run

func (*MockPasswordResetTokenRepo_DeleteUserTokens_Call) RunAndReturn

type MockPasswordResetTokenRepo_Expecter

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

func (*MockPasswordResetTokenRepo_Expecter) CreateToken

CreateToken is a helper method to define mock.On call

  • ctx context.Context
  • token *repository.PasswordResetToken

func (*MockPasswordResetTokenRepo_Expecter) DeleteUserTokens

DeleteUserTokens is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockPasswordResetTokenRepo_Expecter) FindValidToken

FindValidToken is a helper method to define mock.On call

  • ctx context.Context
  • tokenHash string

type MockPasswordResetTokenRepo_FindValidToken_Call

type MockPasswordResetTokenRepo_FindValidToken_Call struct {
	*mock.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 (*MockPasswordResetTokenRepo_FindValidToken_Call) Run

func (*MockPasswordResetTokenRepo_FindValidToken_Call) RunAndReturn

type MockSoftDeleteRepo

type MockSoftDeleteRepo struct {
	mock.Mock
}

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 (*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

func (*MockSoftDeleteRepo) SoftDeleteContent

func (_mock *MockSoftDeleteRepo) SoftDeleteContent(ctx context.Context, contentType string, contentID int, userID int, deletedBy int, reason string) error

SoftDeleteContent provides a mock function for the type MockSoftDeleteRepo

type MockSoftDeleteRepo_Expecter

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

func (*MockSoftDeleteRepo_Expecter) GetSoftDeletedContentByID

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

type MockSoftDeleteRepo_GetSoftDeletedContentByID_Call struct {
	*mock.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 (*MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) Run

func (*MockSoftDeleteRepo_GetSoftDeletedContentByID_Call) RunAndReturn

type MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call

type MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call struct {
	*mock.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 (*MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) Run

func (*MockSoftDeleteRepo_GetSoftDeletedContentByUser_Call) RunAndReturn

type MockSoftDeleteRepo_PermanentDeleteContent_Call

type MockSoftDeleteRepo_PermanentDeleteContent_Call struct {
	*mock.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 (*MockSoftDeleteRepo_PermanentDeleteContent_Call) Run

func (*MockSoftDeleteRepo_PermanentDeleteContent_Call) RunAndReturn

type MockSoftDeleteRepo_RestoreContent_Call

type MockSoftDeleteRepo_RestoreContent_Call struct {
	*mock.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 (*MockSoftDeleteRepo_RestoreContent_Call) Run

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

type MockSoftDeleteRepo_SoftDeleteContent_Call struct {
	*mock.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 (*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

type MockUserDataExportRepo struct {
	mock.Mock
}

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 (*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

GetUserComments is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserDataExportRepo_Expecter) GetUserContent

GetUserContent is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserDataExportRepo_Expecter) GetUserDataForExport

GetUserDataForExport is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserDataExportRepo_Expecter) GetUserMedia

GetUserMedia is a helper method to define mock.On call

  • ctx context.Context
  • userID int

type MockUserDataExportRepo_GetUserComments_Call

type MockUserDataExportRepo_GetUserComments_Call struct {
	*mock.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 (*MockUserDataExportRepo_GetUserComments_Call) Run

func (*MockUserDataExportRepo_GetUserComments_Call) RunAndReturn

type MockUserDataExportRepo_GetUserContent_Call

type MockUserDataExportRepo_GetUserContent_Call struct {
	*mock.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 (*MockUserDataExportRepo_GetUserContent_Call) Run

func (*MockUserDataExportRepo_GetUserContent_Call) RunAndReturn

type MockUserDataExportRepo_GetUserDataForExport_Call

type MockUserDataExportRepo_GetUserDataForExport_Call struct {
	*mock.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 (*MockUserDataExportRepo_GetUserDataForExport_Call) Run

func (*MockUserDataExportRepo_GetUserDataForExport_Call) RunAndReturn

type MockUserDataExportRepo_GetUserMedia_Call

type MockUserDataExportRepo_GetUserMedia_Call struct {
	*mock.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 (*MockUserDataExportRepo_GetUserMedia_Call) Run

func (*MockUserDataExportRepo_GetUserMedia_Call) RunAndReturn

type MockUserDeletionRepo

type MockUserDeletionRepo struct {
	mock.Mock
}

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

type MockUserDeletionRepo_CountUsersByRoleAndStatus_Call

type MockUserDeletionRepo_CountUsersByRoleAndStatus_Call struct {
	*mock.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 (*MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) Run

func (*MockUserDeletionRepo_CountUsersByRoleAndStatus_Call) RunAndReturn

type MockUserDeletionRepo_DeleteAllUserData_Call

type MockUserDeletionRepo_DeleteAllUserData_Call struct {
	*mock.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 (*MockUserDeletionRepo_DeleteAllUserData_Call) Run

func (*MockUserDeletionRepo_DeleteAllUserData_Call) RunAndReturn

type MockUserDeletionRepo_DeleteUserAccount_Call

type MockUserDeletionRepo_DeleteUserAccount_Call struct {
	*mock.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 (*MockUserDeletionRepo_DeleteUserAccount_Call) Run

func (*MockUserDeletionRepo_DeleteUserAccount_Call) RunAndReturn

type MockUserDeletionRepo_DeleteUserComments_Call

type MockUserDeletionRepo_DeleteUserComments_Call struct {
	*mock.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 (*MockUserDeletionRepo_DeleteUserComments_Call) Run

func (*MockUserDeletionRepo_DeleteUserComments_Call) RunAndReturn

type MockUserDeletionRepo_DeleteUserContent_Call

type MockUserDeletionRepo_DeleteUserContent_Call struct {
	*mock.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 (*MockUserDeletionRepo_DeleteUserContent_Call) Run

func (*MockUserDeletionRepo_DeleteUserContent_Call) RunAndReturn

type MockUserDeletionRepo_DeleteUserMedia_Call

type MockUserDeletionRepo_DeleteUserMedia_Call struct {
	*mock.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 (*MockUserDeletionRepo_DeleteUserMedia_Call) Run

func (*MockUserDeletionRepo_DeleteUserMedia_Call) RunAndReturn

type MockUserDeletionRepo_DeleteUserTokens_Call

type MockUserDeletionRepo_DeleteUserTokens_Call struct {
	*mock.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 (*MockUserDeletionRepo_DeleteUserTokens_Call) Run

func (*MockUserDeletionRepo_DeleteUserTokens_Call) RunAndReturn

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

DeleteAllUserData is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserDeletionRepo_Expecter) DeleteUserAccount

DeleteUserAccount is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserDeletionRepo_Expecter) DeleteUserComments

DeleteUserComments is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserDeletionRepo_Expecter) DeleteUserContent

DeleteUserContent is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserDeletionRepo_Expecter) DeleteUserMedia

DeleteUserMedia is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserDeletionRepo_Expecter) DeleteUserTokens

DeleteUserTokens is a helper method to define mock.On call

  • ctx context.Context
  • userID int

type MockUserRepo

type MockUserRepo struct {
	mock.Mock
}

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

func (_mock *MockUserRepo) CheckEmailExists(ctx context.Context, email string) (bool, error)

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

func (_mock *MockUserRepo) CheckUsernameExists(ctx context.Context, username string) (bool, error)

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

func (_mock *MockUserRepo) GetUserStatus(ctx context.Context, userID int) (string, error)

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

func (_mock *MockUserRepo) UpdateEmail(ctx context.Context, userID int, email string) error

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

func (_mock *MockUserRepo) UpdateName(ctx context.Context, userID int, name string) error

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

func (_mock *MockUserRepo) UpdateUserStatus(ctx context.Context, userID int, status string) error

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

type MockUserRepo_CheckEmailExistsForOtherUser_Call struct {
	*mock.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 (*MockUserRepo_CheckEmailExistsForOtherUser_Call) Run

func (*MockUserRepo_CheckEmailExistsForOtherUser_Call) RunAndReturn

type MockUserRepo_CheckEmailExists_Call

type MockUserRepo_CheckEmailExists_Call struct {
	*mock.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 (*MockUserRepo_CheckEmailExists_Call) Run

func (*MockUserRepo_CheckEmailExists_Call) RunAndReturn

type MockUserRepo_CheckUsernameExists_Call

type MockUserRepo_CheckUsernameExists_Call struct {
	*mock.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 (*MockUserRepo_CheckUsernameExists_Call) Run

func (*MockUserRepo_CheckUsernameExists_Call) RunAndReturn

type MockUserRepo_CreateUser_Call

type MockUserRepo_CreateUser_Call struct {
	*mock.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 (*MockUserRepo_CreateUser_Call) Run

func (*MockUserRepo_CreateUser_Call) RunAndReturn

type MockUserRepo_DeleteProfilePicture_Call

type MockUserRepo_DeleteProfilePicture_Call struct {
	*mock.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 (*MockUserRepo_DeleteProfilePicture_Call) Run

func (*MockUserRepo_DeleteProfilePicture_Call) RunAndReturn

type MockUserRepo_DeleteUser_Call

type MockUserRepo_DeleteUser_Call struct {
	*mock.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 (*MockUserRepo_DeleteUser_Call) Run

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

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

type MockUserRepo_GetAdminUser_Call struct {
	*mock.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 (*MockUserRepo_GetAdminUser_Call) Run

func (*MockUserRepo_GetAdminUser_Call) RunAndReturn

type MockUserRepo_GetAllUsers_Call

type MockUserRepo_GetAllUsers_Call struct {
	*mock.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 (*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

type MockUserRepo_GetPendingUsers_Call struct {
	*mock.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 (*MockUserRepo_GetPendingUsers_Call) Run

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

type MockUserRepo_GetUserByEmail_Call struct {
	*mock.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 (*MockUserRepo_GetUserByEmail_Call) Run

func (*MockUserRepo_GetUserByEmail_Call) RunAndReturn

type MockUserRepo_GetUserByID_Call

type MockUserRepo_GetUserByID_Call struct {
	*mock.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 (*MockUserRepo_GetUserByID_Call) Run

func (*MockUserRepo_GetUserByID_Call) RunAndReturn

type MockUserRepo_GetUserByUsername_Call

type MockUserRepo_GetUserByUsername_Call struct {
	*mock.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 (*MockUserRepo_GetUserByUsername_Call) Run

func (*MockUserRepo_GetUserByUsername_Call) RunAndReturn

type MockUserRepo_GetUserStatus_Call

type MockUserRepo_GetUserStatus_Call struct {
	*mock.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 (*MockUserRepo_GetUserStatus_Call) Run

func (*MockUserRepo_GetUserStatus_Call) RunAndReturn

type MockUserRepo_SoftDeleteUser_Call

type MockUserRepo_SoftDeleteUser_Call struct {
	*mock.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 (*MockUserRepo_SoftDeleteUser_Call) Run

func (*MockUserRepo_SoftDeleteUser_Call) RunAndReturn

type MockUserRepo_SuspendUser_Call

type MockUserRepo_SuspendUser_Call struct {
	*mock.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 (*MockUserRepo_SuspendUser_Call) Run

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

type MockUserRepo_UnsuspendUser_Call struct {
	*mock.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 (*MockUserRepo_UnsuspendUser_Call) Run

func (*MockUserRepo_UnsuspendUser_Call) RunAndReturn

type MockUserRepo_UpdateAdminPasswordAndEmail_Call

type MockUserRepo_UpdateAdminPasswordAndEmail_Call struct {
	*mock.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 (*MockUserRepo_UpdateAdminPasswordAndEmail_Call) Run

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

type MockUserRepo_UpdateCustomFields_Call struct {
	*mock.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 (*MockUserRepo_UpdateCustomFields_Call) Run

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

type MockUserRepo_UpdateEmail_Call struct {
	*mock.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 (*MockUserRepo_UpdateEmail_Call) Run

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

type MockUserRepo_UpdateLastLoginAt_Call struct {
	*mock.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 (*MockUserRepo_UpdateLastLoginAt_Call) Run

func (*MockUserRepo_UpdateLastLoginAt_Call) RunAndReturn

type MockUserRepo_UpdateName_Call added in v0.2.0

type MockUserRepo_UpdateName_Call struct {
	*mock.Call
}

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 (*MockUserRepo_UpdateName_Call) Run added in v0.2.0

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

type MockUserRepo_UpdatePasswordByUserID_Call struct {
	*mock.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 (*MockUserRepo_UpdatePasswordByUserID_Call) Run

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

type MockUserRepo_UpdatePassword_Call struct {
	*mock.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 (*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

type MockUserRepo_UpdateProfilePicture_Call struct {
	*mock.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 (*MockUserRepo_UpdateProfilePicture_Call) Run

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

type MockUserRepo_UpdateProfile_Call struct {
	*mock.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 (*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

func (_c *MockUserRepo_UpdateProfile_Call) RunAndReturn(run func(ctx context.Context, userID int, name string, email string, role string, customFields map[string]any) error) *MockUserRepo_UpdateProfile_Call

type MockUserRepo_UpdateUserStatusIfCurrentStatus_Call

type MockUserRepo_UpdateUserStatusIfCurrentStatus_Call struct {
	*mock.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 (*MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) Run

func (*MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) RunAndReturn

type MockUserRepo_UpdateUserStatus_Call

type MockUserRepo_UpdateUserStatus_Call struct {
	*mock.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 (*MockUserRepo_UpdateUserStatus_Call) Run

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

type MockVerificationTokenRepo struct {
	mock.Mock
}

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

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 (*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

type MockVerificationTokenRepo_CreateToken_Call struct {
	*mock.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 (*MockVerificationTokenRepo_CreateToken_Call) Run

func (*MockVerificationTokenRepo_CreateToken_Call) RunAndReturn

type MockVerificationTokenRepo_DeleteExpiredTokens_Call

type MockVerificationTokenRepo_DeleteExpiredTokens_Call struct {
	*mock.Call
}

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

func (*MockVerificationTokenRepo_DeleteExpiredTokens_Call) Return

func (*MockVerificationTokenRepo_DeleteExpiredTokens_Call) Run

func (*MockVerificationTokenRepo_DeleteExpiredTokens_Call) RunAndReturn

type MockVerificationTokenRepo_DeleteUserTokens_Call

type MockVerificationTokenRepo_DeleteUserTokens_Call struct {
	*mock.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 (*MockVerificationTokenRepo_DeleteUserTokens_Call) Run

func (*MockVerificationTokenRepo_DeleteUserTokens_Call) RunAndReturn

type MockVerificationTokenRepo_Expecter

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

func (*MockVerificationTokenRepo_Expecter) CreateToken

CreateToken is a helper method to define mock.On call

  • ctx context.Context
  • token *repository.VerificationToken

func (*MockVerificationTokenRepo_Expecter) DeleteExpiredTokens

DeleteExpiredTokens is a helper method to define mock.On call

  • ctx context.Context

func (*MockVerificationTokenRepo_Expecter) DeleteUserTokens

DeleteUserTokens is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockVerificationTokenRepo_Expecter) FindValidToken

FindValidToken is a helper method to define mock.On call

  • ctx context.Context
  • tokenHash string

type MockVerificationTokenRepo_FindValidToken_Call

type MockVerificationTokenRepo_FindValidToken_Call struct {
	*mock.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 (*MockVerificationTokenRepo_FindValidToken_Call) Run

func (*MockVerificationTokenRepo_FindValidToken_Call) RunAndReturn

Jump to

Keyboard shortcuts

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