mocks

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionRepository

type TransactionRepository struct {
	mock.Mock
}

TransactionRepository is an autogenerated mock type for the TransactionRepository 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) CreateEntry

CreateEntry provides a mock function with given fields: ctx, debit, _a2

func (*TransactionRepository) EXPECT

func (*TransactionRepository) GetBalance

func (_m *TransactionRepository) GetBalance(ctx context.Context, id string) (int64, error)

GetBalance provides a mock function with given fields: ctx, id

func (*TransactionRepository) GetByID

GetByID provides a mock function with given fields: ctx, id

func (*TransactionRepository) List

List provides a mock function with given fields: ctx, flt

type TransactionRepository_CreateEntry_Call

type TransactionRepository_CreateEntry_Call struct {
	*mock.Call
}

TransactionRepository_CreateEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEntry'

func (*TransactionRepository_CreateEntry_Call) Return

func (*TransactionRepository_CreateEntry_Call) Run

type TransactionRepository_Expecter

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

func (*TransactionRepository_Expecter) CreateEntry

func (_e *TransactionRepository_Expecter) CreateEntry(ctx interface{}, debit interface{}, _a2 interface{}) *TransactionRepository_CreateEntry_Call

CreateEntry is a helper method to define mock.On call

  • ctx context.Context
  • debit credit.Transaction
  • _a2 credit.Transaction

func (*TransactionRepository_Expecter) GetBalance

func (_e *TransactionRepository_Expecter) GetBalance(ctx interface{}, id interface{}) *TransactionRepository_GetBalance_Call

GetBalance is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*TransactionRepository_Expecter) GetByID

func (_e *TransactionRepository_Expecter) GetByID(ctx interface{}, id interface{}) *TransactionRepository_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*TransactionRepository_Expecter) List

func (_e *TransactionRepository_Expecter) List(ctx interface{}, flt interface{}) *TransactionRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt credit.Filter

type TransactionRepository_GetBalance_Call

type TransactionRepository_GetBalance_Call struct {
	*mock.Call
}

TransactionRepository_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'

func (*TransactionRepository_GetBalance_Call) Return

func (*TransactionRepository_GetBalance_Call) Run

func (*TransactionRepository_GetBalance_Call) RunAndReturn

type TransactionRepository_GetByID_Call

type TransactionRepository_GetByID_Call struct {
	*mock.Call
}

TransactionRepository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*TransactionRepository_GetByID_Call) Return

func (*TransactionRepository_GetByID_Call) Run

func (*TransactionRepository_GetByID_Call) RunAndReturn

type TransactionRepository_List_Call

type TransactionRepository_List_Call struct {
	*mock.Call
}

TransactionRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*TransactionRepository_List_Call) Return

func (*TransactionRepository_List_Call) Run

func (*TransactionRepository_List_Call) RunAndReturn

Jump to

Keyboard shortcuts

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