(b *testing.B)
| 219 | } |
| 220 | |
| 221 | func BenchmarkPartialRanges_String(b *testing.B) { |
| 222 | var r = caches.NewPartialRanges(0) |
| 223 | r.BodySize = 1024 |
| 224 | for i := 0; i < 10; i++ { |
| 225 | r.Ranges = append(r.Ranges, [2]int64{int64(i * 100), int64(i*100 + 100)}) |
| 226 | } |
| 227 | b.ResetTimer() |
| 228 | |
| 229 | for i := 0; i < b.N; i++ { |
| 230 | _ = r.String() |
| 231 | } |
| 232 | } |
nothing calls this directly
no test coverage detected