Documentation ¶
Index ¶
- type AccountStore
- func (_m *AccountStore) CreateAccount(ctx context.Context, acc *accounts.Account) error
- func (_m *AccountStore) DeleteAccount(ctx context.Context, acc *accounts.Account) error
- func (_m *AccountStore) GetAccount(ctx context.Context, UUID uuid.UUID) (*accounts.Account, error)
- func (_m *AccountStore) GetAccountAmounts(ctx context.Context, acc *accounts.Account, month string) (accounts.AmountCollection, error)
- func (_m *AccountStore) GetUserAccounts(ctx context.Context, u *users.User) (accounts.AccountCollection, error)
- func (_m *AccountStore) SetAccountAmount(ctx context.Context, acc *accounts.Account, month string, ...) error
- func (_m *AccountStore) UpdateAccount(ctx context.Context, acc *accounts.Account) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountStore ¶
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 ¶
CreateAccount provides a mock function with given fields: ctx, acc
func (*AccountStore) DeleteAccount ¶
DeleteAccount provides a mock function with given fields: ctx, acc
func (*AccountStore) GetAccount ¶
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 ¶
UpdateAccount provides a mock function with given fields: ctx, acc