(b *testing.B)
| 194 | } |
| 195 | |
| 196 | func BenchmarkDecimal_Sub_same_precision(b *testing.B) { |
| 197 | d1 := NewFromFloat(1000.123) |
| 198 | d2 := NewFromFloat(500.123) |
| 199 | |
| 200 | b.ReportAllocs() |
| 201 | b.StartTimer() |
| 202 | for i := 0; i < b.N; i++ { |
| 203 | d1.Add(d2) |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | func BenchmarkDecimal_IsInteger(b *testing.B) { |
| 208 | d := RequireFromString("12.000") |
nothing calls this directly
no test coverage detected
searching dependent graphs…