mocks

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEmailService

type MockEmailService struct {
	mock.Mock
}

MockEmailService is an autogenerated mock type for the EmailService type

func NewMockEmailService

func NewMockEmailService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEmailService

NewMockEmailService creates a new instance of MockEmailService. 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 (*MockEmailService) EXPECT

func (*MockEmailService) SendAccountCreatedEmail

func (_mock *MockEmailService) SendAccountCreatedEmail(ctx context.Context, to string, username string, plainPassword string) error

SendAccountCreatedEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendAccountDeletedNotification

func (_mock *MockEmailService) SendAccountDeletedNotification(ctx context.Context, to string, username string) error

SendAccountDeletedNotification provides a mock function for the type MockEmailService

func (*MockEmailService) SendAccountLockoutEmail

func (_mock *MockEmailService) SendAccountLockoutEmail(ctx context.Context, to string, username string) error

SendAccountLockoutEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendDataExportNotificationEmail

func (_mock *MockEmailService) SendDataExportNotificationEmail(ctx context.Context, to string, username string) error

SendDataExportNotificationEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendEmailUpdateVerificationEmail

func (_mock *MockEmailService) SendEmailUpdateVerificationEmail(ctx context.Context, to string, username string, token string) error

SendEmailUpdateVerificationEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendMFACodeEmail added in v1.1.0

func (_mock *MockEmailService) SendMFACodeEmail(ctx context.Context, to string, username string, code string) error

SendMFACodeEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendPasswordResetEmail

func (_mock *MockEmailService) SendPasswordResetEmail(ctx context.Context, to string, username string, token string) error

SendPasswordResetEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendRegistrationAttemptEmail added in v1.1.0

func (_mock *MockEmailService) SendRegistrationAttemptEmail(ctx context.Context, to string, username string) error

SendRegistrationAttemptEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendUserApprovedEmail

func (_mock *MockEmailService) SendUserApprovedEmail(ctx context.Context, to string, username string) error

SendUserApprovedEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendUserRejectedEmail

func (_mock *MockEmailService) SendUserRejectedEmail(ctx context.Context, to string, username string) error

SendUserRejectedEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendUserSoftDeletedEmail

func (_mock *MockEmailService) SendUserSoftDeletedEmail(ctx context.Context, to string, username string, reason string) error

SendUserSoftDeletedEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendUserSuspendedEmail

func (_mock *MockEmailService) SendUserSuspendedEmail(ctx context.Context, to string, username string, reason string) error

SendUserSuspendedEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendUserUnsuspendedEmail

func (_mock *MockEmailService) SendUserUnsuspendedEmail(ctx context.Context, to string, username string) error

SendUserUnsuspendedEmail provides a mock function for the type MockEmailService

func (*MockEmailService) SendVerificationEmail

func (_mock *MockEmailService) SendVerificationEmail(ctx context.Context, to string, username string, token string) error

SendVerificationEmail provides a mock function for the type MockEmailService

type MockEmailService_Expecter

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

func (*MockEmailService_Expecter) SendAccountCreatedEmail

func (_e *MockEmailService_Expecter) SendAccountCreatedEmail(ctx any, to any, username any, plainPassword any) *MockEmailService_SendAccountCreatedEmail_Call

SendAccountCreatedEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string
  • plainPassword string

func (*MockEmailService_Expecter) SendAccountDeletedNotification

func (_e *MockEmailService_Expecter) SendAccountDeletedNotification(ctx any, to any, username any) *MockEmailService_SendAccountDeletedNotification_Call

SendAccountDeletedNotification is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string

func (*MockEmailService_Expecter) SendAccountLockoutEmail

func (_e *MockEmailService_Expecter) SendAccountLockoutEmail(ctx any, to any, username any) *MockEmailService_SendAccountLockoutEmail_Call

SendAccountLockoutEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string

func (*MockEmailService_Expecter) SendDataExportNotificationEmail

func (_e *MockEmailService_Expecter) SendDataExportNotificationEmail(ctx any, to any, username any) *MockEmailService_SendDataExportNotificationEmail_Call

SendDataExportNotificationEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string

func (*MockEmailService_Expecter) SendEmailUpdateVerificationEmail

func (_e *MockEmailService_Expecter) SendEmailUpdateVerificationEmail(ctx any, to any, username any, token any) *MockEmailService_SendEmailUpdateVerificationEmail_Call

SendEmailUpdateVerificationEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string
  • token string

func (*MockEmailService_Expecter) SendMFACodeEmail added in v1.1.0

func (_e *MockEmailService_Expecter) SendMFACodeEmail(ctx any, to any, username any, code any) *MockEmailService_SendMFACodeEmail_Call

SendMFACodeEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string
  • code string

func (*MockEmailService_Expecter) SendPasswordResetEmail

func (_e *MockEmailService_Expecter) SendPasswordResetEmail(ctx any, to any, username any, token any) *MockEmailService_SendPasswordResetEmail_Call

SendPasswordResetEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string
  • token string

func (*MockEmailService_Expecter) SendRegistrationAttemptEmail added in v1.1.0

func (_e *MockEmailService_Expecter) SendRegistrationAttemptEmail(ctx any, to any, username any) *MockEmailService_SendRegistrationAttemptEmail_Call

SendRegistrationAttemptEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string

func (*MockEmailService_Expecter) SendUserApprovedEmail

func (_e *MockEmailService_Expecter) SendUserApprovedEmail(ctx any, to any, username any) *MockEmailService_SendUserApprovedEmail_Call

SendUserApprovedEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string

func (*MockEmailService_Expecter) SendUserRejectedEmail

func (_e *MockEmailService_Expecter) SendUserRejectedEmail(ctx any, to any, username any) *MockEmailService_SendUserRejectedEmail_Call

SendUserRejectedEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string

func (*MockEmailService_Expecter) SendUserSoftDeletedEmail

func (_e *MockEmailService_Expecter) SendUserSoftDeletedEmail(ctx any, to any, username any, reason any) *MockEmailService_SendUserSoftDeletedEmail_Call

SendUserSoftDeletedEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string
  • reason string

func (*MockEmailService_Expecter) SendUserSuspendedEmail

func (_e *MockEmailService_Expecter) SendUserSuspendedEmail(ctx any, to any, username any, reason any) *MockEmailService_SendUserSuspendedEmail_Call

SendUserSuspendedEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string
  • reason string

func (*MockEmailService_Expecter) SendUserUnsuspendedEmail

func (_e *MockEmailService_Expecter) SendUserUnsuspendedEmail(ctx any, to any, username any) *MockEmailService_SendUserUnsuspendedEmail_Call

SendUserUnsuspendedEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string

func (*MockEmailService_Expecter) SendVerificationEmail

func (_e *MockEmailService_Expecter) SendVerificationEmail(ctx any, to any, username any, token any) *MockEmailService_SendVerificationEmail_Call

SendVerificationEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • username string
  • token string

type MockEmailService_SendAccountCreatedEmail_Call

type MockEmailService_SendAccountCreatedEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendAccountCreatedEmail_Call) Return

func (*MockEmailService_SendAccountCreatedEmail_Call) Run

func (*MockEmailService_SendAccountCreatedEmail_Call) RunAndReturn

type MockEmailService_SendAccountDeletedNotification_Call

type MockEmailService_SendAccountDeletedNotification_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendAccountDeletedNotification_Call) Return

func (*MockEmailService_SendAccountDeletedNotification_Call) Run

func (*MockEmailService_SendAccountDeletedNotification_Call) RunAndReturn

type MockEmailService_SendAccountLockoutEmail_Call

type MockEmailService_SendAccountLockoutEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendAccountLockoutEmail_Call) Return

func (*MockEmailService_SendAccountLockoutEmail_Call) Run

func (*MockEmailService_SendAccountLockoutEmail_Call) RunAndReturn

type MockEmailService_SendDataExportNotificationEmail_Call

type MockEmailService_SendDataExportNotificationEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendDataExportNotificationEmail_Call) Return

func (*MockEmailService_SendDataExportNotificationEmail_Call) Run

func (*MockEmailService_SendDataExportNotificationEmail_Call) RunAndReturn

type MockEmailService_SendEmailUpdateVerificationEmail_Call

type MockEmailService_SendEmailUpdateVerificationEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendEmailUpdateVerificationEmail_Call) Return

func (*MockEmailService_SendEmailUpdateVerificationEmail_Call) Run

func (*MockEmailService_SendEmailUpdateVerificationEmail_Call) RunAndReturn

type MockEmailService_SendMFACodeEmail_Call added in v1.1.0

type MockEmailService_SendMFACodeEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendMFACodeEmail_Call) Return added in v1.1.0

func (*MockEmailService_SendMFACodeEmail_Call) Run added in v1.1.0

func (*MockEmailService_SendMFACodeEmail_Call) RunAndReturn added in v1.1.0

type MockEmailService_SendPasswordResetEmail_Call

type MockEmailService_SendPasswordResetEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendPasswordResetEmail_Call) Return

func (*MockEmailService_SendPasswordResetEmail_Call) Run

func (*MockEmailService_SendPasswordResetEmail_Call) RunAndReturn

type MockEmailService_SendRegistrationAttemptEmail_Call added in v1.1.0

type MockEmailService_SendRegistrationAttemptEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendRegistrationAttemptEmail_Call) Return added in v1.1.0

func (*MockEmailService_SendRegistrationAttemptEmail_Call) Run added in v1.1.0

func (*MockEmailService_SendRegistrationAttemptEmail_Call) RunAndReturn added in v1.1.0

type MockEmailService_SendUserApprovedEmail_Call

type MockEmailService_SendUserApprovedEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendUserApprovedEmail_Call) Return

func (*MockEmailService_SendUserApprovedEmail_Call) Run

func (*MockEmailService_SendUserApprovedEmail_Call) RunAndReturn

type MockEmailService_SendUserRejectedEmail_Call

type MockEmailService_SendUserRejectedEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendUserRejectedEmail_Call) Return

func (*MockEmailService_SendUserRejectedEmail_Call) Run

func (*MockEmailService_SendUserRejectedEmail_Call) RunAndReturn

type MockEmailService_SendUserSoftDeletedEmail_Call

type MockEmailService_SendUserSoftDeletedEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendUserSoftDeletedEmail_Call) Return

func (*MockEmailService_SendUserSoftDeletedEmail_Call) Run

func (*MockEmailService_SendUserSoftDeletedEmail_Call) RunAndReturn

type MockEmailService_SendUserSuspendedEmail_Call

type MockEmailService_SendUserSuspendedEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendUserSuspendedEmail_Call) Return

func (*MockEmailService_SendUserSuspendedEmail_Call) Run

func (*MockEmailService_SendUserSuspendedEmail_Call) RunAndReturn

type MockEmailService_SendUserUnsuspendedEmail_Call

type MockEmailService_SendUserUnsuspendedEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendUserUnsuspendedEmail_Call) Return

func (*MockEmailService_SendUserUnsuspendedEmail_Call) Run

func (*MockEmailService_SendUserUnsuspendedEmail_Call) RunAndReturn

type MockEmailService_SendVerificationEmail_Call

type MockEmailService_SendVerificationEmail_Call struct {
	*mock.Call
}

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

func (*MockEmailService_SendVerificationEmail_Call) Return

func (*MockEmailService_SendVerificationEmail_Call) Run

func (*MockEmailService_SendVerificationEmail_Call) RunAndReturn

Jump to

Keyboard shortcuts

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