(verdict BenchmarkVerdict, run BenchmarkRun, comparison *BenchmarkComparison)
| 255 | } |
| 256 | |
| 257 | func buildOverviewLines(verdict BenchmarkVerdict, run BenchmarkRun, comparison *BenchmarkComparison) []string { |
| 258 | lines := []string{ |
| 259 | fmt.Sprintf("%s: %t", overviewLabels["passed"], verdict.Passed), |
| 260 | fmt.Sprintf("%s: %d", overviewLabels["plugins"], len(run.PluginResults)), |
| 261 | fmt.Sprintf("%s: %d", overviewLabels["failures"], len(verdict.FailureRecords)), |
| 262 | fmt.Sprintf("%s: %d", overviewLabels["warnings"], len(verdict.Warnings)), |
| 263 | fmt.Sprintf("%s: %s", overviewLabels["variant"], run.Variant.Name), |
| 264 | } |
| 265 | if comparison != nil { |
| 266 | lines = append(lines, fmt.Sprintf("%s: %s", overviewLabels["baseline"], comparison.Baseline.Variant.Name)) |
| 267 | } |
| 268 | return lines |
| 269 | } |
| 270 | |
| 271 | func buildNoteLines(verdict BenchmarkVerdict, comparison *BenchmarkComparison) []string { |
| 272 | baseline := "baseline_comparison=unavailable" |
no outgoing calls
no test coverage detected