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

Function TestBalance_RollbackInflightDebit

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

Source from the content-addressed store, hash-verified

405}
406
407func TestBalance_RollbackInflightDebit(t *testing.T) {
408 balance := &Balance{
409 InflightDebitBalance: big.NewInt(500),
410 }
411 amount := big.NewInt(300)
412 balance.RollbackInflightDebit(amount)
413 assert.Equal(t, big.NewInt(200), balance.InflightDebitBalance)
414}
415
416func TestApplyPrecision(t *testing.T) {
417 txn := &Transaction{

Callers

nothing calls this directly

Calls 1

RollbackInflightDebitMethod · 0.95

Tested by

no test coverage detected