(b *testing.B)
| 135 | } |
| 136 | |
| 137 | func BenchmarkDecimal_NumDigits100(b *testing.B) { |
| 138 | s := make([]byte, 102) |
| 139 | for i := range s { |
| 140 | s[i] = byte('0' + i%10) |
| 141 | } |
| 142 | s[0] = '-' |
| 143 | s[100] = '.' |
| 144 | d, err := NewFromString(string(s)) |
| 145 | if err != nil { |
| 146 | b.Log(d) |
| 147 | b.Error(err) |
| 148 | } |
| 149 | numDigits(b, 100, d) |
| 150 | } |
| 151 | |
| 152 | func Benchmark_Cmp(b *testing.B) { |
| 153 | decimals := DecimalSlice([]Decimal{}) |
nothing calls this directly
no test coverage detected
searching dependent graphs…