MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / buildOverviewLines

Function buildOverviewLines

benchmark/core.go:257–269  ·  view source on GitHub ↗
(verdict BenchmarkVerdict, run BenchmarkRun, comparison *BenchmarkComparison)

Source from the content-addressed store, hash-verified

255}
256
257func 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
271func buildNoteLines(verdict BenchmarkVerdict, comparison *BenchmarkComparison) []string {
272 baseline := "baseline_comparison=unavailable"

Callers 1

BuildBenchmarkReportMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected