Documentation
¶
Index ¶
- type MockConsumeRefreshTokenService
- type MockConsumeRefreshTokenService_ConsumeRefreshToken_Call
- func (_c *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) Return(s string, err error) *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call
- func (_c *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) Run(run func(ctx context.Context, request services.ConsumeRefreshTokenRequest)) *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call
- func (_c *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) RunAndReturn(...) *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call
- type MockConsumeRefreshTokenService_Expecter
- type MockEmailExistsService
- type MockEmailExistsService_EmailExists_Call
- func (_c *MockEmailExistsService_EmailExists_Call) Return(b bool, err error) *MockEmailExistsService_EmailExists_Call
- func (_c *MockEmailExistsService_EmailExists_Call) Run(run func(ctx context.Context, request services.EmailExistsRequest)) *MockEmailExistsService_EmailExists_Call
- func (_c *MockEmailExistsService_EmailExists_Call) RunAndReturn(...) *MockEmailExistsService_EmailExists_Call
- type MockEmailExistsService_Expecter
- type MockGetUserService
- type MockGetUserService_Expecter
- type MockGetUserService_SelectUser_Call
- func (_c *MockGetUserService_SelectUser_Call) Return(user *models.User, err error) *MockGetUserService_SelectUser_Call
- func (_c *MockGetUserService_SelectUser_Call) Run(run func(ctx context.Context, request services.SelectUserRequest)) *MockGetUserService_SelectUser_Call
- func (_c *MockGetUserService_SelectUser_Call) RunAndReturn(...) *MockGetUserService_SelectUser_Call
- type MockListUsersService
- type MockListUsersService_Expecter
- type MockListUsersService_ListUsers_Call
- func (_c *MockListUsersService_ListUsers_Call) Return(users []*models.User, err error) *MockListUsersService_ListUsers_Call
- func (_c *MockListUsersService_ListUsers_Call) Run(run func(ctx context.Context, request services.ListUsersRequest)) *MockListUsersService_ListUsers_Call
- func (_c *MockListUsersService_ListUsers_Call) RunAndReturn(...) *MockListUsersService_ListUsers_Call
- type MockLoginAnonService
- type MockLoginAnonService_Expecter
- type MockLoginAnonService_LoginAnon_Call
- func (_c *MockLoginAnonService_LoginAnon_Call) Return(s string, err error) *MockLoginAnonService_LoginAnon_Call
- func (_c *MockLoginAnonService_LoginAnon_Call) Run(run func(ctx context.Context)) *MockLoginAnonService_LoginAnon_Call
- func (_c *MockLoginAnonService_LoginAnon_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockLoginAnonService_LoginAnon_Call
- type MockLoginService
- type MockLoginService_Expecter
- type MockLoginService_Login_Call
- func (_c *MockLoginService_Login_Call) Return(token *models.Token, err error) *MockLoginService_Login_Call
- func (_c *MockLoginService_Login_Call) Run(run func(ctx context.Context, request services.LoginRequest)) *MockLoginService_Login_Call
- func (_c *MockLoginService_Login_Call) RunAndReturn(...) *MockLoginService_Login_Call
- type MockRegisterService
- type MockRegisterService_Expecter
- type MockRegisterService_Register_Call
- func (_c *MockRegisterService_Register_Call) Return(token *models.Token, err error) *MockRegisterService_Register_Call
- func (_c *MockRegisterService_Register_Call) Run(run func(ctx context.Context, request services.RegisterRequest)) *MockRegisterService_Register_Call
- func (_c *MockRegisterService_Register_Call) RunAndReturn(...) *MockRegisterService_Register_Call
- type MockRequestEmailUpdateService
- type MockRequestEmailUpdateService_Expecter
- type MockRequestEmailUpdateService_RequestEmailUpdate_Call
- func (_c *MockRequestEmailUpdateService_RequestEmailUpdate_Call) Return(shortCode *models.ShortCode, err error) *MockRequestEmailUpdateService_RequestEmailUpdate_Call
- func (_c *MockRequestEmailUpdateService_RequestEmailUpdate_Call) Run(run func(ctx context.Context, request services.RequestEmailUpdateRequest)) *MockRequestEmailUpdateService_RequestEmailUpdate_Call
- func (_c *MockRequestEmailUpdateService_RequestEmailUpdate_Call) RunAndReturn(...) *MockRequestEmailUpdateService_RequestEmailUpdate_Call
- type MockRequestPasswordResetService
- type MockRequestPasswordResetService_Expecter
- type MockRequestPasswordResetService_RequestPasswordReset_Call
- func (_c *MockRequestPasswordResetService_RequestPasswordReset_Call) Return(shortCode *models.ShortCode, err error) *MockRequestPasswordResetService_RequestPasswordReset_Call
- func (_c *MockRequestPasswordResetService_RequestPasswordReset_Call) Run(run func(ctx context.Context, request services.RequestPasswordResetRequest)) *MockRequestPasswordResetService_RequestPasswordReset_Call
- func (_c *MockRequestPasswordResetService_RequestPasswordReset_Call) RunAndReturn(...) *MockRequestPasswordResetService_RequestPasswordReset_Call
- type MockRequestRegisterService
- type MockRequestRegisterService_Expecter
- type MockRequestRegisterService_RequestRegister_Call
- func (_c *MockRequestRegisterService_RequestRegister_Call) Return(shortCode *models.ShortCode, err error) *MockRequestRegisterService_RequestRegister_Call
- func (_c *MockRequestRegisterService_RequestRegister_Call) Run(run func(ctx context.Context, request services.RequestRegisterRequest)) *MockRequestRegisterService_RequestRegister_Call
- func (_c *MockRequestRegisterService_RequestRegister_Call) RunAndReturn(...) *MockRequestRegisterService_RequestRegister_Call
- type MockUpdateEmailService
- type MockUpdateEmailService_Expecter
- type MockUpdateEmailService_UpdateEmail_Call
- func (_c *MockUpdateEmailService_UpdateEmail_Call) Return(updateEmailResponse *services.UpdateEmailResponse, err error) *MockUpdateEmailService_UpdateEmail_Call
- func (_c *MockUpdateEmailService_UpdateEmail_Call) Run(run func(ctx context.Context, request services.UpdateEmailRequest)) *MockUpdateEmailService_UpdateEmail_Call
- func (_c *MockUpdateEmailService_UpdateEmail_Call) RunAndReturn(...) *MockUpdateEmailService_UpdateEmail_Call
- type MockUpdatePasswordService
- type MockUpdatePasswordService_Expecter
- type MockUpdatePasswordService_UpdatePassword_Call
- func (_c *MockUpdatePasswordService_UpdatePassword_Call) Return(err error) *MockUpdatePasswordService_UpdatePassword_Call
- func (_c *MockUpdatePasswordService_UpdatePassword_Call) Run(run func(ctx context.Context, request services.UpdatePasswordRequest)) *MockUpdatePasswordService_UpdatePassword_Call
- func (_c *MockUpdatePasswordService_UpdatePassword_Call) RunAndReturn(run func(ctx context.Context, request services.UpdatePasswordRequest) error) *MockUpdatePasswordService_UpdatePassword_Call
- type MockUpdateRoleService
- type MockUpdateRoleService_Expecter
- type MockUpdateRoleService_UpdateRole_Call
- func (_c *MockUpdateRoleService_UpdateRole_Call) Return(user *models.User, err error) *MockUpdateRoleService_UpdateRole_Call
- func (_c *MockUpdateRoleService_UpdateRole_Call) Run(run func(ctx context.Context, request services.UpdateRoleRequest)) *MockUpdateRoleService_UpdateRole_Call
- func (_c *MockUpdateRoleService_UpdateRole_Call) RunAndReturn(...) *MockUpdateRoleService_UpdateRole_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConsumeRefreshTokenService ¶
MockConsumeRefreshTokenService is an autogenerated mock type for the ConsumeRefreshTokenService type
func NewMockConsumeRefreshTokenService ¶
func NewMockConsumeRefreshTokenService(t interface {
mock.TestingT
Cleanup(func())
}) *MockConsumeRefreshTokenService
NewMockConsumeRefreshTokenService creates a new instance of MockConsumeRefreshTokenService. 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 (*MockConsumeRefreshTokenService) ConsumeRefreshToken ¶
func (_mock *MockConsumeRefreshTokenService) ConsumeRefreshToken(ctx context.Context, request services.ConsumeRefreshTokenRequest) (string, error)
ConsumeRefreshToken provides a mock function for the type MockConsumeRefreshTokenService
func (*MockConsumeRefreshTokenService) EXPECT ¶
func (_m *MockConsumeRefreshTokenService) EXPECT() *MockConsumeRefreshTokenService_Expecter
type MockConsumeRefreshTokenService_ConsumeRefreshToken_Call ¶
MockConsumeRefreshTokenService_ConsumeRefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConsumeRefreshToken'
func (*MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) Run ¶
func (_c *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) Run(run func(ctx context.Context, request services.ConsumeRefreshTokenRequest)) *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call
func (*MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) RunAndReturn ¶
func (_c *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) RunAndReturn(run func(ctx context.Context, request services.ConsumeRefreshTokenRequest) (string, error)) *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call
type MockConsumeRefreshTokenService_Expecter ¶
type MockConsumeRefreshTokenService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConsumeRefreshTokenService_Expecter) ConsumeRefreshToken ¶
func (_e *MockConsumeRefreshTokenService_Expecter) ConsumeRefreshToken(ctx interface{}, request interface{}) *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call
ConsumeRefreshToken is a helper method to define mock.On call
- ctx context.Context
- request services.ConsumeRefreshTokenRequest
type MockEmailExistsService ¶
MockEmailExistsService is an autogenerated mock type for the EmailExistsService type
func NewMockEmailExistsService ¶
func NewMockEmailExistsService(t interface {
mock.TestingT
Cleanup(func())
}) *MockEmailExistsService
NewMockEmailExistsService creates a new instance of MockEmailExistsService. 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 (*MockEmailExistsService) EXPECT ¶
func (_m *MockEmailExistsService) EXPECT() *MockEmailExistsService_Expecter
func (*MockEmailExistsService) EmailExists ¶
func (_mock *MockEmailExistsService) EmailExists(ctx context.Context, request services.EmailExistsRequest) (bool, error)
EmailExists provides a mock function for the type MockEmailExistsService
type MockEmailExistsService_EmailExists_Call ¶
MockEmailExistsService_EmailExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EmailExists'
func (*MockEmailExistsService_EmailExists_Call) Return ¶
func (_c *MockEmailExistsService_EmailExists_Call) Return(b bool, err error) *MockEmailExistsService_EmailExists_Call
func (*MockEmailExistsService_EmailExists_Call) Run ¶
func (_c *MockEmailExistsService_EmailExists_Call) Run(run func(ctx context.Context, request services.EmailExistsRequest)) *MockEmailExistsService_EmailExists_Call
func (*MockEmailExistsService_EmailExists_Call) RunAndReturn ¶
func (_c *MockEmailExistsService_EmailExists_Call) RunAndReturn(run func(ctx context.Context, request services.EmailExistsRequest) (bool, error)) *MockEmailExistsService_EmailExists_Call
type MockEmailExistsService_Expecter ¶
type MockEmailExistsService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEmailExistsService_Expecter) EmailExists ¶
func (_e *MockEmailExistsService_Expecter) EmailExists(ctx interface{}, request interface{}) *MockEmailExistsService_EmailExists_Call
EmailExists is a helper method to define mock.On call
- ctx context.Context
- request services.EmailExistsRequest
type MockGetUserService ¶
MockGetUserService is an autogenerated mock type for the GetUserService type
func NewMockGetUserService ¶
func NewMockGetUserService(t interface {
mock.TestingT
Cleanup(func())
}) *MockGetUserService
NewMockGetUserService creates a new instance of MockGetUserService. 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 (*MockGetUserService) EXPECT ¶
func (_m *MockGetUserService) EXPECT() *MockGetUserService_Expecter
func (*MockGetUserService) SelectUser ¶
func (_mock *MockGetUserService) SelectUser(ctx context.Context, request services.SelectUserRequest) (*models.User, error)
SelectUser provides a mock function for the type MockGetUserService
type MockGetUserService_Expecter ¶
type MockGetUserService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGetUserService_Expecter) SelectUser ¶
func (_e *MockGetUserService_Expecter) SelectUser(ctx interface{}, request interface{}) *MockGetUserService_SelectUser_Call
SelectUser is a helper method to define mock.On call
- ctx context.Context
- request services.SelectUserRequest
type MockGetUserService_SelectUser_Call ¶
MockGetUserService_SelectUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectUser'
func (*MockGetUserService_SelectUser_Call) Return ¶
func (_c *MockGetUserService_SelectUser_Call) Return(user *models.User, err error) *MockGetUserService_SelectUser_Call
func (*MockGetUserService_SelectUser_Call) Run ¶
func (_c *MockGetUserService_SelectUser_Call) Run(run func(ctx context.Context, request services.SelectUserRequest)) *MockGetUserService_SelectUser_Call
func (*MockGetUserService_SelectUser_Call) RunAndReturn ¶
func (_c *MockGetUserService_SelectUser_Call) RunAndReturn(run func(ctx context.Context, request services.SelectUserRequest) (*models.User, error)) *MockGetUserService_SelectUser_Call
type MockListUsersService ¶
MockListUsersService is an autogenerated mock type for the ListUsersService type
func NewMockListUsersService ¶
func NewMockListUsersService(t interface {
mock.TestingT
Cleanup(func())
}) *MockListUsersService
NewMockListUsersService creates a new instance of MockListUsersService. 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 (*MockListUsersService) EXPECT ¶
func (_m *MockListUsersService) EXPECT() *MockListUsersService_Expecter
func (*MockListUsersService) ListUsers ¶
func (_mock *MockListUsersService) ListUsers(ctx context.Context, request services.ListUsersRequest) ([]*models.User, error)
ListUsers provides a mock function for the type MockListUsersService
type MockListUsersService_Expecter ¶
type MockListUsersService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockListUsersService_Expecter) ListUsers ¶
func (_e *MockListUsersService_Expecter) ListUsers(ctx interface{}, request interface{}) *MockListUsersService_ListUsers_Call
ListUsers is a helper method to define mock.On call
- ctx context.Context
- request services.ListUsersRequest
type MockListUsersService_ListUsers_Call ¶
MockListUsersService_ListUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUsers'
func (*MockListUsersService_ListUsers_Call) Return ¶
func (_c *MockListUsersService_ListUsers_Call) Return(users []*models.User, err error) *MockListUsersService_ListUsers_Call
func (*MockListUsersService_ListUsers_Call) Run ¶
func (_c *MockListUsersService_ListUsers_Call) Run(run func(ctx context.Context, request services.ListUsersRequest)) *MockListUsersService_ListUsers_Call
func (*MockListUsersService_ListUsers_Call) RunAndReturn ¶
func (_c *MockListUsersService_ListUsers_Call) RunAndReturn(run func(ctx context.Context, request services.ListUsersRequest) ([]*models.User, error)) *MockListUsersService_ListUsers_Call
type MockLoginAnonService ¶
MockLoginAnonService is an autogenerated mock type for the LoginAnonService type
func NewMockLoginAnonService ¶
func NewMockLoginAnonService(t interface {
mock.TestingT
Cleanup(func())
}) *MockLoginAnonService
NewMockLoginAnonService creates a new instance of MockLoginAnonService. 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 (*MockLoginAnonService) EXPECT ¶
func (_m *MockLoginAnonService) EXPECT() *MockLoginAnonService_Expecter
type MockLoginAnonService_Expecter ¶
type MockLoginAnonService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLoginAnonService_Expecter) LoginAnon ¶
func (_e *MockLoginAnonService_Expecter) LoginAnon(ctx interface{}) *MockLoginAnonService_LoginAnon_Call
LoginAnon is a helper method to define mock.On call
- ctx context.Context
type MockLoginAnonService_LoginAnon_Call ¶
MockLoginAnonService_LoginAnon_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoginAnon'
func (*MockLoginAnonService_LoginAnon_Call) Return ¶
func (_c *MockLoginAnonService_LoginAnon_Call) Return(s string, err error) *MockLoginAnonService_LoginAnon_Call
func (*MockLoginAnonService_LoginAnon_Call) Run ¶
func (_c *MockLoginAnonService_LoginAnon_Call) Run(run func(ctx context.Context)) *MockLoginAnonService_LoginAnon_Call
func (*MockLoginAnonService_LoginAnon_Call) RunAndReturn ¶
func (_c *MockLoginAnonService_LoginAnon_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockLoginAnonService_LoginAnon_Call
type MockLoginService ¶
MockLoginService is an autogenerated mock type for the LoginService type
func NewMockLoginService ¶
func NewMockLoginService(t interface {
mock.TestingT
Cleanup(func())
}) *MockLoginService
NewMockLoginService creates a new instance of MockLoginService. 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 (*MockLoginService) EXPECT ¶
func (_m *MockLoginService) EXPECT() *MockLoginService_Expecter
func (*MockLoginService) Login ¶
func (_mock *MockLoginService) Login(ctx context.Context, request services.LoginRequest) (*models.Token, error)
Login provides a mock function for the type MockLoginService
type MockLoginService_Expecter ¶
type MockLoginService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLoginService_Expecter) Login ¶
func (_e *MockLoginService_Expecter) Login(ctx interface{}, request interface{}) *MockLoginService_Login_Call
Login is a helper method to define mock.On call
- ctx context.Context
- request services.LoginRequest
type MockLoginService_Login_Call ¶
MockLoginService_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*MockLoginService_Login_Call) Return ¶
func (_c *MockLoginService_Login_Call) Return(token *models.Token, err error) *MockLoginService_Login_Call
func (*MockLoginService_Login_Call) Run ¶
func (_c *MockLoginService_Login_Call) Run(run func(ctx context.Context, request services.LoginRequest)) *MockLoginService_Login_Call
func (*MockLoginService_Login_Call) RunAndReturn ¶
func (_c *MockLoginService_Login_Call) RunAndReturn(run func(ctx context.Context, request services.LoginRequest) (*models.Token, error)) *MockLoginService_Login_Call
type MockRegisterService ¶
MockRegisterService is an autogenerated mock type for the RegisterService type
func NewMockRegisterService ¶
func NewMockRegisterService(t interface {
mock.TestingT
Cleanup(func())
}) *MockRegisterService
NewMockRegisterService creates a new instance of MockRegisterService. 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 (*MockRegisterService) EXPECT ¶
func (_m *MockRegisterService) EXPECT() *MockRegisterService_Expecter
func (*MockRegisterService) Register ¶
func (_mock *MockRegisterService) Register(ctx context.Context, request services.RegisterRequest) (*models.Token, error)
Register provides a mock function for the type MockRegisterService
type MockRegisterService_Expecter ¶
type MockRegisterService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRegisterService_Expecter) Register ¶
func (_e *MockRegisterService_Expecter) Register(ctx interface{}, request interface{}) *MockRegisterService_Register_Call
Register is a helper method to define mock.On call
- ctx context.Context
- request services.RegisterRequest
type MockRegisterService_Register_Call ¶
MockRegisterService_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*MockRegisterService_Register_Call) Return ¶
func (_c *MockRegisterService_Register_Call) Return(token *models.Token, err error) *MockRegisterService_Register_Call
func (*MockRegisterService_Register_Call) Run ¶
func (_c *MockRegisterService_Register_Call) Run(run func(ctx context.Context, request services.RegisterRequest)) *MockRegisterService_Register_Call
func (*MockRegisterService_Register_Call) RunAndReturn ¶
func (_c *MockRegisterService_Register_Call) RunAndReturn(run func(ctx context.Context, request services.RegisterRequest) (*models.Token, error)) *MockRegisterService_Register_Call
type MockRequestEmailUpdateService ¶
MockRequestEmailUpdateService is an autogenerated mock type for the RequestEmailUpdateService type
func NewMockRequestEmailUpdateService ¶
func NewMockRequestEmailUpdateService(t interface {
mock.TestingT
Cleanup(func())
}) *MockRequestEmailUpdateService
NewMockRequestEmailUpdateService creates a new instance of MockRequestEmailUpdateService. 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 (*MockRequestEmailUpdateService) EXPECT ¶
func (_m *MockRequestEmailUpdateService) EXPECT() *MockRequestEmailUpdateService_Expecter
func (*MockRequestEmailUpdateService) RequestEmailUpdate ¶
func (_mock *MockRequestEmailUpdateService) RequestEmailUpdate(ctx context.Context, request services.RequestEmailUpdateRequest) (*models.ShortCode, error)
RequestEmailUpdate provides a mock function for the type MockRequestEmailUpdateService
type MockRequestEmailUpdateService_Expecter ¶
type MockRequestEmailUpdateService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRequestEmailUpdateService_Expecter) RequestEmailUpdate ¶
func (_e *MockRequestEmailUpdateService_Expecter) RequestEmailUpdate(ctx interface{}, request interface{}) *MockRequestEmailUpdateService_RequestEmailUpdate_Call
RequestEmailUpdate is a helper method to define mock.On call
- ctx context.Context
- request services.RequestEmailUpdateRequest
type MockRequestEmailUpdateService_RequestEmailUpdate_Call ¶
MockRequestEmailUpdateService_RequestEmailUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestEmailUpdate'
func (*MockRequestEmailUpdateService_RequestEmailUpdate_Call) Return ¶
func (_c *MockRequestEmailUpdateService_RequestEmailUpdate_Call) Return(shortCode *models.ShortCode, err error) *MockRequestEmailUpdateService_RequestEmailUpdate_Call
func (*MockRequestEmailUpdateService_RequestEmailUpdate_Call) Run ¶
func (_c *MockRequestEmailUpdateService_RequestEmailUpdate_Call) Run(run func(ctx context.Context, request services.RequestEmailUpdateRequest)) *MockRequestEmailUpdateService_RequestEmailUpdate_Call
func (*MockRequestEmailUpdateService_RequestEmailUpdate_Call) RunAndReturn ¶
func (_c *MockRequestEmailUpdateService_RequestEmailUpdate_Call) RunAndReturn(run func(ctx context.Context, request services.RequestEmailUpdateRequest) (*models.ShortCode, error)) *MockRequestEmailUpdateService_RequestEmailUpdate_Call
type MockRequestPasswordResetService ¶
MockRequestPasswordResetService is an autogenerated mock type for the RequestPasswordResetService type
func NewMockRequestPasswordResetService ¶
func NewMockRequestPasswordResetService(t interface {
mock.TestingT
Cleanup(func())
}) *MockRequestPasswordResetService
NewMockRequestPasswordResetService creates a new instance of MockRequestPasswordResetService. 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 (*MockRequestPasswordResetService) EXPECT ¶
func (_m *MockRequestPasswordResetService) EXPECT() *MockRequestPasswordResetService_Expecter
func (*MockRequestPasswordResetService) RequestPasswordReset ¶
func (_mock *MockRequestPasswordResetService) RequestPasswordReset(ctx context.Context, request services.RequestPasswordResetRequest) (*models.ShortCode, error)
RequestPasswordReset provides a mock function for the type MockRequestPasswordResetService
type MockRequestPasswordResetService_Expecter ¶
type MockRequestPasswordResetService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRequestPasswordResetService_Expecter) RequestPasswordReset ¶
func (_e *MockRequestPasswordResetService_Expecter) RequestPasswordReset(ctx interface{}, request interface{}) *MockRequestPasswordResetService_RequestPasswordReset_Call
RequestPasswordReset is a helper method to define mock.On call
- ctx context.Context
- request services.RequestPasswordResetRequest
type MockRequestPasswordResetService_RequestPasswordReset_Call ¶
MockRequestPasswordResetService_RequestPasswordReset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestPasswordReset'
func (*MockRequestPasswordResetService_RequestPasswordReset_Call) Return ¶
func (_c *MockRequestPasswordResetService_RequestPasswordReset_Call) Return(shortCode *models.ShortCode, err error) *MockRequestPasswordResetService_RequestPasswordReset_Call
func (*MockRequestPasswordResetService_RequestPasswordReset_Call) Run ¶
func (_c *MockRequestPasswordResetService_RequestPasswordReset_Call) Run(run func(ctx context.Context, request services.RequestPasswordResetRequest)) *MockRequestPasswordResetService_RequestPasswordReset_Call
func (*MockRequestPasswordResetService_RequestPasswordReset_Call) RunAndReturn ¶
func (_c *MockRequestPasswordResetService_RequestPasswordReset_Call) RunAndReturn(run func(ctx context.Context, request services.RequestPasswordResetRequest) (*models.ShortCode, error)) *MockRequestPasswordResetService_RequestPasswordReset_Call
type MockRequestRegisterService ¶
MockRequestRegisterService is an autogenerated mock type for the RequestRegisterService type
func NewMockRequestRegisterService ¶
func NewMockRequestRegisterService(t interface {
mock.TestingT
Cleanup(func())
}) *MockRequestRegisterService
NewMockRequestRegisterService creates a new instance of MockRequestRegisterService. 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 (*MockRequestRegisterService) EXPECT ¶
func (_m *MockRequestRegisterService) EXPECT() *MockRequestRegisterService_Expecter
func (*MockRequestRegisterService) RequestRegister ¶
func (_mock *MockRequestRegisterService) RequestRegister(ctx context.Context, request services.RequestRegisterRequest) (*models.ShortCode, error)
RequestRegister provides a mock function for the type MockRequestRegisterService
type MockRequestRegisterService_Expecter ¶
type MockRequestRegisterService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRequestRegisterService_Expecter) RequestRegister ¶
func (_e *MockRequestRegisterService_Expecter) RequestRegister(ctx interface{}, request interface{}) *MockRequestRegisterService_RequestRegister_Call
RequestRegister is a helper method to define mock.On call
- ctx context.Context
- request services.RequestRegisterRequest
type MockRequestRegisterService_RequestRegister_Call ¶
MockRequestRegisterService_RequestRegister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestRegister'
func (*MockRequestRegisterService_RequestRegister_Call) Return ¶
func (_c *MockRequestRegisterService_RequestRegister_Call) Return(shortCode *models.ShortCode, err error) *MockRequestRegisterService_RequestRegister_Call
func (*MockRequestRegisterService_RequestRegister_Call) Run ¶
func (_c *MockRequestRegisterService_RequestRegister_Call) Run(run func(ctx context.Context, request services.RequestRegisterRequest)) *MockRequestRegisterService_RequestRegister_Call
func (*MockRequestRegisterService_RequestRegister_Call) RunAndReturn ¶
func (_c *MockRequestRegisterService_RequestRegister_Call) RunAndReturn(run func(ctx context.Context, request services.RequestRegisterRequest) (*models.ShortCode, error)) *MockRequestRegisterService_RequestRegister_Call
type MockUpdateEmailService ¶
MockUpdateEmailService is an autogenerated mock type for the UpdateEmailService type
func NewMockUpdateEmailService ¶
func NewMockUpdateEmailService(t interface {
mock.TestingT
Cleanup(func())
}) *MockUpdateEmailService
NewMockUpdateEmailService creates a new instance of MockUpdateEmailService. 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 (*MockUpdateEmailService) EXPECT ¶
func (_m *MockUpdateEmailService) EXPECT() *MockUpdateEmailService_Expecter
func (*MockUpdateEmailService) UpdateEmail ¶
func (_mock *MockUpdateEmailService) UpdateEmail(ctx context.Context, request services.UpdateEmailRequest) (*services.UpdateEmailResponse, error)
UpdateEmail provides a mock function for the type MockUpdateEmailService
type MockUpdateEmailService_Expecter ¶
type MockUpdateEmailService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUpdateEmailService_Expecter) UpdateEmail ¶
func (_e *MockUpdateEmailService_Expecter) UpdateEmail(ctx interface{}, request interface{}) *MockUpdateEmailService_UpdateEmail_Call
UpdateEmail is a helper method to define mock.On call
- ctx context.Context
- request services.UpdateEmailRequest
type MockUpdateEmailService_UpdateEmail_Call ¶
MockUpdateEmailService_UpdateEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEmail'
func (*MockUpdateEmailService_UpdateEmail_Call) Return ¶
func (_c *MockUpdateEmailService_UpdateEmail_Call) Return(updateEmailResponse *services.UpdateEmailResponse, err error) *MockUpdateEmailService_UpdateEmail_Call
func (*MockUpdateEmailService_UpdateEmail_Call) Run ¶
func (_c *MockUpdateEmailService_UpdateEmail_Call) Run(run func(ctx context.Context, request services.UpdateEmailRequest)) *MockUpdateEmailService_UpdateEmail_Call
func (*MockUpdateEmailService_UpdateEmail_Call) RunAndReturn ¶
func (_c *MockUpdateEmailService_UpdateEmail_Call) RunAndReturn(run func(ctx context.Context, request services.UpdateEmailRequest) (*services.UpdateEmailResponse, error)) *MockUpdateEmailService_UpdateEmail_Call
type MockUpdatePasswordService ¶
MockUpdatePasswordService is an autogenerated mock type for the UpdatePasswordService type
func NewMockUpdatePasswordService ¶
func NewMockUpdatePasswordService(t interface {
mock.TestingT
Cleanup(func())
}) *MockUpdatePasswordService
NewMockUpdatePasswordService creates a new instance of MockUpdatePasswordService. 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 (*MockUpdatePasswordService) EXPECT ¶
func (_m *MockUpdatePasswordService) EXPECT() *MockUpdatePasswordService_Expecter
func (*MockUpdatePasswordService) UpdatePassword ¶
func (_mock *MockUpdatePasswordService) UpdatePassword(ctx context.Context, request services.UpdatePasswordRequest) error
UpdatePassword provides a mock function for the type MockUpdatePasswordService
type MockUpdatePasswordService_Expecter ¶
type MockUpdatePasswordService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUpdatePasswordService_Expecter) UpdatePassword ¶
func (_e *MockUpdatePasswordService_Expecter) UpdatePassword(ctx interface{}, request interface{}) *MockUpdatePasswordService_UpdatePassword_Call
UpdatePassword is a helper method to define mock.On call
- ctx context.Context
- request services.UpdatePasswordRequest
type MockUpdatePasswordService_UpdatePassword_Call ¶
MockUpdatePasswordService_UpdatePassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePassword'
func (*MockUpdatePasswordService_UpdatePassword_Call) Return ¶
func (_c *MockUpdatePasswordService_UpdatePassword_Call) Return(err error) *MockUpdatePasswordService_UpdatePassword_Call
func (*MockUpdatePasswordService_UpdatePassword_Call) Run ¶
func (_c *MockUpdatePasswordService_UpdatePassword_Call) Run(run func(ctx context.Context, request services.UpdatePasswordRequest)) *MockUpdatePasswordService_UpdatePassword_Call
func (*MockUpdatePasswordService_UpdatePassword_Call) RunAndReturn ¶
func (_c *MockUpdatePasswordService_UpdatePassword_Call) RunAndReturn(run func(ctx context.Context, request services.UpdatePasswordRequest) error) *MockUpdatePasswordService_UpdatePassword_Call
type MockUpdateRoleService ¶
MockUpdateRoleService is an autogenerated mock type for the UpdateRoleService type
func NewMockUpdateRoleService ¶
func NewMockUpdateRoleService(t interface {
mock.TestingT
Cleanup(func())
}) *MockUpdateRoleService
NewMockUpdateRoleService creates a new instance of MockUpdateRoleService. 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 (*MockUpdateRoleService) EXPECT ¶
func (_m *MockUpdateRoleService) EXPECT() *MockUpdateRoleService_Expecter
func (*MockUpdateRoleService) UpdateRole ¶
func (_mock *MockUpdateRoleService) UpdateRole(ctx context.Context, request services.UpdateRoleRequest) (*models.User, error)
UpdateRole provides a mock function for the type MockUpdateRoleService
type MockUpdateRoleService_Expecter ¶
type MockUpdateRoleService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUpdateRoleService_Expecter) UpdateRole ¶
func (_e *MockUpdateRoleService_Expecter) UpdateRole(ctx interface{}, request interface{}) *MockUpdateRoleService_UpdateRole_Call
UpdateRole is a helper method to define mock.On call
- ctx context.Context
- request services.UpdateRoleRequest
type MockUpdateRoleService_UpdateRole_Call ¶
MockUpdateRoleService_UpdateRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRole'
func (*MockUpdateRoleService_UpdateRole_Call) Return ¶
func (_c *MockUpdateRoleService_UpdateRole_Call) Return(user *models.User, err error) *MockUpdateRoleService_UpdateRole_Call
func (*MockUpdateRoleService_UpdateRole_Call) Run ¶
func (_c *MockUpdateRoleService_UpdateRole_Call) Run(run func(ctx context.Context, request services.UpdateRoleRequest)) *MockUpdateRoleService_UpdateRole_Call
func (*MockUpdateRoleService_UpdateRole_Call) RunAndReturn ¶
func (_c *MockUpdateRoleService_UpdateRole_Call) RunAndReturn(run func(ctx context.Context, request services.UpdateRoleRequest) (*models.User, error)) *MockUpdateRoleService_UpdateRole_Call