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

Function TestBalance_AddDebit

model/model_test.go:67–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

65}
66
67func TestBalance_AddDebit(t *testing.T) {
68 balance := &Balance{
69 DebitBalance: big.NewInt(0),
70 }
71 amount := Int64ToBigInt(300)
72 balance.addDebit(amount, false)
73 expected := big.NewInt(300)
74 assert.Equal(t, expected, balance.DebitBalance)
75}
76
77func TestBalance_ComputeBalance(t *testing.T) {
78 balance := &Balance{

Callers

nothing calls this directly

Calls 2

addDebitMethod · 0.95
Int64ToBigIntFunction · 0.85

Tested by

no test coverage detected