Documentation
¶
Index ¶
- type AccountRepository
- func (_mock *AccountRepository) Create(ctx context.Context, create dto.AccountCreate) error
- func (_m *AccountRepository) EXPECT() *AccountRepository_Expecter
- func (_mock *AccountRepository) Get(ctx context.Context, id uuid.UUID) (*dto.AccountRead, error)
- func (_mock *AccountRepository) ListByUser(ctx context.Context, userID uuid.UUID) ([]*dto.AccountRead, error)
- func (_mock *AccountRepository) Update(ctx context.Context, id uuid.UUID, update dto.AccountUpdate) error
- type AccountRepository_Create_Call
- func (_c *AccountRepository_Create_Call) Return(err error) *AccountRepository_Create_Call
- func (_c *AccountRepository_Create_Call) Run(run func(ctx context.Context, create dto.AccountCreate)) *AccountRepository_Create_Call
- func (_c *AccountRepository_Create_Call) RunAndReturn(run func(ctx context.Context, create dto.AccountCreate) error) *AccountRepository_Create_Call
- type AccountRepository_Expecter
- func (_e *AccountRepository_Expecter) Create(ctx interface{}, create interface{}) *AccountRepository_Create_Call
- func (_e *AccountRepository_Expecter) Get(ctx interface{}, id interface{}) *AccountRepository_Get_Call
- func (_e *AccountRepository_Expecter) ListByUser(ctx interface{}, userID interface{}) *AccountRepository_ListByUser_Call
- func (_e *AccountRepository_Expecter) Update(ctx interface{}, id interface{}, update interface{}) *AccountRepository_Update_Call
- type AccountRepository_Get_Call
- func (_c *AccountRepository_Get_Call) Return(accountRead *dto.AccountRead, err error) *AccountRepository_Get_Call
- func (_c *AccountRepository_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *AccountRepository_Get_Call
- func (_c *AccountRepository_Get_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (*dto.AccountRead, error)) *AccountRepository_Get_Call
- type AccountRepository_ListByUser_Call
- func (_c *AccountRepository_ListByUser_Call) Return(accountReads []*dto.AccountRead, err error) *AccountRepository_ListByUser_Call
- func (_c *AccountRepository_ListByUser_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *AccountRepository_ListByUser_Call
- func (_c *AccountRepository_ListByUser_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) ([]*dto.AccountRead, error)) *AccountRepository_ListByUser_Call
- type AccountRepository_Update_Call
- func (_c *AccountRepository_Update_Call) Return(err error) *AccountRepository_Update_Call
- func (_c *AccountRepository_Update_Call) Run(run func(ctx context.Context, id uuid.UUID, update dto.AccountUpdate)) *AccountRepository_Update_Call
- func (_c *AccountRepository_Update_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID, update dto.AccountUpdate) error) *AccountRepository_Update_Call
- type Bus
- type Bus_Emit_Call
- type Bus_Expecter
- type Bus_Register_Call
- func (_c *Bus_Register_Call) Return() *Bus_Register_Call
- func (_c *Bus_Register_Call) Run(run func(eventType events.EventType, handler eventbus.HandlerFunc)) *Bus_Register_Call
- func (_c *Bus_Register_Call) RunAndReturn(run func(eventType events.EventType, handler eventbus.HandlerFunc)) *Bus_Register_Call
- type ExchangeRateProvider
- func (_m *ExchangeRateProvider) EXPECT() *ExchangeRateProvider_Expecter
- func (_mock *ExchangeRateProvider) GetRate(from string, to string) (*exchange.RateInfo, error)
- func (_mock *ExchangeRateProvider) GetRates(from string, to []string) (map[string]*exchange.RateInfo, error)
- func (_mock *ExchangeRateProvider) IsHealthy() bool
- func (_mock *ExchangeRateProvider) Name() string
- type ExchangeRateProvider_Expecter
- func (_e *ExchangeRateProvider_Expecter) GetRate(from interface{}, to interface{}) *ExchangeRateProvider_GetRate_Call
- func (_e *ExchangeRateProvider_Expecter) GetRates(from interface{}, to interface{}) *ExchangeRateProvider_GetRates_Call
- func (_e *ExchangeRateProvider_Expecter) IsHealthy() *ExchangeRateProvider_IsHealthy_Call
- func (_e *ExchangeRateProvider_Expecter) Name() *ExchangeRateProvider_Name_Call
- type ExchangeRateProvider_GetRate_Call
- func (_c *ExchangeRateProvider_GetRate_Call) Return(v *exchange.RateInfo, err error) *ExchangeRateProvider_GetRate_Call
- func (_c *ExchangeRateProvider_GetRate_Call) Run(run func(from string, to string)) *ExchangeRateProvider_GetRate_Call
- func (_c *ExchangeRateProvider_GetRate_Call) RunAndReturn(run func(from string, to string) (*exchange.RateInfo, error)) *ExchangeRateProvider_GetRate_Call
- type ExchangeRateProvider_GetRates_Call
- func (_c *ExchangeRateProvider_GetRates_Call) Return(stringToV map[string]*exchange.RateInfo, err error) *ExchangeRateProvider_GetRates_Call
- func (_c *ExchangeRateProvider_GetRates_Call) Run(run func(from string, to []string)) *ExchangeRateProvider_GetRates_Call
- func (_c *ExchangeRateProvider_GetRates_Call) RunAndReturn(run func(from string, to []string) (map[string]*exchange.RateInfo, error)) *ExchangeRateProvider_GetRates_Call
- type ExchangeRateProvider_IsHealthy_Call
- func (_c *ExchangeRateProvider_IsHealthy_Call) Return(b bool) *ExchangeRateProvider_IsHealthy_Call
- func (_c *ExchangeRateProvider_IsHealthy_Call) Run(run func()) *ExchangeRateProvider_IsHealthy_Call
- func (_c *ExchangeRateProvider_IsHealthy_Call) RunAndReturn(run func() bool) *ExchangeRateProvider_IsHealthy_Call
- type ExchangeRateProvider_Name_Call
- type Strategy
- func (_m *Strategy) EXPECT() *Strategy_Expecter
- func (_mock *Strategy) GenerateToken(ctx context.Context, u *dto.UserRead) (string, error)
- func (_mock *Strategy) GetCurrentUserID(ctx context.Context) (uuid.UUID, error)
- func (_mock *Strategy) Login(ctx context.Context, identity string, password string) (*dto.UserRead, error)
- type Strategy_Expecter
- func (_e *Strategy_Expecter) GenerateToken(ctx interface{}, u interface{}) *Strategy_GenerateToken_Call
- func (_e *Strategy_Expecter) GetCurrentUserID(ctx interface{}) *Strategy_GetCurrentUserID_Call
- func (_e *Strategy_Expecter) Login(ctx interface{}, identity interface{}, password interface{}) *Strategy_Login_Call
- type Strategy_GenerateToken_Call
- func (_c *Strategy_GenerateToken_Call) Return(s string, err error) *Strategy_GenerateToken_Call
- func (_c *Strategy_GenerateToken_Call) Run(run func(ctx context.Context, u *dto.UserRead)) *Strategy_GenerateToken_Call
- func (_c *Strategy_GenerateToken_Call) RunAndReturn(run func(ctx context.Context, u *dto.UserRead) (string, error)) *Strategy_GenerateToken_Call
- type Strategy_GetCurrentUserID_Call
- func (_c *Strategy_GetCurrentUserID_Call) Return(uUID uuid.UUID, err error) *Strategy_GetCurrentUserID_Call
- func (_c *Strategy_GetCurrentUserID_Call) Run(run func(ctx context.Context)) *Strategy_GetCurrentUserID_Call
- func (_c *Strategy_GetCurrentUserID_Call) RunAndReturn(run func(ctx context.Context) (uuid.UUID, error)) *Strategy_GetCurrentUserID_Call
- type Strategy_Login_Call
- type TransactionRepository
- func (_mock *TransactionRepository) Create(ctx context.Context, create dto.TransactionCreate) error
- func (_m *TransactionRepository) EXPECT() *TransactionRepository_Expecter
- func (_mock *TransactionRepository) Get(ctx context.Context, id uuid.UUID) (*dto.TransactionRead, error)
- func (_mock *TransactionRepository) GetByPaymentID(ctx context.Context, paymentID string) (*dto.TransactionRead, error)
- func (_mock *TransactionRepository) ListByAccount(ctx context.Context, accountID uuid.UUID) ([]*dto.TransactionRead, error)
- func (_mock *TransactionRepository) ListByUser(ctx context.Context, userID uuid.UUID) ([]*dto.TransactionRead, error)
- func (_mock *TransactionRepository) PartialUpdate(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate) error
- func (_mock *TransactionRepository) Update(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate) error
- func (_mock *TransactionRepository) UpsertByPaymentID(ctx context.Context, paymentID string, create dto.TransactionCreate) error
- type TransactionRepository_Create_Call
- func (_c *TransactionRepository_Create_Call) Return(err error) *TransactionRepository_Create_Call
- func (_c *TransactionRepository_Create_Call) Run(run func(ctx context.Context, create dto.TransactionCreate)) *TransactionRepository_Create_Call
- func (_c *TransactionRepository_Create_Call) RunAndReturn(run func(ctx context.Context, create dto.TransactionCreate) error) *TransactionRepository_Create_Call
- type TransactionRepository_Expecter
- func (_e *TransactionRepository_Expecter) Create(ctx interface{}, create interface{}) *TransactionRepository_Create_Call
- func (_e *TransactionRepository_Expecter) Get(ctx interface{}, id interface{}) *TransactionRepository_Get_Call
- func (_e *TransactionRepository_Expecter) GetByPaymentID(ctx interface{}, paymentID interface{}) *TransactionRepository_GetByPaymentID_Call
- func (_e *TransactionRepository_Expecter) ListByAccount(ctx interface{}, accountID interface{}) *TransactionRepository_ListByAccount_Call
- func (_e *TransactionRepository_Expecter) ListByUser(ctx interface{}, userID interface{}) *TransactionRepository_ListByUser_Call
- func (_e *TransactionRepository_Expecter) PartialUpdate(ctx interface{}, id interface{}, update interface{}) *TransactionRepository_PartialUpdate_Call
- func (_e *TransactionRepository_Expecter) Update(ctx interface{}, id interface{}, update interface{}) *TransactionRepository_Update_Call
- func (_e *TransactionRepository_Expecter) UpsertByPaymentID(ctx interface{}, paymentID interface{}, create interface{}) *TransactionRepository_UpsertByPaymentID_Call
- type TransactionRepository_GetByPaymentID_Call
- func (_c *TransactionRepository_GetByPaymentID_Call) Return(transactionRead *dto.TransactionRead, err error) *TransactionRepository_GetByPaymentID_Call
- func (_c *TransactionRepository_GetByPaymentID_Call) Run(run func(ctx context.Context, paymentID string)) *TransactionRepository_GetByPaymentID_Call
- func (_c *TransactionRepository_GetByPaymentID_Call) RunAndReturn(run func(ctx context.Context, paymentID string) (*dto.TransactionRead, error)) *TransactionRepository_GetByPaymentID_Call
- type TransactionRepository_Get_Call
- func (_c *TransactionRepository_Get_Call) Return(transactionRead *dto.TransactionRead, err error) *TransactionRepository_Get_Call
- func (_c *TransactionRepository_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *TransactionRepository_Get_Call
- func (_c *TransactionRepository_Get_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (*dto.TransactionRead, error)) *TransactionRepository_Get_Call
- type TransactionRepository_ListByAccount_Call
- func (_c *TransactionRepository_ListByAccount_Call) Return(transactionReads []*dto.TransactionRead, err error) *TransactionRepository_ListByAccount_Call
- func (_c *TransactionRepository_ListByAccount_Call) Run(run func(ctx context.Context, accountID uuid.UUID)) *TransactionRepository_ListByAccount_Call
- func (_c *TransactionRepository_ListByAccount_Call) RunAndReturn(...) *TransactionRepository_ListByAccount_Call
- type TransactionRepository_ListByUser_Call
- func (_c *TransactionRepository_ListByUser_Call) Return(transactionReads []*dto.TransactionRead, err error) *TransactionRepository_ListByUser_Call
- func (_c *TransactionRepository_ListByUser_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *TransactionRepository_ListByUser_Call
- func (_c *TransactionRepository_ListByUser_Call) RunAndReturn(...) *TransactionRepository_ListByUser_Call
- type TransactionRepository_PartialUpdate_Call
- func (_c *TransactionRepository_PartialUpdate_Call) Return(err error) *TransactionRepository_PartialUpdate_Call
- func (_c *TransactionRepository_PartialUpdate_Call) Run(run func(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate)) *TransactionRepository_PartialUpdate_Call
- func (_c *TransactionRepository_PartialUpdate_Call) RunAndReturn(...) *TransactionRepository_PartialUpdate_Call
- type TransactionRepository_Update_Call
- func (_c *TransactionRepository_Update_Call) Return(err error) *TransactionRepository_Update_Call
- func (_c *TransactionRepository_Update_Call) Run(run func(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate)) *TransactionRepository_Update_Call
- func (_c *TransactionRepository_Update_Call) RunAndReturn(...) *TransactionRepository_Update_Call
- type TransactionRepository_UpsertByPaymentID_Call
- func (_c *TransactionRepository_UpsertByPaymentID_Call) Return(err error) *TransactionRepository_UpsertByPaymentID_Call
- func (_c *TransactionRepository_UpsertByPaymentID_Call) Run(run func(ctx context.Context, paymentID string, create dto.TransactionCreate)) *TransactionRepository_UpsertByPaymentID_Call
- func (_c *TransactionRepository_UpsertByPaymentID_Call) RunAndReturn(...) *TransactionRepository_UpsertByPaymentID_Call
- type UnitOfWork
- type UnitOfWork_Do_Call
- func (_c *UnitOfWork_Do_Call) Return(err error) *UnitOfWork_Do_Call
- func (_c *UnitOfWork_Do_Call) Run(run func(ctx context.Context, fn func(uow repository.UnitOfWork) error)) *UnitOfWork_Do_Call
- func (_c *UnitOfWork_Do_Call) RunAndReturn(run func(ctx context.Context, fn func(uow repository.UnitOfWork) error) error) *UnitOfWork_Do_Call
- type UnitOfWork_Expecter
- type UnitOfWork_GetRepository_Call
- func (_c *UnitOfWork_GetRepository_Call) Return(v any, err error) *UnitOfWork_GetRepository_Call
- func (_c *UnitOfWork_GetRepository_Call) Run(run func(repoType any)) *UnitOfWork_GetRepository_Call
- func (_c *UnitOfWork_GetRepository_Call) RunAndReturn(run func(repoType any) (any, error)) *UnitOfWork_GetRepository_Call
- type UserRepository
- func (_mock *UserRepository) Create(ctx context.Context, create *dto.UserCreate) error
- func (_mock *UserRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *UserRepository) EXPECT() *UserRepository_Expecter
- func (_mock *UserRepository) Exists(ctx context.Context, id uuid.UUID) (bool, error)
- func (_mock *UserRepository) ExistsByEmail(ctx context.Context, email string) (bool, error)
- func (_mock *UserRepository) ExistsByUsername(ctx context.Context, username string) (bool, error)
- func (_mock *UserRepository) Get(ctx context.Context, id uuid.UUID) (*dto.UserRead, error)
- func (_mock *UserRepository) GetByEmail(ctx context.Context, email string) (*dto.UserRead, error)
- func (_mock *UserRepository) GetByUsername(ctx context.Context, username string) (*dto.UserRead, error)
- func (_mock *UserRepository) List(ctx context.Context, page int, pageSize int) ([]*dto.UserRead, error)
- func (_mock *UserRepository) Update(ctx context.Context, id uuid.UUID, update *dto.UserUpdate) error
- type UserRepository_Create_Call
- func (_c *UserRepository_Create_Call) Return(err error) *UserRepository_Create_Call
- func (_c *UserRepository_Create_Call) Run(run func(ctx context.Context, create *dto.UserCreate)) *UserRepository_Create_Call
- func (_c *UserRepository_Create_Call) RunAndReturn(run func(ctx context.Context, create *dto.UserCreate) error) *UserRepository_Create_Call
- type UserRepository_Delete_Call
- func (_c *UserRepository_Delete_Call) Return(err error) *UserRepository_Delete_Call
- func (_c *UserRepository_Delete_Call) Run(run func(ctx context.Context, id uuid.UUID)) *UserRepository_Delete_Call
- func (_c *UserRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) error) *UserRepository_Delete_Call
- type UserRepository_ExistsByEmail_Call
- func (_c *UserRepository_ExistsByEmail_Call) Return(b bool, err error) *UserRepository_ExistsByEmail_Call
- func (_c *UserRepository_ExistsByEmail_Call) Run(run func(ctx context.Context, email string)) *UserRepository_ExistsByEmail_Call
- func (_c *UserRepository_ExistsByEmail_Call) RunAndReturn(run func(ctx context.Context, email string) (bool, error)) *UserRepository_ExistsByEmail_Call
- type UserRepository_ExistsByUsername_Call
- func (_c *UserRepository_ExistsByUsername_Call) Return(b bool, err error) *UserRepository_ExistsByUsername_Call
- func (_c *UserRepository_ExistsByUsername_Call) Run(run func(ctx context.Context, username string)) *UserRepository_ExistsByUsername_Call
- func (_c *UserRepository_ExistsByUsername_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *UserRepository_ExistsByUsername_Call
- type UserRepository_Exists_Call
- func (_c *UserRepository_Exists_Call) Return(b bool, err error) *UserRepository_Exists_Call
- func (_c *UserRepository_Exists_Call) Run(run func(ctx context.Context, id uuid.UUID)) *UserRepository_Exists_Call
- func (_c *UserRepository_Exists_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (bool, error)) *UserRepository_Exists_Call
- type UserRepository_Expecter
- func (_e *UserRepository_Expecter) Create(ctx interface{}, create interface{}) *UserRepository_Create_Call
- func (_e *UserRepository_Expecter) Delete(ctx interface{}, id interface{}) *UserRepository_Delete_Call
- func (_e *UserRepository_Expecter) Exists(ctx interface{}, id interface{}) *UserRepository_Exists_Call
- func (_e *UserRepository_Expecter) ExistsByEmail(ctx interface{}, email interface{}) *UserRepository_ExistsByEmail_Call
- func (_e *UserRepository_Expecter) ExistsByUsername(ctx interface{}, username interface{}) *UserRepository_ExistsByUsername_Call
- func (_e *UserRepository_Expecter) Get(ctx interface{}, id interface{}) *UserRepository_Get_Call
- func (_e *UserRepository_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserRepository_GetByEmail_Call
- func (_e *UserRepository_Expecter) GetByUsername(ctx interface{}, username interface{}) *UserRepository_GetByUsername_Call
- func (_e *UserRepository_Expecter) List(ctx interface{}, page interface{}, pageSize interface{}) *UserRepository_List_Call
- func (_e *UserRepository_Expecter) Update(ctx interface{}, id interface{}, update interface{}) *UserRepository_Update_Call
- type UserRepository_GetByEmail_Call
- func (_c *UserRepository_GetByEmail_Call) Return(userRead *dto.UserRead, err error) *UserRepository_GetByEmail_Call
- func (_c *UserRepository_GetByEmail_Call) Run(run func(ctx context.Context, email string)) *UserRepository_GetByEmail_Call
- func (_c *UserRepository_GetByEmail_Call) RunAndReturn(run func(ctx context.Context, email string) (*dto.UserRead, error)) *UserRepository_GetByEmail_Call
- type UserRepository_GetByUsername_Call
- func (_c *UserRepository_GetByUsername_Call) Return(userRead *dto.UserRead, err error) *UserRepository_GetByUsername_Call
- func (_c *UserRepository_GetByUsername_Call) Run(run func(ctx context.Context, username string)) *UserRepository_GetByUsername_Call
- func (_c *UserRepository_GetByUsername_Call) RunAndReturn(run func(ctx context.Context, username string) (*dto.UserRead, error)) *UserRepository_GetByUsername_Call
- type UserRepository_Get_Call
- func (_c *UserRepository_Get_Call) Return(userRead *dto.UserRead, err error) *UserRepository_Get_Call
- func (_c *UserRepository_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *UserRepository_Get_Call
- func (_c *UserRepository_Get_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (*dto.UserRead, error)) *UserRepository_Get_Call
- type UserRepository_List_Call
- func (_c *UserRepository_List_Call) Return(userReads []*dto.UserRead, err error) *UserRepository_List_Call
- func (_c *UserRepository_List_Call) Run(run func(ctx context.Context, page int, pageSize int)) *UserRepository_List_Call
- func (_c *UserRepository_List_Call) RunAndReturn(run func(ctx context.Context, page int, pageSize int) ([]*dto.UserRead, error)) *UserRepository_List_Call
- type UserRepository_Update_Call
- func (_c *UserRepository_Update_Call) Return(err error) *UserRepository_Update_Call
- func (_c *UserRepository_Update_Call) Run(run func(ctx context.Context, id uuid.UUID, update *dto.UserUpdate)) *UserRepository_Update_Call
- func (_c *UserRepository_Update_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID, update *dto.UserUpdate) error) *UserRepository_Update_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 Repository 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) Create ¶
func (_mock *AccountRepository) Create(ctx context.Context, create dto.AccountCreate) error
Create provides a mock function for the type AccountRepository
func (*AccountRepository) EXPECT ¶
func (_m *AccountRepository) EXPECT() *AccountRepository_Expecter
func (*AccountRepository) Get ¶
func (_mock *AccountRepository) Get(ctx context.Context, id uuid.UUID) (*dto.AccountRead, error)
Get provides a mock function for the type AccountRepository
func (*AccountRepository) ListByUser ¶
func (_mock *AccountRepository) ListByUser(ctx context.Context, userID uuid.UUID) ([]*dto.AccountRead, error)
ListByUser provides a mock function for the type AccountRepository
func (*AccountRepository) Update ¶
func (_mock *AccountRepository) Update(ctx context.Context, id uuid.UUID, update dto.AccountUpdate) error
Update provides a mock function for the type AccountRepository
type AccountRepository_Create_Call ¶
AccountRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AccountRepository_Create_Call) Return ¶
func (_c *AccountRepository_Create_Call) Return(err error) *AccountRepository_Create_Call
func (*AccountRepository_Create_Call) Run ¶
func (_c *AccountRepository_Create_Call) Run(run func(ctx context.Context, create dto.AccountCreate)) *AccountRepository_Create_Call
func (*AccountRepository_Create_Call) RunAndReturn ¶
func (_c *AccountRepository_Create_Call) RunAndReturn(run func(ctx context.Context, create dto.AccountCreate) error) *AccountRepository_Create_Call
type AccountRepository_Expecter ¶
type AccountRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AccountRepository_Expecter) Create ¶
func (_e *AccountRepository_Expecter) Create(ctx interface{}, create interface{}) *AccountRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- create dto.AccountCreate
func (*AccountRepository_Expecter) Get ¶
func (_e *AccountRepository_Expecter) Get(ctx interface{}, id interface{}) *AccountRepository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*AccountRepository_Expecter) ListByUser ¶
func (_e *AccountRepository_Expecter) ListByUser(ctx interface{}, userID interface{}) *AccountRepository_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- userID uuid.UUID
func (*AccountRepository_Expecter) Update ¶
func (_e *AccountRepository_Expecter) Update(ctx interface{}, id interface{}, update interface{}) *AccountRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- update dto.AccountUpdate
type AccountRepository_Get_Call ¶
AccountRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*AccountRepository_Get_Call) Return ¶
func (_c *AccountRepository_Get_Call) Return(accountRead *dto.AccountRead, err error) *AccountRepository_Get_Call
func (*AccountRepository_Get_Call) Run ¶
func (_c *AccountRepository_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *AccountRepository_Get_Call
func (*AccountRepository_Get_Call) RunAndReturn ¶
func (_c *AccountRepository_Get_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (*dto.AccountRead, error)) *AccountRepository_Get_Call
type AccountRepository_ListByUser_Call ¶
AccountRepository_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*AccountRepository_ListByUser_Call) Return ¶
func (_c *AccountRepository_ListByUser_Call) Return(accountReads []*dto.AccountRead, err error) *AccountRepository_ListByUser_Call
func (*AccountRepository_ListByUser_Call) Run ¶
func (_c *AccountRepository_ListByUser_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *AccountRepository_ListByUser_Call
func (*AccountRepository_ListByUser_Call) RunAndReturn ¶
func (_c *AccountRepository_ListByUser_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) ([]*dto.AccountRead, error)) *AccountRepository_ListByUser_Call
type AccountRepository_Update_Call ¶
AccountRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*AccountRepository_Update_Call) Return ¶
func (_c *AccountRepository_Update_Call) Return(err error) *AccountRepository_Update_Call
func (*AccountRepository_Update_Call) Run ¶
func (_c *AccountRepository_Update_Call) Run(run func(ctx context.Context, id uuid.UUID, update dto.AccountUpdate)) *AccountRepository_Update_Call
func (*AccountRepository_Update_Call) RunAndReturn ¶
func (_c *AccountRepository_Update_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID, update dto.AccountUpdate) error) *AccountRepository_Update_Call
type Bus ¶
Bus is an autogenerated mock type for the Bus type
func NewBus ¶
NewBus creates a new instance of Bus. 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 (*Bus) EXPECT ¶
func (_m *Bus) EXPECT() *Bus_Expecter
type Bus_Emit_Call ¶
Bus_Emit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Emit'
func (*Bus_Emit_Call) Return ¶
func (_c *Bus_Emit_Call) Return(err error) *Bus_Emit_Call
func (*Bus_Emit_Call) Run ¶
func (_c *Bus_Emit_Call) Run(run func(ctx context.Context, event events.Event)) *Bus_Emit_Call
func (*Bus_Emit_Call) RunAndReturn ¶
func (_c *Bus_Emit_Call) RunAndReturn(run func(ctx context.Context, event events.Event) error) *Bus_Emit_Call
type Bus_Expecter ¶
type Bus_Expecter struct {
// contains filtered or unexported fields
}
func (*Bus_Expecter) Emit ¶
func (_e *Bus_Expecter) Emit(ctx interface{}, event interface{}) *Bus_Emit_Call
Emit is a helper method to define mock.On call
- ctx context.Context
- event events.Event
func (*Bus_Expecter) Register ¶
func (_e *Bus_Expecter) Register(eventType interface{}, handler interface{}) *Bus_Register_Call
Register is a helper method to define mock.On call
- eventType events.EventType
- handler eventbus.HandlerFunc
type Bus_Register_Call ¶
Bus_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*Bus_Register_Call) Return ¶
func (_c *Bus_Register_Call) Return() *Bus_Register_Call
func (*Bus_Register_Call) Run ¶
func (_c *Bus_Register_Call) Run(run func(eventType events.EventType, handler eventbus.HandlerFunc)) *Bus_Register_Call
func (*Bus_Register_Call) RunAndReturn ¶
func (_c *Bus_Register_Call) RunAndReturn(run func(eventType events.EventType, handler eventbus.HandlerFunc)) *Bus_Register_Call
type ExchangeRateProvider ¶
ExchangeRateProvider is an autogenerated mock type for the ExchangeRateProvider type
func NewExchangeRateProvider ¶
func NewExchangeRateProvider(t interface {
mock.TestingT
Cleanup(func())
}) *ExchangeRateProvider
NewExchangeRateProvider creates a new instance of ExchangeRateProvider. 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 (*ExchangeRateProvider) EXPECT ¶
func (_m *ExchangeRateProvider) EXPECT() *ExchangeRateProvider_Expecter
func (*ExchangeRateProvider) GetRate ¶
GetRate provides a mock function for the type ExchangeRateProvider
func (*ExchangeRateProvider) GetRates ¶
func (_mock *ExchangeRateProvider) GetRates(from string, to []string) (map[string]*exchange.RateInfo, error)
GetRates provides a mock function for the type ExchangeRateProvider
func (*ExchangeRateProvider) IsHealthy ¶
func (_mock *ExchangeRateProvider) IsHealthy() bool
IsHealthy provides a mock function for the type ExchangeRateProvider
func (*ExchangeRateProvider) Name ¶
func (_mock *ExchangeRateProvider) Name() string
Name provides a mock function for the type ExchangeRateProvider
type ExchangeRateProvider_Expecter ¶
type ExchangeRateProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*ExchangeRateProvider_Expecter) GetRate ¶
func (_e *ExchangeRateProvider_Expecter) GetRate(from interface{}, to interface{}) *ExchangeRateProvider_GetRate_Call
GetRate is a helper method to define mock.On call
- from string
- to string
func (*ExchangeRateProvider_Expecter) GetRates ¶
func (_e *ExchangeRateProvider_Expecter) GetRates(from interface{}, to interface{}) *ExchangeRateProvider_GetRates_Call
GetRates is a helper method to define mock.On call
- from string
- to []string
func (*ExchangeRateProvider_Expecter) IsHealthy ¶
func (_e *ExchangeRateProvider_Expecter) IsHealthy() *ExchangeRateProvider_IsHealthy_Call
IsHealthy is a helper method to define mock.On call
func (*ExchangeRateProvider_Expecter) Name ¶
func (_e *ExchangeRateProvider_Expecter) Name() *ExchangeRateProvider_Name_Call
Name is a helper method to define mock.On call
type ExchangeRateProvider_GetRate_Call ¶
ExchangeRateProvider_GetRate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRate'
func (*ExchangeRateProvider_GetRate_Call) Return ¶
func (_c *ExchangeRateProvider_GetRate_Call) Return(v *exchange.RateInfo, err error) *ExchangeRateProvider_GetRate_Call
func (*ExchangeRateProvider_GetRate_Call) Run ¶
func (_c *ExchangeRateProvider_GetRate_Call) Run(run func(from string, to string)) *ExchangeRateProvider_GetRate_Call
func (*ExchangeRateProvider_GetRate_Call) RunAndReturn ¶
func (_c *ExchangeRateProvider_GetRate_Call) RunAndReturn(run func(from string, to string) (*exchange.RateInfo, error)) *ExchangeRateProvider_GetRate_Call
type ExchangeRateProvider_GetRates_Call ¶
ExchangeRateProvider_GetRates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRates'
func (*ExchangeRateProvider_GetRates_Call) Return ¶
func (_c *ExchangeRateProvider_GetRates_Call) Return(stringToV map[string]*exchange.RateInfo, err error) *ExchangeRateProvider_GetRates_Call
func (*ExchangeRateProvider_GetRates_Call) Run ¶
func (_c *ExchangeRateProvider_GetRates_Call) Run(run func(from string, to []string)) *ExchangeRateProvider_GetRates_Call
func (*ExchangeRateProvider_GetRates_Call) RunAndReturn ¶
func (_c *ExchangeRateProvider_GetRates_Call) RunAndReturn(run func(from string, to []string) (map[string]*exchange.RateInfo, error)) *ExchangeRateProvider_GetRates_Call
type ExchangeRateProvider_IsHealthy_Call ¶
ExchangeRateProvider_IsHealthy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsHealthy'
func (*ExchangeRateProvider_IsHealthy_Call) Return ¶
func (_c *ExchangeRateProvider_IsHealthy_Call) Return(b bool) *ExchangeRateProvider_IsHealthy_Call
func (*ExchangeRateProvider_IsHealthy_Call) Run ¶
func (_c *ExchangeRateProvider_IsHealthy_Call) Run(run func()) *ExchangeRateProvider_IsHealthy_Call
func (*ExchangeRateProvider_IsHealthy_Call) RunAndReturn ¶
func (_c *ExchangeRateProvider_IsHealthy_Call) RunAndReturn(run func() bool) *ExchangeRateProvider_IsHealthy_Call
type ExchangeRateProvider_Name_Call ¶
ExchangeRateProvider_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*ExchangeRateProvider_Name_Call) Return ¶
func (_c *ExchangeRateProvider_Name_Call) Return(s string) *ExchangeRateProvider_Name_Call
func (*ExchangeRateProvider_Name_Call) Run ¶
func (_c *ExchangeRateProvider_Name_Call) Run(run func()) *ExchangeRateProvider_Name_Call
func (*ExchangeRateProvider_Name_Call) RunAndReturn ¶
func (_c *ExchangeRateProvider_Name_Call) RunAndReturn(run func() string) *ExchangeRateProvider_Name_Call
type Strategy ¶
Strategy is an autogenerated mock type for the Strategy type
func NewStrategy ¶
NewStrategy creates a new instance of Strategy. 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 (*Strategy) EXPECT ¶
func (_m *Strategy) EXPECT() *Strategy_Expecter
func (*Strategy) GenerateToken ¶
GenerateToken provides a mock function for the type Strategy
func (*Strategy) GetCurrentUserID ¶
GetCurrentUserID provides a mock function for the type Strategy
type Strategy_Expecter ¶
type Strategy_Expecter struct {
// contains filtered or unexported fields
}
func (*Strategy_Expecter) GenerateToken ¶
func (_e *Strategy_Expecter) GenerateToken(ctx interface{}, u interface{}) *Strategy_GenerateToken_Call
GenerateToken is a helper method to define mock.On call
- ctx context.Context
- u *dto.UserRead
func (*Strategy_Expecter) GetCurrentUserID ¶
func (_e *Strategy_Expecter) GetCurrentUserID(ctx interface{}) *Strategy_GetCurrentUserID_Call
GetCurrentUserID is a helper method to define mock.On call
- ctx context.Context
func (*Strategy_Expecter) Login ¶
func (_e *Strategy_Expecter) Login(ctx interface{}, identity interface{}, password interface{}) *Strategy_Login_Call
Login is a helper method to define mock.On call
- ctx context.Context
- identity string
- password string
type Strategy_GenerateToken_Call ¶
Strategy_GenerateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateToken'
func (*Strategy_GenerateToken_Call) Return ¶
func (_c *Strategy_GenerateToken_Call) Return(s string, err error) *Strategy_GenerateToken_Call
func (*Strategy_GenerateToken_Call) Run ¶
func (_c *Strategy_GenerateToken_Call) Run(run func(ctx context.Context, u *dto.UserRead)) *Strategy_GenerateToken_Call
func (*Strategy_GenerateToken_Call) RunAndReturn ¶
func (_c *Strategy_GenerateToken_Call) RunAndReturn(run func(ctx context.Context, u *dto.UserRead) (string, error)) *Strategy_GenerateToken_Call
type Strategy_GetCurrentUserID_Call ¶
Strategy_GetCurrentUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentUserID'
func (*Strategy_GetCurrentUserID_Call) Return ¶
func (_c *Strategy_GetCurrentUserID_Call) Return(uUID uuid.UUID, err error) *Strategy_GetCurrentUserID_Call
func (*Strategy_GetCurrentUserID_Call) Run ¶
func (_c *Strategy_GetCurrentUserID_Call) Run(run func(ctx context.Context)) *Strategy_GetCurrentUserID_Call
func (*Strategy_GetCurrentUserID_Call) RunAndReturn ¶
func (_c *Strategy_GetCurrentUserID_Call) RunAndReturn(run func(ctx context.Context) (uuid.UUID, error)) *Strategy_GetCurrentUserID_Call
type Strategy_Login_Call ¶
Strategy_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*Strategy_Login_Call) Return ¶
func (_c *Strategy_Login_Call) Return(userRead *dto.UserRead, err error) *Strategy_Login_Call
func (*Strategy_Login_Call) Run ¶
func (_c *Strategy_Login_Call) Run(run func(ctx context.Context, identity string, password string)) *Strategy_Login_Call
func (*Strategy_Login_Call) RunAndReturn ¶
func (_c *Strategy_Login_Call) RunAndReturn(run func(ctx context.Context, identity string, password string) (*dto.UserRead, error)) *Strategy_Login_Call
type TransactionRepository ¶
TransactionRepository is an autogenerated mock type for the Repository type
func NewTransactionRepository ¶
func NewTransactionRepository(t interface {
mock.TestingT
Cleanup(func())
}) *TransactionRepository
NewTransactionRepository creates a new instance of TransactionRepository. 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 (*TransactionRepository) Create ¶
func (_mock *TransactionRepository) Create(ctx context.Context, create dto.TransactionCreate) error
Create provides a mock function for the type TransactionRepository
func (*TransactionRepository) EXPECT ¶
func (_m *TransactionRepository) EXPECT() *TransactionRepository_Expecter
func (*TransactionRepository) Get ¶
func (_mock *TransactionRepository) Get(ctx context.Context, id uuid.UUID) (*dto.TransactionRead, error)
Get provides a mock function for the type TransactionRepository
func (*TransactionRepository) GetByPaymentID ¶
func (_mock *TransactionRepository) GetByPaymentID(ctx context.Context, paymentID string) (*dto.TransactionRead, error)
GetByPaymentID provides a mock function for the type TransactionRepository
func (*TransactionRepository) ListByAccount ¶
func (_mock *TransactionRepository) ListByAccount(ctx context.Context, accountID uuid.UUID) ([]*dto.TransactionRead, error)
ListByAccount provides a mock function for the type TransactionRepository
func (*TransactionRepository) ListByUser ¶
func (_mock *TransactionRepository) ListByUser(ctx context.Context, userID uuid.UUID) ([]*dto.TransactionRead, error)
ListByUser provides a mock function for the type TransactionRepository
func (*TransactionRepository) PartialUpdate ¶
func (_mock *TransactionRepository) PartialUpdate(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate) error
PartialUpdate provides a mock function for the type TransactionRepository
func (*TransactionRepository) Update ¶
func (_mock *TransactionRepository) Update(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate) error
Update provides a mock function for the type TransactionRepository
func (*TransactionRepository) UpsertByPaymentID ¶
func (_mock *TransactionRepository) UpsertByPaymentID(ctx context.Context, paymentID string, create dto.TransactionCreate) error
UpsertByPaymentID provides a mock function for the type TransactionRepository
type TransactionRepository_Create_Call ¶
TransactionRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*TransactionRepository_Create_Call) Return ¶
func (_c *TransactionRepository_Create_Call) Return(err error) *TransactionRepository_Create_Call
func (*TransactionRepository_Create_Call) Run ¶
func (_c *TransactionRepository_Create_Call) Run(run func(ctx context.Context, create dto.TransactionCreate)) *TransactionRepository_Create_Call
func (*TransactionRepository_Create_Call) RunAndReturn ¶
func (_c *TransactionRepository_Create_Call) RunAndReturn(run func(ctx context.Context, create dto.TransactionCreate) error) *TransactionRepository_Create_Call
type TransactionRepository_Expecter ¶
type TransactionRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*TransactionRepository_Expecter) Create ¶
func (_e *TransactionRepository_Expecter) Create(ctx interface{}, create interface{}) *TransactionRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- create dto.TransactionCreate
func (*TransactionRepository_Expecter) Get ¶
func (_e *TransactionRepository_Expecter) Get(ctx interface{}, id interface{}) *TransactionRepository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*TransactionRepository_Expecter) GetByPaymentID ¶
func (_e *TransactionRepository_Expecter) GetByPaymentID(ctx interface{}, paymentID interface{}) *TransactionRepository_GetByPaymentID_Call
GetByPaymentID is a helper method to define mock.On call
- ctx context.Context
- paymentID string
func (*TransactionRepository_Expecter) ListByAccount ¶
func (_e *TransactionRepository_Expecter) ListByAccount(ctx interface{}, accountID interface{}) *TransactionRepository_ListByAccount_Call
ListByAccount is a helper method to define mock.On call
- ctx context.Context
- accountID uuid.UUID
func (*TransactionRepository_Expecter) ListByUser ¶
func (_e *TransactionRepository_Expecter) ListByUser(ctx interface{}, userID interface{}) *TransactionRepository_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- userID uuid.UUID
func (*TransactionRepository_Expecter) PartialUpdate ¶
func (_e *TransactionRepository_Expecter) PartialUpdate(ctx interface{}, id interface{}, update interface{}) *TransactionRepository_PartialUpdate_Call
PartialUpdate is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- update dto.TransactionUpdate
func (*TransactionRepository_Expecter) Update ¶
func (_e *TransactionRepository_Expecter) Update(ctx interface{}, id interface{}, update interface{}) *TransactionRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- update dto.TransactionUpdate
func (*TransactionRepository_Expecter) UpsertByPaymentID ¶
func (_e *TransactionRepository_Expecter) UpsertByPaymentID(ctx interface{}, paymentID interface{}, create interface{}) *TransactionRepository_UpsertByPaymentID_Call
UpsertByPaymentID is a helper method to define mock.On call
- ctx context.Context
- paymentID string
- create dto.TransactionCreate
type TransactionRepository_GetByPaymentID_Call ¶
TransactionRepository_GetByPaymentID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByPaymentID'
func (*TransactionRepository_GetByPaymentID_Call) Return ¶
func (_c *TransactionRepository_GetByPaymentID_Call) Return(transactionRead *dto.TransactionRead, err error) *TransactionRepository_GetByPaymentID_Call
func (*TransactionRepository_GetByPaymentID_Call) Run ¶
func (_c *TransactionRepository_GetByPaymentID_Call) Run(run func(ctx context.Context, paymentID string)) *TransactionRepository_GetByPaymentID_Call
func (*TransactionRepository_GetByPaymentID_Call) RunAndReturn ¶
func (_c *TransactionRepository_GetByPaymentID_Call) RunAndReturn(run func(ctx context.Context, paymentID string) (*dto.TransactionRead, error)) *TransactionRepository_GetByPaymentID_Call
type TransactionRepository_Get_Call ¶
TransactionRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*TransactionRepository_Get_Call) Return ¶
func (_c *TransactionRepository_Get_Call) Return(transactionRead *dto.TransactionRead, err error) *TransactionRepository_Get_Call
func (*TransactionRepository_Get_Call) Run ¶
func (_c *TransactionRepository_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *TransactionRepository_Get_Call
func (*TransactionRepository_Get_Call) RunAndReturn ¶
func (_c *TransactionRepository_Get_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (*dto.TransactionRead, error)) *TransactionRepository_Get_Call
type TransactionRepository_ListByAccount_Call ¶
TransactionRepository_ListByAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByAccount'
func (*TransactionRepository_ListByAccount_Call) Return ¶
func (_c *TransactionRepository_ListByAccount_Call) Return(transactionReads []*dto.TransactionRead, err error) *TransactionRepository_ListByAccount_Call
func (*TransactionRepository_ListByAccount_Call) Run ¶
func (_c *TransactionRepository_ListByAccount_Call) Run(run func(ctx context.Context, accountID uuid.UUID)) *TransactionRepository_ListByAccount_Call
func (*TransactionRepository_ListByAccount_Call) RunAndReturn ¶
func (_c *TransactionRepository_ListByAccount_Call) RunAndReturn(run func(ctx context.Context, accountID uuid.UUID) ([]*dto.TransactionRead, error)) *TransactionRepository_ListByAccount_Call
type TransactionRepository_ListByUser_Call ¶
TransactionRepository_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*TransactionRepository_ListByUser_Call) Return ¶
func (_c *TransactionRepository_ListByUser_Call) Return(transactionReads []*dto.TransactionRead, err error) *TransactionRepository_ListByUser_Call
func (*TransactionRepository_ListByUser_Call) Run ¶
func (_c *TransactionRepository_ListByUser_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *TransactionRepository_ListByUser_Call
func (*TransactionRepository_ListByUser_Call) RunAndReturn ¶
func (_c *TransactionRepository_ListByUser_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) ([]*dto.TransactionRead, error)) *TransactionRepository_ListByUser_Call
type TransactionRepository_PartialUpdate_Call ¶
TransactionRepository_PartialUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PartialUpdate'
func (*TransactionRepository_PartialUpdate_Call) Return ¶
func (_c *TransactionRepository_PartialUpdate_Call) Return(err error) *TransactionRepository_PartialUpdate_Call
func (*TransactionRepository_PartialUpdate_Call) Run ¶
func (_c *TransactionRepository_PartialUpdate_Call) Run(run func(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate)) *TransactionRepository_PartialUpdate_Call
func (*TransactionRepository_PartialUpdate_Call) RunAndReturn ¶
func (_c *TransactionRepository_PartialUpdate_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate) error) *TransactionRepository_PartialUpdate_Call
type TransactionRepository_Update_Call ¶
TransactionRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*TransactionRepository_Update_Call) Return ¶
func (_c *TransactionRepository_Update_Call) Return(err error) *TransactionRepository_Update_Call
func (*TransactionRepository_Update_Call) Run ¶
func (_c *TransactionRepository_Update_Call) Run(run func(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate)) *TransactionRepository_Update_Call
func (*TransactionRepository_Update_Call) RunAndReturn ¶
func (_c *TransactionRepository_Update_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID, update dto.TransactionUpdate) error) *TransactionRepository_Update_Call
type TransactionRepository_UpsertByPaymentID_Call ¶
TransactionRepository_UpsertByPaymentID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertByPaymentID'
func (*TransactionRepository_UpsertByPaymentID_Call) Return ¶
func (_c *TransactionRepository_UpsertByPaymentID_Call) Return(err error) *TransactionRepository_UpsertByPaymentID_Call
func (*TransactionRepository_UpsertByPaymentID_Call) Run ¶
func (_c *TransactionRepository_UpsertByPaymentID_Call) Run(run func(ctx context.Context, paymentID string, create dto.TransactionCreate)) *TransactionRepository_UpsertByPaymentID_Call
func (*TransactionRepository_UpsertByPaymentID_Call) RunAndReturn ¶
func (_c *TransactionRepository_UpsertByPaymentID_Call) RunAndReturn(run func(ctx context.Context, paymentID string, create dto.TransactionCreate) error) *TransactionRepository_UpsertByPaymentID_Call
type UnitOfWork ¶
UnitOfWork is an autogenerated mock type for the UnitOfWork type
func NewUnitOfWork ¶
func NewUnitOfWork(t interface {
mock.TestingT
Cleanup(func())
}) *UnitOfWork
NewUnitOfWork creates a new instance of UnitOfWork. 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 (*UnitOfWork) Do ¶
func (_mock *UnitOfWork) Do(ctx context.Context, fn func(uow repository.UnitOfWork) error) error
Do provides a mock function for the type UnitOfWork
func (*UnitOfWork) EXPECT ¶
func (_m *UnitOfWork) EXPECT() *UnitOfWork_Expecter
func (*UnitOfWork) GetRepository ¶
func (_mock *UnitOfWork) GetRepository(repoType any) (any, error)
GetRepository provides a mock function for the type UnitOfWork
type UnitOfWork_Do_Call ¶
UnitOfWork_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
func (*UnitOfWork_Do_Call) Return ¶
func (_c *UnitOfWork_Do_Call) Return(err error) *UnitOfWork_Do_Call
func (*UnitOfWork_Do_Call) Run ¶
func (_c *UnitOfWork_Do_Call) Run(run func(ctx context.Context, fn func(uow repository.UnitOfWork) error)) *UnitOfWork_Do_Call
func (*UnitOfWork_Do_Call) RunAndReturn ¶
func (_c *UnitOfWork_Do_Call) RunAndReturn(run func(ctx context.Context, fn func(uow repository.UnitOfWork) error) error) *UnitOfWork_Do_Call
type UnitOfWork_Expecter ¶
type UnitOfWork_Expecter struct {
// contains filtered or unexported fields
}
func (*UnitOfWork_Expecter) Do ¶
func (_e *UnitOfWork_Expecter) Do(ctx interface{}, fn interface{}) *UnitOfWork_Do_Call
Do is a helper method to define mock.On call
- ctx context.Context
- fn func(uow repository.UnitOfWork) error
func (*UnitOfWork_Expecter) GetRepository ¶
func (_e *UnitOfWork_Expecter) GetRepository(repoType interface{}) *UnitOfWork_GetRepository_Call
GetRepository is a helper method to define mock.On call
- repoType any
type UnitOfWork_GetRepository_Call ¶
UnitOfWork_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
func (*UnitOfWork_GetRepository_Call) Return ¶
func (_c *UnitOfWork_GetRepository_Call) Return(v any, err error) *UnitOfWork_GetRepository_Call
func (*UnitOfWork_GetRepository_Call) Run ¶
func (_c *UnitOfWork_GetRepository_Call) Run(run func(repoType any)) *UnitOfWork_GetRepository_Call
func (*UnitOfWork_GetRepository_Call) RunAndReturn ¶
func (_c *UnitOfWork_GetRepository_Call) RunAndReturn(run func(repoType any) (any, error)) *UnitOfWork_GetRepository_Call
type UserRepository ¶
UserRepository is an autogenerated mock type for the Repository type
func NewUserRepository ¶
func NewUserRepository(t interface {
mock.TestingT
Cleanup(func())
}) *UserRepository
NewUserRepository creates a new instance of UserRepository. 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 (*UserRepository) Create ¶
func (_mock *UserRepository) Create(ctx context.Context, create *dto.UserCreate) error
Create provides a mock function for the type UserRepository
func (*UserRepository) EXPECT ¶
func (_m *UserRepository) EXPECT() *UserRepository_Expecter
func (*UserRepository) ExistsByEmail ¶
ExistsByEmail provides a mock function for the type UserRepository
func (*UserRepository) ExistsByUsername ¶
ExistsByUsername provides a mock function for the type UserRepository
func (*UserRepository) GetByEmail ¶
GetByEmail provides a mock function for the type UserRepository
func (*UserRepository) GetByUsername ¶
func (_mock *UserRepository) GetByUsername(ctx context.Context, username string) (*dto.UserRead, error)
GetByUsername provides a mock function for the type UserRepository
func (*UserRepository) List ¶
func (_mock *UserRepository) List(ctx context.Context, page int, pageSize int) ([]*dto.UserRead, error)
List provides a mock function for the type UserRepository
func (*UserRepository) Update ¶
func (_mock *UserRepository) Update(ctx context.Context, id uuid.UUID, update *dto.UserUpdate) error
Update provides a mock function for the type UserRepository
type UserRepository_Create_Call ¶
UserRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*UserRepository_Create_Call) Return ¶
func (_c *UserRepository_Create_Call) Return(err error) *UserRepository_Create_Call
func (*UserRepository_Create_Call) Run ¶
func (_c *UserRepository_Create_Call) Run(run func(ctx context.Context, create *dto.UserCreate)) *UserRepository_Create_Call
func (*UserRepository_Create_Call) RunAndReturn ¶
func (_c *UserRepository_Create_Call) RunAndReturn(run func(ctx context.Context, create *dto.UserCreate) error) *UserRepository_Create_Call
type UserRepository_Delete_Call ¶
UserRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*UserRepository_Delete_Call) Return ¶
func (_c *UserRepository_Delete_Call) Return(err error) *UserRepository_Delete_Call
func (*UserRepository_Delete_Call) Run ¶
func (_c *UserRepository_Delete_Call) Run(run func(ctx context.Context, id uuid.UUID)) *UserRepository_Delete_Call
func (*UserRepository_Delete_Call) RunAndReturn ¶
func (_c *UserRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) error) *UserRepository_Delete_Call
type UserRepository_ExistsByEmail_Call ¶
UserRepository_ExistsByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExistsByEmail'
func (*UserRepository_ExistsByEmail_Call) Return ¶
func (_c *UserRepository_ExistsByEmail_Call) Return(b bool, err error) *UserRepository_ExistsByEmail_Call
func (*UserRepository_ExistsByEmail_Call) Run ¶
func (_c *UserRepository_ExistsByEmail_Call) Run(run func(ctx context.Context, email string)) *UserRepository_ExistsByEmail_Call
func (*UserRepository_ExistsByEmail_Call) RunAndReturn ¶
func (_c *UserRepository_ExistsByEmail_Call) RunAndReturn(run func(ctx context.Context, email string) (bool, error)) *UserRepository_ExistsByEmail_Call
type UserRepository_ExistsByUsername_Call ¶
UserRepository_ExistsByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExistsByUsername'
func (*UserRepository_ExistsByUsername_Call) Return ¶
func (_c *UserRepository_ExistsByUsername_Call) Return(b bool, err error) *UserRepository_ExistsByUsername_Call
func (*UserRepository_ExistsByUsername_Call) Run ¶
func (_c *UserRepository_ExistsByUsername_Call) Run(run func(ctx context.Context, username string)) *UserRepository_ExistsByUsername_Call
func (*UserRepository_ExistsByUsername_Call) RunAndReturn ¶
func (_c *UserRepository_ExistsByUsername_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *UserRepository_ExistsByUsername_Call
type UserRepository_Exists_Call ¶
UserRepository_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*UserRepository_Exists_Call) Return ¶
func (_c *UserRepository_Exists_Call) Return(b bool, err error) *UserRepository_Exists_Call
func (*UserRepository_Exists_Call) Run ¶
func (_c *UserRepository_Exists_Call) Run(run func(ctx context.Context, id uuid.UUID)) *UserRepository_Exists_Call
func (*UserRepository_Exists_Call) RunAndReturn ¶
func (_c *UserRepository_Exists_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (bool, error)) *UserRepository_Exists_Call
type UserRepository_Expecter ¶
type UserRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*UserRepository_Expecter) Create ¶
func (_e *UserRepository_Expecter) Create(ctx interface{}, create interface{}) *UserRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- create *dto.UserCreate
func (*UserRepository_Expecter) Delete ¶
func (_e *UserRepository_Expecter) Delete(ctx interface{}, id interface{}) *UserRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*UserRepository_Expecter) Exists ¶
func (_e *UserRepository_Expecter) Exists(ctx interface{}, id interface{}) *UserRepository_Exists_Call
Exists is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*UserRepository_Expecter) ExistsByEmail ¶
func (_e *UserRepository_Expecter) ExistsByEmail(ctx interface{}, email interface{}) *UserRepository_ExistsByEmail_Call
ExistsByEmail is a helper method to define mock.On call
- ctx context.Context
- email string
func (*UserRepository_Expecter) ExistsByUsername ¶
func (_e *UserRepository_Expecter) ExistsByUsername(ctx interface{}, username interface{}) *UserRepository_ExistsByUsername_Call
ExistsByUsername is a helper method to define mock.On call
- ctx context.Context
- username string
func (*UserRepository_Expecter) Get ¶
func (_e *UserRepository_Expecter) Get(ctx interface{}, id interface{}) *UserRepository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*UserRepository_Expecter) GetByEmail ¶
func (_e *UserRepository_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserRepository_GetByEmail_Call
GetByEmail is a helper method to define mock.On call
- ctx context.Context
- email string
func (*UserRepository_Expecter) GetByUsername ¶
func (_e *UserRepository_Expecter) GetByUsername(ctx interface{}, username interface{}) *UserRepository_GetByUsername_Call
GetByUsername is a helper method to define mock.On call
- ctx context.Context
- username string
func (*UserRepository_Expecter) List ¶
func (_e *UserRepository_Expecter) List(ctx interface{}, page interface{}, pageSize interface{}) *UserRepository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- page int
- pageSize int
func (*UserRepository_Expecter) Update ¶
func (_e *UserRepository_Expecter) Update(ctx interface{}, id interface{}, update interface{}) *UserRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- update *dto.UserUpdate
type UserRepository_GetByEmail_Call ¶
UserRepository_GetByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByEmail'
func (*UserRepository_GetByEmail_Call) Return ¶
func (_c *UserRepository_GetByEmail_Call) Return(userRead *dto.UserRead, err error) *UserRepository_GetByEmail_Call
func (*UserRepository_GetByEmail_Call) Run ¶
func (_c *UserRepository_GetByEmail_Call) Run(run func(ctx context.Context, email string)) *UserRepository_GetByEmail_Call
func (*UserRepository_GetByEmail_Call) RunAndReturn ¶
func (_c *UserRepository_GetByEmail_Call) RunAndReturn(run func(ctx context.Context, email string) (*dto.UserRead, error)) *UserRepository_GetByEmail_Call
type UserRepository_GetByUsername_Call ¶
UserRepository_GetByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByUsername'
func (*UserRepository_GetByUsername_Call) Return ¶
func (_c *UserRepository_GetByUsername_Call) Return(userRead *dto.UserRead, err error) *UserRepository_GetByUsername_Call
func (*UserRepository_GetByUsername_Call) Run ¶
func (_c *UserRepository_GetByUsername_Call) Run(run func(ctx context.Context, username string)) *UserRepository_GetByUsername_Call
func (*UserRepository_GetByUsername_Call) RunAndReturn ¶
func (_c *UserRepository_GetByUsername_Call) RunAndReturn(run func(ctx context.Context, username string) (*dto.UserRead, error)) *UserRepository_GetByUsername_Call
type UserRepository_Get_Call ¶
UserRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*UserRepository_Get_Call) Return ¶
func (_c *UserRepository_Get_Call) Return(userRead *dto.UserRead, err error) *UserRepository_Get_Call
func (*UserRepository_Get_Call) Run ¶
func (_c *UserRepository_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *UserRepository_Get_Call
func (*UserRepository_Get_Call) RunAndReturn ¶
func (_c *UserRepository_Get_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (*dto.UserRead, error)) *UserRepository_Get_Call
type UserRepository_List_Call ¶
UserRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*UserRepository_List_Call) Return ¶
func (_c *UserRepository_List_Call) Return(userReads []*dto.UserRead, err error) *UserRepository_List_Call
func (*UserRepository_List_Call) Run ¶
func (_c *UserRepository_List_Call) Run(run func(ctx context.Context, page int, pageSize int)) *UserRepository_List_Call
func (*UserRepository_List_Call) RunAndReturn ¶
func (_c *UserRepository_List_Call) RunAndReturn(run func(ctx context.Context, page int, pageSize int) ([]*dto.UserRead, error)) *UserRepository_List_Call
type UserRepository_Update_Call ¶
UserRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*UserRepository_Update_Call) Return ¶
func (_c *UserRepository_Update_Call) Return(err error) *UserRepository_Update_Call
func (*UserRepository_Update_Call) Run ¶
func (_c *UserRepository_Update_Call) Run(run func(ctx context.Context, id uuid.UUID, update *dto.UserUpdate)) *UserRepository_Update_Call
func (*UserRepository_Update_Call) RunAndReturn ¶
func (_c *UserRepository_Update_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID, update *dto.UserUpdate) error) *UserRepository_Update_Call