(b *testing.B, count int)
| 407 | } |
| 408 | |
| 409 | func benchmarkSplitLines(b *testing.B, count int) { |
| 410 | str := strings.Repeat("foo\n", count) |
| 411 | |
| 412 | b.ResetTimer() |
| 413 | |
| 414 | n := 0 |
| 415 | for i := 0; i < b.N; i++ { |
| 416 | n += len(SplitLines(str)) |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | func BenchmarkSplitLines100(b *testing.B) { |
| 421 | benchmarkSplitLines(b, 100) |
no test coverage detected
searching dependent graphs…