mocks

package
v0.0.0-...-c45bd2f Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 DBTX

type DBTX struct {
	mock.Mock
}

DBTX is an autogenerated mock type for the DBTX type

func NewDBTX

func NewDBTX(t interface {
	mock.TestingT
	Cleanup(func())
}) *DBTX

NewDBTX creates a new instance of DBTX. 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 (*DBTX) ExecContext

func (_m *DBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)

ExecContext provides a mock function with given fields: _a0, _a1, _a2

func (*DBTX) PrepareContext

func (_m *DBTX) PrepareContext(_a0 context.Context, _a1 string) (*sql.Stmt, error)

PrepareContext provides a mock function with given fields: _a0, _a1

func (*DBTX) QueryContext

func (_m *DBTX) QueryContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (*sql.Rows, error)

QueryContext provides a mock function with given fields: _a0, _a1, _a2

func (*DBTX) QueryRowContext

func (_m *DBTX) QueryRowContext(_a0 context.Context, _a1 string, _a2 ...interface{}) *sql.Row

QueryRowContext provides a mock function with given fields: _a0, _a1, _a2

type Querier

type Querier struct {
	mock.Mock
}

Querier is an autogenerated mock type for the Querier type

func NewQuerier

func NewQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Querier

NewQuerier creates a new instance of Querier. 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 (*Querier) AddAccountBalance

func (_m *Querier) AddAccountBalance(ctx context.Context, arg db.AddAccountBalanceParams) (db.Account, error)

AddAccountBalance provides a mock function with given fields: ctx, arg

func (*Querier) CreateAccount

func (_m *Querier) CreateAccount(ctx context.Context, arg db.CreateAccountParams) (db.Account, error)

CreateAccount provides a mock function with given fields: ctx, arg

func (*Querier) CreateEntry

func (_m *Querier) CreateEntry(ctx context.Context, arg db.CreateEntryParams) (db.Entry, error)

CreateEntry provides a mock function with given fields: ctx, arg

func (*Querier) CreateTransfer

func (_m *Querier) CreateTransfer(ctx context.Context, arg db.CreateTransferParams) (db.Transfer, error)

CreateTransfer provides a mock function with given fields: ctx, arg

func (*Querier) DeleteAccount

func (_m *Querier) DeleteAccount(ctx context.Context, id int64) error

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

func (*Querier) GetAccount

func (_m *Querier) GetAccount(ctx context.Context, id int64) (db.Account, error)

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

func (*Querier) GetAccountForUpdate

func (_m *Querier) GetAccountForUpdate(ctx context.Context, id int64) (db.Account, error)

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

func (*Querier) GetEntry

func (_m *Querier) GetEntry(ctx context.Context, id int64) (db.Entry, error)

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

func (*Querier) GetTransfer

func (_m *Querier) GetTransfer(ctx context.Context, id int64) (db.Transfer, error)

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

func (*Querier) ListAccounts

func (_m *Querier) ListAccounts(ctx context.Context, arg db.ListAccountsParams) ([]db.Account, error)

ListAccounts provides a mock function with given fields: ctx, arg

func (*Querier) ListEntries

func (_m *Querier) ListEntries(ctx context.Context, arg db.ListEntriesParams) ([]db.Entry, error)

ListEntries provides a mock function with given fields: ctx, arg

func (*Querier) ListTransfers

func (_m *Querier) ListTransfers(ctx context.Context, arg db.ListTransfersParams) ([]db.Transfer, error)

ListTransfers provides a mock function with given fields: ctx, arg

func (*Querier) UpdateAccount

func (_m *Querier) UpdateAccount(ctx context.Context, arg db.UpdateAccountParams) (db.Account, error)

UpdateAccount provides a mock function with given fields: ctx, arg

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) AddAccountBalance

func (_m *Store) AddAccountBalance(ctx context.Context, arg db.AddAccountBalanceParams) (db.Account, error)

AddAccountBalance provides a mock function with given fields: ctx, arg

func (*Store) CreateAccount

func (_m *Store) CreateAccount(ctx context.Context, arg db.CreateAccountParams) (db.Account, error)

CreateAccount provides a mock function with given fields: ctx, arg

func (*Store) CreateEntry

func (_m *Store) CreateEntry(ctx context.Context, arg db.CreateEntryParams) (db.Entry, error)

CreateEntry provides a mock function with given fields: ctx, arg

func (*Store) CreateTransfer

func (_m *Store) CreateTransfer(ctx context.Context, arg db.CreateTransferParams) (db.Transfer, error)

CreateTransfer provides a mock function with given fields: ctx, arg

func (*Store) DeleteAccount

func (_m *Store) DeleteAccount(ctx context.Context, id int64) error

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

func (*Store) GetAccount

func (_m *Store) GetAccount(ctx context.Context, id int64) (db.Account, error)

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

func (*Store) GetAccountForUpdate

func (_m *Store) GetAccountForUpdate(ctx context.Context, id int64) (db.Account, error)

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

func (*Store) GetEntry

func (_m *Store) GetEntry(ctx context.Context, id int64) (db.Entry, error)

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

func (*Store) GetTransfer

func (_m *Store) GetTransfer(ctx context.Context, id int64) (db.Transfer, error)

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

func (*Store) ListAccounts

func (_m *Store) ListAccounts(ctx context.Context, arg db.ListAccountsParams) ([]db.Account, error)

ListAccounts provides a mock function with given fields: ctx, arg

func (*Store) ListEntries

func (_m *Store) ListEntries(ctx context.Context, arg db.ListEntriesParams) ([]db.Entry, error)

ListEntries provides a mock function with given fields: ctx, arg

func (*Store) ListTransfers

func (_m *Store) ListTransfers(ctx context.Context, arg db.ListTransfersParams) ([]db.Transfer, error)

ListTransfers provides a mock function with given fields: ctx, arg

func (*Store) TransferTx

func (_m *Store) TransferTx(ctx context.Context, arg db.TransferTxParams) (db.TransferTxResult, error)

TransferTx provides a mock function with given fields: ctx, arg

func (*Store) UpdateAccount

func (_m *Store) UpdateAccount(ctx context.Context, arg db.UpdateAccountParams) (db.Account, error)

UpdateAccount provides a mock function with given fields: ctx, arg

Jump to

Keyboard shortcuts

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