(t *testing.T)
| 414 | } |
| 415 | |
| 416 | func TestApplyPrecision(t *testing.T) { |
| 417 | txn := &Transaction{ |
| 418 | Amount: 123.45, |
| 419 | Precision: 100, |
| 420 | } |
| 421 | preciseAmount := ApplyPrecision(txn) |
| 422 | expected := big.NewInt(12345) |
| 423 | assert.Equal(t, expected, preciseAmount) |
| 424 | } |
| 425 | |
| 426 | func TestApplyRate(t *testing.T) { |
| 427 | tests := []struct { |
nothing calls this directly
no test coverage detected