(b *testing.B)
| 77 | } |
| 78 | |
| 79 | func BenchmarkExp(b *testing.B) { |
| 80 | precision := []int{5, 10, 100} |
| 81 | scale := []int{-4, -1, 2} |
| 82 | digits := []int{-100, -10, -2, 2, 10, 100} |
| 83 | runBenches( |
| 84 | b, precision, scale, digits, |
| 85 | func(b *testing.B, ctx *Context, x *Decimal) { |
| 86 | if _, err := ctx.Exp(&Decimal{}, x); err != nil { |
| 87 | b.Fatal(err) |
| 88 | } |
| 89 | }, |
| 90 | ) |
| 91 | } |
| 92 | |
| 93 | func BenchmarkLn(b *testing.B) { |
| 94 | precision := []int{2, 10, 100} |
nothing calls this directly
no test coverage detected
searching dependent graphs…