mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 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 MockMailSender

type MockMailSender struct {
	mock.Mock
}

MockMailSender is an autogenerated mock type for the MailSender type

func NewMockMailSender

func NewMockMailSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMailSender

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

func (*MockMailSender) ResetPasswordEmail

func (_m *MockMailSender) ResetPasswordEmail(ctx context.Context, to string, resetPasswordLink string) error

ResetPasswordEmail provides a mock function with given fields: ctx, to, resetPasswordLink

type MockMailSender_Expecter

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

func (*MockMailSender_Expecter) ResetPasswordEmail

func (_e *MockMailSender_Expecter) ResetPasswordEmail(ctx interface{}, to interface{}, resetPasswordLink interface{}) *MockMailSender_ResetPasswordEmail_Call

ResetPasswordEmail is a helper method to define mock.On call

  • ctx context.Context
  • to string
  • resetPasswordLink string

type MockMailSender_ResetPasswordEmail_Call

type MockMailSender_ResetPasswordEmail_Call struct {
	*mock.Call
}

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

func (*MockMailSender_ResetPasswordEmail_Call) Return

func (*MockMailSender_ResetPasswordEmail_Call) Run

func (*MockMailSender_ResetPasswordEmail_Call) RunAndReturn

type MockUserCreator

type MockUserCreator struct {
	mock.Mock
}

MockUserCreator is an autogenerated mock type for the UserCreator type

func NewMockUserCreator

func NewMockUserCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUserCreator

NewMockUserCreator creates a new instance of MockUserCreator. 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 (*MockUserCreator) CreateUser

func (_m *MockUserCreator) CreateUser(ctx context.Context, user action.User) (action.User, error)

CreateUser provides a mock function with given fields: ctx, user

func (*MockUserCreator) EXPECT

type MockUserCreator_CreateUser_Call

type MockUserCreator_CreateUser_Call struct {
	*mock.Call
}

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

func (*MockUserCreator_CreateUser_Call) Return

func (*MockUserCreator_CreateUser_Call) Run

func (*MockUserCreator_CreateUser_Call) RunAndReturn

type MockUserCreator_Expecter

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

func (*MockUserCreator_Expecter) CreateUser

func (_e *MockUserCreator_Expecter) CreateUser(ctx interface{}, user interface{}) *MockUserCreator_CreateUser_Call

CreateUser is a helper method to define mock.On call

  • ctx context.Context
  • user action.User

type MockVerifiedEmailChecker

type MockVerifiedEmailChecker struct {
	mock.Mock
}

MockVerifiedEmailChecker is an autogenerated mock type for the VerifiedEmailChecker type

func NewMockVerifiedEmailChecker

func NewMockVerifiedEmailChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockVerifiedEmailChecker

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

func (*MockVerifiedEmailChecker) FindUserIDByVerifiedEmail

func (_m *MockVerifiedEmailChecker) FindUserIDByVerifiedEmail(ctx context.Context, email string) (uuid.UUID, error)

FindUserIDByVerifiedEmail provides a mock function with given fields: ctx, email

type MockVerifiedEmailChecker_Expecter

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

func (*MockVerifiedEmailChecker_Expecter) FindUserIDByVerifiedEmail

func (_e *MockVerifiedEmailChecker_Expecter) FindUserIDByVerifiedEmail(ctx interface{}, email interface{}) *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call

FindUserIDByVerifiedEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string

type MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call

type MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call struct {
	*mock.Call
}

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

func (*MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) Return

func (*MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) Run

func (*MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) RunAndReturn

Jump to

Keyboard shortcuts

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