Documentation ¶
Index ¶
- type CapitalService
- type CategoryService
- type Spendings
- func (_m *Spendings) AddAmount(cat *categories.Category, currency accounts.Currency, amount float64)
- func (_m *Spendings) AddAmounts(cat *categories.Category, amounts accounts.CurrencyAmounts)
- func (_m *Spendings) AddTransaction(tx *transactions.Transaction)
- func (_m *Spendings) GetAmount(cat *categories.Category, currency accounts.Currency) float64
- func (_m *Spendings) GetAmounts(cat *categories.Category) accounts.CurrencyAmounts
- func (_m *Spendings) GetTotal() accounts.CurrencyAmounts
- func (_m *Spendings) GetUnaccounted() accounts.CurrencyAmounts
- func (_m *Spendings) GetUncategorized() accounts.CurrencyAmounts
- type TransactionsService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapitalService ¶
CapitalService is an autogenerated mock type for the CapitalService type
func NewCapitalService ¶
func NewCapitalService(t interface { mock.TestingT Cleanup(func()) }) *CapitalService
NewCapitalService creates a new instance of CapitalService. 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.
type CategoryService ¶ added in v0.2.0
CategoryService is an autogenerated mock type for the CategoryService type
func NewCategoryService ¶ added in v0.2.0
func NewCategoryService(t interface { mock.TestingT Cleanup(func()) }) *CategoryService
NewCategoryService creates a new instance of CategoryService. 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 (*CategoryService) GetUserCategories ¶ added in v0.2.0
func (_m *CategoryService) GetUserCategories(ctx context.Context, u *users.User) ([]*categories.Category, error)
GetUserCategories provides a mock function with given fields: ctx, u
type Spendings ¶ added in v0.2.0
Spendings is an autogenerated mock type for the Spendings type
func NewSpendings ¶ added in v0.2.0
NewSpendings creates a new instance of Spendings. 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 (*Spendings) AddAmount ¶ added in v0.2.0
func (_m *Spendings) AddAmount(cat *categories.Category, currency accounts.Currency, amount float64)
AddAmount provides a mock function with given fields: cat, currency, amount
func (*Spendings) AddAmounts ¶ added in v0.4.0
func (_m *Spendings) AddAmounts(cat *categories.Category, amounts accounts.CurrencyAmounts)
AddAmounts provides a mock function with given fields: cat, amounts
func (*Spendings) AddTransaction ¶ added in v0.2.0
func (_m *Spendings) AddTransaction(tx *transactions.Transaction)
AddTransaction provides a mock function with given fields: tx
func (*Spendings) GetAmount ¶ added in v0.2.0
GetAmount provides a mock function with given fields: cat, currency
func (*Spendings) GetAmounts ¶ added in v0.3.0
func (_m *Spendings) GetAmounts(cat *categories.Category) accounts.CurrencyAmounts
GetAmounts provides a mock function with given fields: cat
func (*Spendings) GetTotal ¶ added in v0.4.0
func (_m *Spendings) GetTotal() accounts.CurrencyAmounts
GetTotal provides a mock function with given fields:
func (*Spendings) GetUnaccounted ¶ added in v0.4.0
func (_m *Spendings) GetUnaccounted() accounts.CurrencyAmounts
GetUnaccounted provides a mock function with given fields:
func (*Spendings) GetUncategorized ¶ added in v0.4.0
func (_m *Spendings) GetUncategorized() accounts.CurrencyAmounts
GetUncategorized provides a mock function with given fields:
type TransactionsService ¶ added in v0.2.0
TransactionsService is an autogenerated mock type for the TransactionsService type
func NewTransactionsService ¶ added in v0.2.0
func NewTransactionsService(t interface { mock.TestingT Cleanup(func()) }) *TransactionsService
NewTransactionsService creates a new instance of TransactionsService. 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 (*TransactionsService) GetUserTransactions ¶ added in v0.2.0
func (_m *TransactionsService) GetUserTransactions(ctx context.Context, u *users.User, month string) (transactions.TransactionCollection, error)
GetUserTransactions provides a mock function with given fields: ctx, u, month