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

Function TestBalance_RollbackInflightCredit

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

Source from the content-addressed store, hash-verified

396}
397
398func TestBalance_RollbackInflightCredit(t *testing.T) {
399 balance := &Balance{
400 InflightCreditBalance: big.NewInt(400),
401 }
402 amount := big.NewInt(200)
403 balance.RollbackInflightCredit(amount)
404 assert.Equal(t, big.NewInt(200), balance.InflightCreditBalance)
405}
406
407func TestBalance_RollbackInflightDebit(t *testing.T) {
408 balance := &Balance{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected