(b *testing.B)
| 183 | } |
| 184 | |
| 185 | func BenchmarkDecimal_Add_same_precision(b *testing.B) { |
| 186 | d1 := NewFromFloat(1000.123) |
| 187 | d2 := NewFromFloat(500.123) |
| 188 | |
| 189 | b.ReportAllocs() |
| 190 | b.StartTimer() |
| 191 | for i := 0; i < b.N; i++ { |
| 192 | d1.Add(d2) |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | func BenchmarkDecimal_Sub_same_precision(b *testing.B) { |
| 197 | d1 := NewFromFloat(1000.123) |
nothing calls this directly
no test coverage detected
searching dependent graphs…