(n int)
| 23 | ) |
| 24 | |
| 25 | func buildWideSelect(n int) string { |
| 26 | var sb strings.Builder |
| 27 | sb.WriteString("SELECT ") |
| 28 | for i := 0; i < n; i++ { |
| 29 | if i > 0 { |
| 30 | sb.WriteString(", ") |
| 31 | } |
| 32 | fmt.Fprintf(&sb, "col%d", i) |
| 33 | } |
| 34 | sb.WriteString(" FROM t") |
| 35 | return sb.String() |
| 36 | } |
| 37 | |
| 38 | func benchmarkWideSelect(b *testing.B, numCols int) { |
| 39 | sql := buildWideSelect(numCols) |
no test coverage detected