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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapitalService

type CapitalService struct {
	mock.Mock
}

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.

func (*CapitalService) GetCapital

func (_m *CapitalService) GetCapital(ctx context.Context, u *users.User, month string) (*capital.Capital, error)

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

type CategoryService added in v0.2.0

type CategoryService struct {
	mock.Mock
}

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

type Spendings struct {
	mock.Mock
}

Spendings is an autogenerated mock type for the Spendings type

func NewSpendings added in v0.2.0

func NewSpendings(t interface {
	mock.TestingT
	Cleanup(func())
}) *Spendings

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

func (_m *Spendings) GetAmount(cat *categories.Category, currency accounts.Currency) float64

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

type TransactionsService struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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