Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions internal/baseline/baseline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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]
Expand Down
7 changes: 3 additions & 4 deletions internal/render/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down