(benchmarkName string)
| 183 | } |
| 184 | |
| 185 | func getBenchmarkOutput(benchmarkName string) ([]string, error) { |
| 186 | cmd := exec.Command("go", "test", fmt.Sprintf("-bench=%s", benchmarkName), "-benchmem") |
| 187 | cmd.Dir = "benchmarks" |
| 188 | output, err := cmd.CombinedOutput() |
| 189 | if err != nil { |
| 190 | return nil, fmt.Errorf("error running 'go test -bench=%q': %v\n%s", benchmarkName, err, string(output)) |
| 191 | } |
| 192 | return strings.Split(string(output), "\n"), nil |
| 193 | } |
| 194 | |
| 195 | type tmplData struct { |
| 196 | BenchmarkAddingFields string |
no test coverage detected