(t *testing.T)
| 405 | } |
| 406 | |
| 407 | func 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 | |
| 416 | func TestApplyPrecision(t *testing.T) { |
| 417 | txn := &Transaction{ |
nothing calls this directly
no test coverage detected