MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / getBalanceMock

Function getBalanceMock

balance_test.go:52–54  ·  view source on GitHub ↗
(credit, debit, balance *big.Int, indicator string)

Source from the content-addressed store, hash-verified

50}
51
52func getBalanceMock(credit, debit, balance *big.Int, indicator string) *model.Balance {
53 return &model.Balance{CreditBalance: credit, DebitBalance: debit, Balance: balance, Indicator: indicator}
54}
55
56func getTransactionMock(amount float64, overdraft bool) model.Transaction {
57 transaction := model.Transaction{TransactionID: gofakeit.UUID(), Amount: amount, AllowOverdraft: overdraft, Reference: gofakeit.UUID()}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected