We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 099e1ff commit bc18bccCopy full SHA for bc18bcc
pkg/testcoverage/types.go
@@ -89,14 +89,17 @@ func calculateStatsDiff(current, base []coverage.Stats) []FileCoverageDiff {
89
baseSearchMap := coverage.StatsSearchMap(base)
90
91
for _, s := range current {
92
+ sul := s.UncoveredLines()
93
+ if sul == 0 {
94
+ continue
95
+ }
96
+
97
if b, found := baseSearchMap[s.Name]; found {
- if s.UncoveredLines() != b.UncoveredLines() {
98
+ if sul != b.UncoveredLines() {
99
res = append(res, FileCoverageDiff{Current: s, Base: &b})
100
}
101
} else {
- if s.UncoveredLines() > 0 {
- res = append(res, FileCoverageDiff{Current: s})
- }
102
+ res = append(res, FileCoverageDiff{Current: s})
103
104
105
0 commit comments