Documentation ¶
Index ¶
- type AccountRepository
- func (_m *AccountRepository) AddAccount(_a0 entities.Account) (*entities.Account, error)
- func (_m *AccountRepository) EXPECT() *AccountRepository_Expecter
- func (_m *AccountRepository) GetAccount(_a0 entities.EmailAddress) (*entities.Account, error)
- func (_m *AccountRepository) UpdateAccount(_a0 entities.Account) (*entities.Account, error)
- type AccountRepository_AddAccount_Call
- func (_c *AccountRepository_AddAccount_Call) Return(_a0 *entities.Account, _a1 error) *AccountRepository_AddAccount_Call
- func (_c *AccountRepository_AddAccount_Call) Run(run func(_a0 entities.Account)) *AccountRepository_AddAccount_Call
- func (_c *AccountRepository_AddAccount_Call) RunAndReturn(run func(entities.Account) (*entities.Account, error)) *AccountRepository_AddAccount_Call
- type AccountRepository_Expecter
- func (_e *AccountRepository_Expecter) AddAccount(_a0 interface{}) *AccountRepository_AddAccount_Call
- func (_e *AccountRepository_Expecter) GetAccount(_a0 interface{}) *AccountRepository_GetAccount_Call
- func (_e *AccountRepository_Expecter) UpdateAccount(_a0 interface{}) *AccountRepository_UpdateAccount_Call
- type AccountRepository_GetAccount_Call
- func (_c *AccountRepository_GetAccount_Call) Return(_a0 *entities.Account, _a1 error) *AccountRepository_GetAccount_Call
- func (_c *AccountRepository_GetAccount_Call) Run(run func(_a0 entities.EmailAddress)) *AccountRepository_GetAccount_Call
- func (_c *AccountRepository_GetAccount_Call) RunAndReturn(run func(entities.EmailAddress) (*entities.Account, error)) *AccountRepository_GetAccount_Call
- type AccountRepository_UpdateAccount_Call
- func (_c *AccountRepository_UpdateAccount_Call) Return(_a0 *entities.Account, _a1 error) *AccountRepository_UpdateAccount_Call
- func (_c *AccountRepository_UpdateAccount_Call) Run(run func(_a0 entities.Account)) *AccountRepository_UpdateAccount_Call
- func (_c *AccountRepository_UpdateAccount_Call) RunAndReturn(run func(entities.Account) (*entities.Account, error)) *AccountRepository_UpdateAccount_Call
- type CommandContext
- type CommandContext_AccountRepository_Call
- func (_c *CommandContext_AccountRepository_Call) Return(_a0 repositories.AccountRepository) *CommandContext_AccountRepository_Call
- func (_c *CommandContext_AccountRepository_Call) Run(run func()) *CommandContext_AccountRepository_Call
- func (_c *CommandContext_AccountRepository_Call) RunAndReturn(run func() repositories.AccountRepository) *CommandContext_AccountRepository_Call
- type CommandContext_Expecter
- type CommandContext_OtpRepository_Call
- func (_c *CommandContext_OtpRepository_Call) Return(_a0 repositories.OtpRepository) *CommandContext_OtpRepository_Call
- func (_c *CommandContext_OtpRepository_Call) Run(run func()) *CommandContext_OtpRepository_Call
- func (_c *CommandContext_OtpRepository_Call) RunAndReturn(run func() repositories.OtpRepository) *CommandContext_OtpRepository_Call
- type CommandContext_PasswordRepository_Call
- func (_c *CommandContext_PasswordRepository_Call) Return(_a0 repositories.PasswordRepository) *CommandContext_PasswordRepository_Call
- func (_c *CommandContext_PasswordRepository_Call) Run(run func()) *CommandContext_PasswordRepository_Call
- func (_c *CommandContext_PasswordRepository_Call) RunAndReturn(run func() repositories.PasswordRepository) *CommandContext_PasswordRepository_Call
- type OtpRepository
- type OtpRepository_AddOtp_Call
- type OtpRepository_Expecter
- type OtpRepository_GetOtp_Call
- func (_c *OtpRepository_GetOtp_Call) Return(_a0 *entities.Otp, _a1 error) *OtpRepository_GetOtp_Call
- func (_c *OtpRepository_GetOtp_Call) Run(run func(_a0 entities.EmailAddress)) *OtpRepository_GetOtp_Call
- func (_c *OtpRepository_GetOtp_Call) RunAndReturn(run func(entities.EmailAddress) (*entities.Otp, error)) *OtpRepository_GetOtp_Call
- type OtpRepository_RemoveOtp_Call
- func (_c *OtpRepository_RemoveOtp_Call) Return(_a0 error) *OtpRepository_RemoveOtp_Call
- func (_c *OtpRepository_RemoveOtp_Call) Run(run func(_a0 entities.Otp)) *OtpRepository_RemoveOtp_Call
- func (_c *OtpRepository_RemoveOtp_Call) RunAndReturn(run func(entities.Otp) error) *OtpRepository_RemoveOtp_Call
- type PasswordRepository
- func (_m *PasswordRepository) DeleteResetToken(e entities.EmailAddress) error
- func (_m *PasswordRepository) EXPECT() *PasswordRepository_Expecter
- func (_m *PasswordRepository) Get(_a0 entities.EmailAddress) (*entities.PasswordDetail, error)
- func (_m *PasswordRepository) GetResetCode(e entities.EmailAddress) (string, error)
- func (_m *PasswordRepository) Save(_a0 entities.PasswordDetail) error
- func (_m *PasswordRepository) SaveResetCode(e entities.EmailAddress, token string, ttl time.Duration) error
- type PasswordRepository_DeleteResetToken_Call
- func (_c *PasswordRepository_DeleteResetToken_Call) Return(_a0 error) *PasswordRepository_DeleteResetToken_Call
- func (_c *PasswordRepository_DeleteResetToken_Call) Run(run func(e entities.EmailAddress)) *PasswordRepository_DeleteResetToken_Call
- func (_c *PasswordRepository_DeleteResetToken_Call) RunAndReturn(run func(entities.EmailAddress) error) *PasswordRepository_DeleteResetToken_Call
- type PasswordRepository_Expecter
- func (_e *PasswordRepository_Expecter) DeleteResetToken(e interface{}) *PasswordRepository_DeleteResetToken_Call
- func (_e *PasswordRepository_Expecter) Get(_a0 interface{}) *PasswordRepository_Get_Call
- func (_e *PasswordRepository_Expecter) GetResetCode(e interface{}) *PasswordRepository_GetResetCode_Call
- func (_e *PasswordRepository_Expecter) Save(_a0 interface{}) *PasswordRepository_Save_Call
- func (_e *PasswordRepository_Expecter) SaveResetCode(e interface{}, token interface{}, ttl interface{}) *PasswordRepository_SaveResetCode_Call
- type PasswordRepository_GetResetCode_Call
- func (_c *PasswordRepository_GetResetCode_Call) Return(_a0 string, _a1 error) *PasswordRepository_GetResetCode_Call
- func (_c *PasswordRepository_GetResetCode_Call) Run(run func(e entities.EmailAddress)) *PasswordRepository_GetResetCode_Call
- func (_c *PasswordRepository_GetResetCode_Call) RunAndReturn(run func(entities.EmailAddress) (string, error)) *PasswordRepository_GetResetCode_Call
- type PasswordRepository_Get_Call
- func (_c *PasswordRepository_Get_Call) Return(_a0 *entities.PasswordDetail, _a1 error) *PasswordRepository_Get_Call
- func (_c *PasswordRepository_Get_Call) Run(run func(_a0 entities.EmailAddress)) *PasswordRepository_Get_Call
- func (_c *PasswordRepository_Get_Call) RunAndReturn(run func(entities.EmailAddress) (*entities.PasswordDetail, error)) *PasswordRepository_Get_Call
- type PasswordRepository_SaveResetCode_Call
- func (_c *PasswordRepository_SaveResetCode_Call) Return(_a0 error) *PasswordRepository_SaveResetCode_Call
- func (_c *PasswordRepository_SaveResetCode_Call) Run(run func(e entities.EmailAddress, token string, ttl time.Duration)) *PasswordRepository_SaveResetCode_Call
- func (_c *PasswordRepository_SaveResetCode_Call) RunAndReturn(run func(entities.EmailAddress, string, time.Duration) error) *PasswordRepository_SaveResetCode_Call
- type PasswordRepository_Save_Call
- func (_c *PasswordRepository_Save_Call) Return(_a0 error) *PasswordRepository_Save_Call
- func (_c *PasswordRepository_Save_Call) Run(run func(_a0 entities.PasswordDetail)) *PasswordRepository_Save_Call
- func (_c *PasswordRepository_Save_Call) RunAndReturn(run func(entities.PasswordDetail) error) *PasswordRepository_Save_Call
- type RoleRepository
- type RoleRepository_Expecter
- type RoleRepository_Save_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
AccountRepository is an autogenerated mock type for the AccountRepository type
func NewAccountRepository ¶
func NewAccountRepository(t interface { mock.TestingT Cleanup(func()) }) *AccountRepository
NewAccountRepository creates a new instance of AccountRepository. 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 (*AccountRepository) AddAccount ¶
AddAccount provides a mock function with given fields: _a0
func (*AccountRepository) EXPECT ¶
func (_m *AccountRepository) EXPECT() *AccountRepository_Expecter
func (*AccountRepository) GetAccount ¶
func (_m *AccountRepository) GetAccount(_a0 entities.EmailAddress) (*entities.Account, error)
GetAccount provides a mock function with given fields: _a0
func (*AccountRepository) UpdateAccount ¶
UpdateAccount provides a mock function with given fields: _a0
type AccountRepository_AddAccount_Call ¶
AccountRepository_AddAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddAccount'
func (*AccountRepository_AddAccount_Call) Return ¶
func (_c *AccountRepository_AddAccount_Call) Return(_a0 *entities.Account, _a1 error) *AccountRepository_AddAccount_Call
func (*AccountRepository_AddAccount_Call) Run ¶
func (_c *AccountRepository_AddAccount_Call) Run(run func(_a0 entities.Account)) *AccountRepository_AddAccount_Call
func (*AccountRepository_AddAccount_Call) RunAndReturn ¶
func (_c *AccountRepository_AddAccount_Call) RunAndReturn(run func(entities.Account) (*entities.Account, error)) *AccountRepository_AddAccount_Call
type AccountRepository_Expecter ¶
type AccountRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AccountRepository_Expecter) AddAccount ¶
func (_e *AccountRepository_Expecter) AddAccount(_a0 interface{}) *AccountRepository_AddAccount_Call
AddAccount is a helper method to define mock.On call
- _a0 entities.Account
func (*AccountRepository_Expecter) GetAccount ¶
func (_e *AccountRepository_Expecter) GetAccount(_a0 interface{}) *AccountRepository_GetAccount_Call
GetAccount is a helper method to define mock.On call
- _a0 entities.EmailAddress
func (*AccountRepository_Expecter) UpdateAccount ¶
func (_e *AccountRepository_Expecter) UpdateAccount(_a0 interface{}) *AccountRepository_UpdateAccount_Call
UpdateAccount is a helper method to define mock.On call
- _a0 entities.Account
type AccountRepository_GetAccount_Call ¶
AccountRepository_GetAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccount'
func (*AccountRepository_GetAccount_Call) Return ¶
func (_c *AccountRepository_GetAccount_Call) Return(_a0 *entities.Account, _a1 error) *AccountRepository_GetAccount_Call
func (*AccountRepository_GetAccount_Call) Run ¶
func (_c *AccountRepository_GetAccount_Call) Run(run func(_a0 entities.EmailAddress)) *AccountRepository_GetAccount_Call
func (*AccountRepository_GetAccount_Call) RunAndReturn ¶
func (_c *AccountRepository_GetAccount_Call) RunAndReturn(run func(entities.EmailAddress) (*entities.Account, error)) *AccountRepository_GetAccount_Call
type AccountRepository_UpdateAccount_Call ¶
AccountRepository_UpdateAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAccount'
func (*AccountRepository_UpdateAccount_Call) Return ¶
func (_c *AccountRepository_UpdateAccount_Call) Return(_a0 *entities.Account, _a1 error) *AccountRepository_UpdateAccount_Call
func (*AccountRepository_UpdateAccount_Call) Run ¶
func (_c *AccountRepository_UpdateAccount_Call) Run(run func(_a0 entities.Account)) *AccountRepository_UpdateAccount_Call
func (*AccountRepository_UpdateAccount_Call) RunAndReturn ¶
func (_c *AccountRepository_UpdateAccount_Call) RunAndReturn(run func(entities.Account) (*entities.Account, error)) *AccountRepository_UpdateAccount_Call
type CommandContext ¶
CommandContext is an autogenerated mock type for the CommandContext type
func NewCommandContext ¶
func NewCommandContext(t interface { mock.TestingT Cleanup(func()) }) *CommandContext
NewCommandContext creates a new instance of CommandContext. 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 (*CommandContext) AccountRepository ¶
func (_m *CommandContext) AccountRepository() repositories.AccountRepository
AccountRepository provides a mock function with given fields:
func (*CommandContext) EXPECT ¶
func (_m *CommandContext) EXPECT() *CommandContext_Expecter
func (*CommandContext) OtpRepository ¶
func (_m *CommandContext) OtpRepository() repositories.OtpRepository
OtpRepository provides a mock function with given fields:
func (*CommandContext) PasswordRepository ¶
func (_m *CommandContext) PasswordRepository() repositories.PasswordRepository
PasswordRepository provides a mock function with given fields:
type CommandContext_AccountRepository_Call ¶
CommandContext_AccountRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountRepository'
func (*CommandContext_AccountRepository_Call) Return ¶
func (_c *CommandContext_AccountRepository_Call) Return(_a0 repositories.AccountRepository) *CommandContext_AccountRepository_Call
func (*CommandContext_AccountRepository_Call) Run ¶
func (_c *CommandContext_AccountRepository_Call) Run(run func()) *CommandContext_AccountRepository_Call
func (*CommandContext_AccountRepository_Call) RunAndReturn ¶
func (_c *CommandContext_AccountRepository_Call) RunAndReturn(run func() repositories.AccountRepository) *CommandContext_AccountRepository_Call
type CommandContext_Expecter ¶
type CommandContext_Expecter struct {
// contains filtered or unexported fields
}
func (*CommandContext_Expecter) AccountRepository ¶
func (_e *CommandContext_Expecter) AccountRepository() *CommandContext_AccountRepository_Call
AccountRepository is a helper method to define mock.On call
func (*CommandContext_Expecter) OtpRepository ¶
func (_e *CommandContext_Expecter) OtpRepository() *CommandContext_OtpRepository_Call
OtpRepository is a helper method to define mock.On call
func (*CommandContext_Expecter) PasswordRepository ¶
func (_e *CommandContext_Expecter) PasswordRepository() *CommandContext_PasswordRepository_Call
PasswordRepository is a helper method to define mock.On call
type CommandContext_OtpRepository_Call ¶
CommandContext_OtpRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OtpRepository'
func (*CommandContext_OtpRepository_Call) Return ¶
func (_c *CommandContext_OtpRepository_Call) Return(_a0 repositories.OtpRepository) *CommandContext_OtpRepository_Call
func (*CommandContext_OtpRepository_Call) Run ¶
func (_c *CommandContext_OtpRepository_Call) Run(run func()) *CommandContext_OtpRepository_Call
func (*CommandContext_OtpRepository_Call) RunAndReturn ¶
func (_c *CommandContext_OtpRepository_Call) RunAndReturn(run func() repositories.OtpRepository) *CommandContext_OtpRepository_Call
type CommandContext_PasswordRepository_Call ¶
CommandContext_PasswordRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PasswordRepository'
func (*CommandContext_PasswordRepository_Call) Return ¶
func (_c *CommandContext_PasswordRepository_Call) Return(_a0 repositories.PasswordRepository) *CommandContext_PasswordRepository_Call
func (*CommandContext_PasswordRepository_Call) Run ¶
func (_c *CommandContext_PasswordRepository_Call) Run(run func()) *CommandContext_PasswordRepository_Call
func (*CommandContext_PasswordRepository_Call) RunAndReturn ¶
func (_c *CommandContext_PasswordRepository_Call) RunAndReturn(run func() repositories.PasswordRepository) *CommandContext_PasswordRepository_Call
type OtpRepository ¶
OtpRepository is an autogenerated mock type for the OtpRepository type
func NewOtpRepository ¶
func NewOtpRepository(t interface { mock.TestingT Cleanup(func()) }) *OtpRepository
NewOtpRepository creates a new instance of OtpRepository. 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 (*OtpRepository) AddOtp ¶
func (_m *OtpRepository) AddOtp(_a0 entities.Otp) error
AddOtp provides a mock function with given fields: _a0
func (*OtpRepository) EXPECT ¶
func (_m *OtpRepository) EXPECT() *OtpRepository_Expecter
func (*OtpRepository) GetOtp ¶
func (_m *OtpRepository) GetOtp(_a0 entities.EmailAddress) (*entities.Otp, error)
GetOtp provides a mock function with given fields: _a0
type OtpRepository_AddOtp_Call ¶
OtpRepository_AddOtp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOtp'
func (*OtpRepository_AddOtp_Call) Return ¶
func (_c *OtpRepository_AddOtp_Call) Return(_a0 error) *OtpRepository_AddOtp_Call
func (*OtpRepository_AddOtp_Call) Run ¶
func (_c *OtpRepository_AddOtp_Call) Run(run func(_a0 entities.Otp)) *OtpRepository_AddOtp_Call
func (*OtpRepository_AddOtp_Call) RunAndReturn ¶
func (_c *OtpRepository_AddOtp_Call) RunAndReturn(run func(entities.Otp) error) *OtpRepository_AddOtp_Call
type OtpRepository_Expecter ¶
type OtpRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*OtpRepository_Expecter) AddOtp ¶
func (_e *OtpRepository_Expecter) AddOtp(_a0 interface{}) *OtpRepository_AddOtp_Call
AddOtp is a helper method to define mock.On call
- _a0 entities.Otp
func (*OtpRepository_Expecter) GetOtp ¶
func (_e *OtpRepository_Expecter) GetOtp(_a0 interface{}) *OtpRepository_GetOtp_Call
GetOtp is a helper method to define mock.On call
- _a0 entities.EmailAddress
func (*OtpRepository_Expecter) RemoveOtp ¶
func (_e *OtpRepository_Expecter) RemoveOtp(_a0 interface{}) *OtpRepository_RemoveOtp_Call
RemoveOtp is a helper method to define mock.On call
- _a0 entities.Otp
type OtpRepository_GetOtp_Call ¶
OtpRepository_GetOtp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOtp'
func (*OtpRepository_GetOtp_Call) Return ¶
func (_c *OtpRepository_GetOtp_Call) Return(_a0 *entities.Otp, _a1 error) *OtpRepository_GetOtp_Call
func (*OtpRepository_GetOtp_Call) Run ¶
func (_c *OtpRepository_GetOtp_Call) Run(run func(_a0 entities.EmailAddress)) *OtpRepository_GetOtp_Call
func (*OtpRepository_GetOtp_Call) RunAndReturn ¶
func (_c *OtpRepository_GetOtp_Call) RunAndReturn(run func(entities.EmailAddress) (*entities.Otp, error)) *OtpRepository_GetOtp_Call
type OtpRepository_RemoveOtp_Call ¶
OtpRepository_RemoveOtp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveOtp'
func (*OtpRepository_RemoveOtp_Call) Return ¶
func (_c *OtpRepository_RemoveOtp_Call) Return(_a0 error) *OtpRepository_RemoveOtp_Call
func (*OtpRepository_RemoveOtp_Call) Run ¶
func (_c *OtpRepository_RemoveOtp_Call) Run(run func(_a0 entities.Otp)) *OtpRepository_RemoveOtp_Call
func (*OtpRepository_RemoveOtp_Call) RunAndReturn ¶
func (_c *OtpRepository_RemoveOtp_Call) RunAndReturn(run func(entities.Otp) error) *OtpRepository_RemoveOtp_Call
type PasswordRepository ¶
PasswordRepository is an autogenerated mock type for the PasswordRepository type
func NewPasswordRepository ¶
func NewPasswordRepository(t interface { mock.TestingT Cleanup(func()) }) *PasswordRepository
NewPasswordRepository creates a new instance of PasswordRepository. 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 (*PasswordRepository) DeleteResetToken ¶
func (_m *PasswordRepository) DeleteResetToken(e entities.EmailAddress) error
DeleteResetToken provides a mock function with given fields: e
func (*PasswordRepository) EXPECT ¶
func (_m *PasswordRepository) EXPECT() *PasswordRepository_Expecter
func (*PasswordRepository) Get ¶
func (_m *PasswordRepository) Get(_a0 entities.EmailAddress) (*entities.PasswordDetail, error)
Get provides a mock function with given fields: _a0
func (*PasswordRepository) GetResetCode ¶
func (_m *PasswordRepository) GetResetCode(e entities.EmailAddress) (string, error)
GetResetCode provides a mock function with given fields: e
func (*PasswordRepository) Save ¶
func (_m *PasswordRepository) Save(_a0 entities.PasswordDetail) error
Save provides a mock function with given fields: _a0
func (*PasswordRepository) SaveResetCode ¶
func (_m *PasswordRepository) SaveResetCode(e entities.EmailAddress, token string, ttl time.Duration) error
SaveResetCode provides a mock function with given fields: e, token, ttl
type PasswordRepository_DeleteResetToken_Call ¶
PasswordRepository_DeleteResetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteResetToken'
func (*PasswordRepository_DeleteResetToken_Call) Return ¶
func (_c *PasswordRepository_DeleteResetToken_Call) Return(_a0 error) *PasswordRepository_DeleteResetToken_Call
func (*PasswordRepository_DeleteResetToken_Call) Run ¶
func (_c *PasswordRepository_DeleteResetToken_Call) Run(run func(e entities.EmailAddress)) *PasswordRepository_DeleteResetToken_Call
func (*PasswordRepository_DeleteResetToken_Call) RunAndReturn ¶
func (_c *PasswordRepository_DeleteResetToken_Call) RunAndReturn(run func(entities.EmailAddress) error) *PasswordRepository_DeleteResetToken_Call
type PasswordRepository_Expecter ¶
type PasswordRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*PasswordRepository_Expecter) DeleteResetToken ¶
func (_e *PasswordRepository_Expecter) DeleteResetToken(e interface{}) *PasswordRepository_DeleteResetToken_Call
DeleteResetToken is a helper method to define mock.On call
- e entities.EmailAddress
func (*PasswordRepository_Expecter) Get ¶
func (_e *PasswordRepository_Expecter) Get(_a0 interface{}) *PasswordRepository_Get_Call
Get is a helper method to define mock.On call
- _a0 entities.EmailAddress
func (*PasswordRepository_Expecter) GetResetCode ¶
func (_e *PasswordRepository_Expecter) GetResetCode(e interface{}) *PasswordRepository_GetResetCode_Call
GetResetCode is a helper method to define mock.On call
- e entities.EmailAddress
func (*PasswordRepository_Expecter) Save ¶
func (_e *PasswordRepository_Expecter) Save(_a0 interface{}) *PasswordRepository_Save_Call
Save is a helper method to define mock.On call
- _a0 entities.PasswordDetail
func (*PasswordRepository_Expecter) SaveResetCode ¶
func (_e *PasswordRepository_Expecter) SaveResetCode(e interface{}, token interface{}, ttl interface{}) *PasswordRepository_SaveResetCode_Call
SaveResetCode is a helper method to define mock.On call
- e entities.EmailAddress
- token string
- ttl time.Duration
type PasswordRepository_GetResetCode_Call ¶
PasswordRepository_GetResetCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResetCode'
func (*PasswordRepository_GetResetCode_Call) Return ¶
func (_c *PasswordRepository_GetResetCode_Call) Return(_a0 string, _a1 error) *PasswordRepository_GetResetCode_Call
func (*PasswordRepository_GetResetCode_Call) Run ¶
func (_c *PasswordRepository_GetResetCode_Call) Run(run func(e entities.EmailAddress)) *PasswordRepository_GetResetCode_Call
func (*PasswordRepository_GetResetCode_Call) RunAndReturn ¶
func (_c *PasswordRepository_GetResetCode_Call) RunAndReturn(run func(entities.EmailAddress) (string, error)) *PasswordRepository_GetResetCode_Call
type PasswordRepository_Get_Call ¶
PasswordRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*PasswordRepository_Get_Call) Return ¶
func (_c *PasswordRepository_Get_Call) Return(_a0 *entities.PasswordDetail, _a1 error) *PasswordRepository_Get_Call
func (*PasswordRepository_Get_Call) Run ¶
func (_c *PasswordRepository_Get_Call) Run(run func(_a0 entities.EmailAddress)) *PasswordRepository_Get_Call
func (*PasswordRepository_Get_Call) RunAndReturn ¶
func (_c *PasswordRepository_Get_Call) RunAndReturn(run func(entities.EmailAddress) (*entities.PasswordDetail, error)) *PasswordRepository_Get_Call
type PasswordRepository_SaveResetCode_Call ¶
PasswordRepository_SaveResetCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveResetCode'
func (*PasswordRepository_SaveResetCode_Call) Return ¶
func (_c *PasswordRepository_SaveResetCode_Call) Return(_a0 error) *PasswordRepository_SaveResetCode_Call
func (*PasswordRepository_SaveResetCode_Call) Run ¶
func (_c *PasswordRepository_SaveResetCode_Call) Run(run func(e entities.EmailAddress, token string, ttl time.Duration)) *PasswordRepository_SaveResetCode_Call
func (*PasswordRepository_SaveResetCode_Call) RunAndReturn ¶
func (_c *PasswordRepository_SaveResetCode_Call) RunAndReturn(run func(entities.EmailAddress, string, time.Duration) error) *PasswordRepository_SaveResetCode_Call
type PasswordRepository_Save_Call ¶
PasswordRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*PasswordRepository_Save_Call) Return ¶
func (_c *PasswordRepository_Save_Call) Return(_a0 error) *PasswordRepository_Save_Call
func (*PasswordRepository_Save_Call) Run ¶
func (_c *PasswordRepository_Save_Call) Run(run func(_a0 entities.PasswordDetail)) *PasswordRepository_Save_Call
func (*PasswordRepository_Save_Call) RunAndReturn ¶
func (_c *PasswordRepository_Save_Call) RunAndReturn(run func(entities.PasswordDetail) error) *PasswordRepository_Save_Call
type RoleRepository ¶
RoleRepository is an autogenerated mock type for the RoleRepository type
func NewRoleRepository ¶
func NewRoleRepository(t interface { mock.TestingT Cleanup(func()) }) *RoleRepository
NewRoleRepository creates a new instance of RoleRepository. 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 (*RoleRepository) EXPECT ¶
func (_m *RoleRepository) EXPECT() *RoleRepository_Expecter
type RoleRepository_Expecter ¶
type RoleRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*RoleRepository_Expecter) Save ¶
func (_e *RoleRepository_Expecter) Save(role interface{}) *RoleRepository_Save_Call
Save is a helper method to define mock.On call
- role *entities.Role
type RoleRepository_Save_Call ¶
RoleRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*RoleRepository_Save_Call) Return ¶
func (_c *RoleRepository_Save_Call) Return(_a0 error) *RoleRepository_Save_Call
func (*RoleRepository_Save_Call) Run ¶
func (_c *RoleRepository_Save_Call) Run(run func(role *entities.Role)) *RoleRepository_Save_Call
func (*RoleRepository_Save_Call) RunAndReturn ¶
func (_c *RoleRepository_Save_Call) RunAndReturn(run func(*entities.Role) error) *RoleRepository_Save_Call