mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) DeleteTransaction

func (_m *Store) DeleteTransaction(ctx context.Context, tx *transactions.Transaction) error

DeleteTransaction provides a mock function with given fields: ctx, tx

func (*Store) GetTransaction

func (_m *Store) GetTransaction(ctx context.Context, _a1 uuid.UUID) (*transactions.Transaction, error)

GetTransaction provides a mock function with given fields: ctx, _a1

func (*Store) GetUserTransactions

func (_m *Store) GetUserTransactions(ctx context.Context, u *users.User, month string) (transactions.TransactionCollection, error)

GetUserTransactions provides a mock function with given fields: ctx, u, month

func (*Store) SaveTransaction

func (_m *Store) SaveTransaction(ctx context.Context, tx *transactions.Transaction) error

SaveTransaction provides a mock function with given fields: ctx, tx

Jump to

Keyboard shortcuts

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