mocks

package
v0.0.0-...-ff4c41b Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 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 AccountRepository

type AccountRepository struct {
	mock.Mock
}

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

func (_m *AccountRepository) AddAccount(_a0 entities.Account) (*entities.Account, error)

AddAccount provides a mock function with given fields: _a0

func (*AccountRepository) EXPECT

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

func (_m *AccountRepository) UpdateAccount(_a0 entities.Account) (*entities.Account, error)

UpdateAccount provides a mock function with given fields: _a0

type AccountRepository_AddAccount_Call

type AccountRepository_AddAccount_Call struct {
	*mock.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 (*AccountRepository_AddAccount_Call) Run

func (*AccountRepository_AddAccount_Call) RunAndReturn

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

type AccountRepository_GetAccount_Call struct {
	*mock.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 (*AccountRepository_GetAccount_Call) Run

func (*AccountRepository_GetAccount_Call) RunAndReturn

type AccountRepository_UpdateAccount_Call

type AccountRepository_UpdateAccount_Call struct {
	*mock.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 (*AccountRepository_UpdateAccount_Call) Run

func (*AccountRepository_UpdateAccount_Call) RunAndReturn

type CommandContext

type CommandContext struct {
	mock.Mock
}

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 (*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

type CommandContext_AccountRepository_Call struct {
	*mock.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 (*CommandContext_AccountRepository_Call) Run

func (*CommandContext_AccountRepository_Call) RunAndReturn

type CommandContext_Expecter

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

func (*CommandContext_Expecter) AccountRepository

AccountRepository is a helper method to define mock.On call

func (*CommandContext_Expecter) OtpRepository

OtpRepository is a helper method to define mock.On call

func (*CommandContext_Expecter) PasswordRepository

PasswordRepository is a helper method to define mock.On call

type CommandContext_OtpRepository_Call

type CommandContext_OtpRepository_Call struct {
	*mock.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 (*CommandContext_OtpRepository_Call) Run

func (*CommandContext_OtpRepository_Call) RunAndReturn

type CommandContext_PasswordRepository_Call

type CommandContext_PasswordRepository_Call struct {
	*mock.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 (*CommandContext_PasswordRepository_Call) Run

func (*CommandContext_PasswordRepository_Call) RunAndReturn

type OtpRepository

type OtpRepository struct {
	mock.Mock
}

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

func (*OtpRepository) RemoveOtp

func (_m *OtpRepository) RemoveOtp(_a0 entities.Otp) error

RemoveOtp provides a mock function with given fields: _a0

type OtpRepository_AddOtp_Call

type OtpRepository_AddOtp_Call struct {
	*mock.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 (*OtpRepository_AddOtp_Call) Run

func (*OtpRepository_AddOtp_Call) RunAndReturn

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

type OtpRepository_GetOtp_Call struct {
	*mock.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 (*OtpRepository_GetOtp_Call) Run

func (*OtpRepository_GetOtp_Call) RunAndReturn

type OtpRepository_RemoveOtp_Call

type OtpRepository_RemoveOtp_Call struct {
	*mock.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 (*OtpRepository_RemoveOtp_Call) Run

func (*OtpRepository_RemoveOtp_Call) RunAndReturn

type PasswordRepository

type PasswordRepository struct {
	mock.Mock
}

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 (*PasswordRepository) Get

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

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

type PasswordRepository_DeleteResetToken_Call struct {
	*mock.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 (*PasswordRepository_DeleteResetToken_Call) Run

func (*PasswordRepository_DeleteResetToken_Call) RunAndReturn

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

type PasswordRepository_GetResetCode_Call struct {
	*mock.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 (*PasswordRepository_GetResetCode_Call) Run

func (*PasswordRepository_GetResetCode_Call) RunAndReturn

type PasswordRepository_Get_Call

type PasswordRepository_Get_Call struct {
	*mock.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 (*PasswordRepository_Get_Call) Run

func (*PasswordRepository_Get_Call) RunAndReturn

type PasswordRepository_SaveResetCode_Call

type PasswordRepository_SaveResetCode_Call struct {
	*mock.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 (*PasswordRepository_SaveResetCode_Call) Run

func (*PasswordRepository_SaveResetCode_Call) RunAndReturn

type PasswordRepository_Save_Call

type PasswordRepository_Save_Call struct {
	*mock.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 (*PasswordRepository_Save_Call) Run

func (*PasswordRepository_Save_Call) RunAndReturn

type RoleRepository

type RoleRepository struct {
	mock.Mock
}

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 (*RoleRepository) Save

func (_m *RoleRepository) Save(role *entities.Role) error

Save provides a mock function with given fields: role

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

type RoleRepository_Save_Call struct {
	*mock.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 (*RoleRepository_Save_Call) Run

func (*RoleRepository_Save_Call) RunAndReturn

Jump to

Keyboard shortcuts

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