diff --git a/internal/baseline/baseline.go b/internal/baseline/baseline.go index 8f1d906..c3f4f0d 100644 --- a/internal/baseline/baseline.go +++ b/internal/baseline/baseline.go @@ -111,7 +111,6 @@ type Comparison struct { // TotalLineDropPP is the magnitude of a total line-% drop (>= 0). Zero when // coverage held or improved, or when a total delta was not computable. TotalLineDropPP float64 - HasTotalLine bool } // Compare computes deltas of current versus base. @@ -124,7 +123,6 @@ func Compare(current, base *Summary) *Comparison { if c.Total.HasLine && c.Total.LinePP < 0 { c.TotalLineDropPP = -c.Total.LinePP } - c.HasTotalLine = c.Total.HasLine for id, cur := range current.Workspaces { baseWS, ok := base.Workspaces[id] diff --git a/internal/render/view.go b/internal/render/view.go index 64d86c6..71546d4 100644 --- a/internal/render/view.go +++ b/internal/render/view.go @@ -10,8 +10,7 @@ type viewRow struct { IsTotal bool IsFolder bool - Tests string // summary rows only ("—" or a number) - HasTests bool + Tests string // summary rows only ("—" or a number) LinesCovered, LinesValid int BranchesCovered, BranchesValid int @@ -54,7 +53,7 @@ func buildView(s Summary) view { anyTests = true } v.Summary = append(v.Summary, viewRow{ - Label: w.DisplayName, Tests: testsCell, HasTests: w.HasTests, + Label: w.DisplayName, Tests: testsCell, LinesCovered: w.LinesCovered, LinesValid: w.LinesValid, BranchesCovered: w.BranchesCovered, BranchesValid: w.BranchesValid, Delta: w.Delta, @@ -86,7 +85,7 @@ func buildView(s Summary) view { totalTests = itoa(tTests) } v.Summary = append(v.Summary, viewRow{ - Label: "Total", IsTotal: true, Tests: totalTests, HasTests: anyTests, + Label: "Total", IsTotal: true, Tests: totalTests, LinesCovered: tLC, LinesValid: tLV, BranchesCovered: tBC, BranchesValid: tBV, Delta: s.TotalDelta,