(t *testing.T)
| 75 | } |
| 76 | |
| 77 | func TestBalance_ComputeBalance(t *testing.T) { |
| 78 | balance := &Balance{ |
| 79 | CreditBalance: big.NewInt(1000), |
| 80 | DebitBalance: big.NewInt(300), |
| 81 | Balance: big.NewInt(0), |
| 82 | } |
| 83 | balance.computeBalance(false) |
| 84 | expected := big.NewInt(700) |
| 85 | assert.Equal(t, expected, balance.Balance) |
| 86 | } |
| 87 | |
| 88 | func TestCanProcessTransaction(t *testing.T) { |
| 89 | t.Run("Sufficient funds", func(t *testing.T) { |
nothing calls this directly
no test coverage detected