(b *testing.B, count int)
| 457 | } |
| 458 | |
| 459 | func benchmarkSplitLines(b *testing.B, count int) { |
| 460 | str := bytes.Repeat([]byte("foo\n"), count) |
| 461 | |
| 462 | b.ResetTimer() |
| 463 | |
| 464 | n := 0 |
| 465 | for i := 0; i < b.N; i++ { |
| 466 | n += len(SplitLines(str)) |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | func BenchmarkSplitLines100(b *testing.B) { |
| 471 | benchmarkSplitLines(b, 100) |
no test coverage detected