Documentation
¶
Index ¶
- type MockMailSender
- type MockMailSender_Expecter
- type MockMailSender_ResetPasswordEmail_Call
- func (_c *MockMailSender_ResetPasswordEmail_Call) Return(_a0 error) *MockMailSender_ResetPasswordEmail_Call
- func (_c *MockMailSender_ResetPasswordEmail_Call) Run(run func(ctx context.Context, to string, resetPasswordLink string)) *MockMailSender_ResetPasswordEmail_Call
- func (_c *MockMailSender_ResetPasswordEmail_Call) RunAndReturn(run func(context.Context, string, string) error) *MockMailSender_ResetPasswordEmail_Call
- type MockUserCreator
- type MockUserCreator_CreateUser_Call
- func (_c *MockUserCreator_CreateUser_Call) Return(_a0 action.User, _a1 error) *MockUserCreator_CreateUser_Call
- func (_c *MockUserCreator_CreateUser_Call) Run(run func(ctx context.Context, user action.User)) *MockUserCreator_CreateUser_Call
- func (_c *MockUserCreator_CreateUser_Call) RunAndReturn(run func(context.Context, action.User) (action.User, error)) *MockUserCreator_CreateUser_Call
- type MockUserCreator_Expecter
- type MockVerifiedEmailChecker
- type MockVerifiedEmailChecker_Expecter
- type MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call
- func (_c *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) Return(_a0 uuid.UUID, _a1 error) *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call
- func (_c *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) Run(run func(ctx context.Context, email string)) *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call
- func (_c *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) RunAndReturn(run func(context.Context, string) (uuid.UUID, error)) *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMailSender ¶
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 (_m *MockMailSender) EXPECT() *MockMailSender_Expecter
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 ¶
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 (_c *MockMailSender_ResetPasswordEmail_Call) Return(_a0 error) *MockMailSender_ResetPasswordEmail_Call
func (*MockMailSender_ResetPasswordEmail_Call) Run ¶
func (_c *MockMailSender_ResetPasswordEmail_Call) Run(run func(ctx context.Context, to string, resetPasswordLink string)) *MockMailSender_ResetPasswordEmail_Call
func (*MockMailSender_ResetPasswordEmail_Call) RunAndReturn ¶
func (_c *MockMailSender_ResetPasswordEmail_Call) RunAndReturn(run func(context.Context, string, string) error) *MockMailSender_ResetPasswordEmail_Call
type MockUserCreator ¶
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 ¶
CreateUser provides a mock function with given fields: ctx, user
func (*MockUserCreator) EXPECT ¶
func (_m *MockUserCreator) EXPECT() *MockUserCreator_Expecter
type MockUserCreator_CreateUser_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 (_c *MockUserCreator_CreateUser_Call) Return(_a0 action.User, _a1 error) *MockUserCreator_CreateUser_Call
func (*MockUserCreator_CreateUser_Call) Run ¶
func (_c *MockUserCreator_CreateUser_Call) Run(run func(ctx context.Context, user action.User)) *MockUserCreator_CreateUser_Call
func (*MockUserCreator_CreateUser_Call) RunAndReturn ¶
func (_c *MockUserCreator_CreateUser_Call) RunAndReturn(run func(context.Context, action.User) (action.User, error)) *MockUserCreator_CreateUser_Call
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 ¶
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 (_m *MockVerifiedEmailChecker) EXPECT() *MockVerifiedEmailChecker_Expecter
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 ¶
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 (_c *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) Return(_a0 uuid.UUID, _a1 error) *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call
func (*MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) Run ¶
func (_c *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) Run(run func(ctx context.Context, email string)) *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call
func (*MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) RunAndReturn ¶
func (_c *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call) RunAndReturn(run func(context.Context, string) (uuid.UUID, error)) *MockVerifiedEmailChecker_FindUserIDByVerifiedEmail_Call