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 AccountStore

type AccountStore struct {
	mock.Mock
}

AccountStore is an autogenerated mock type for the AccountStore type

func NewAccountStore

func NewAccountStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountStore

NewAccountStore creates a new instance of AccountStore. 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 (*AccountStore) CreateAccount

func (_m *AccountStore) CreateAccount(ctx context.Context, acc *accounts.Account) error

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

func (*AccountStore) DeleteAccount

func (_m *AccountStore) DeleteAccount(ctx context.Context, acc *accounts.Account) error

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

func (*AccountStore) GetAccount

func (_m *AccountStore) GetAccount(ctx context.Context, UUID uuid.UUID) (*accounts.Account, error)

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

func (*AccountStore) GetAccountAmounts

func (_m *AccountStore) GetAccountAmounts(ctx context.Context, acc *accounts.Account, month string) (accounts.AmountCollection, error)

GetAccountAmounts provides a mock function with given fields: ctx, acc, month

func (*AccountStore) GetUserAccounts

func (_m *AccountStore) GetUserAccounts(ctx context.Context, u *users.User) (accounts.AccountCollection, error)

GetUserAccounts provides a mock function with given fields: ctx, u

func (*AccountStore) SetAccountAmount

func (_m *AccountStore) SetAccountAmount(ctx context.Context, acc *accounts.Account, month string, currency accounts.Currency, amount float64) error

SetAccountAmount provides a mock function with given fields: ctx, acc, month, currency, amount

func (*AccountStore) UpdateAccount

func (_m *AccountStore) UpdateAccount(ctx context.Context, acc *accounts.Account) error

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

Jump to

Keyboard shortcuts

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