(nLines int)
| 109 | } |
| 110 | |
| 111 | func randomText(nLines int) string { |
| 112 | lines := make([]string, nLines) |
| 113 | for i := range lines { |
| 114 | lines[i] = randomString(rand.Intn(maxLineLength + 1)) |
| 115 | } |
| 116 | return strings.Join(lines, "\n") |
| 117 | } |
| 118 | |
| 119 | func benchCreateAndClose(testingB *testing.B, nLines int) { |
| 120 | rand.Seed(int64(nLines)) |
no test coverage detected