Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoRossignoli committed May 8, 2019
1 parent a00168e commit a3d8faa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coverlet.core/Coverage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ private void CalculateCoverage()
{
var line = document.Lines[j];
line.Hits += hits;

// We register 0 hit lines for later cleanup false positive
if (hits == 0)
{
zeroHitsLines.Add((hitLocation.docIndex, line.Number));
Expand All @@ -350,6 +352,7 @@ private void CalculateCoverage()
}
}

// Cleanup nested state machine false positive hits
foreach (var (docIndex, line) in zeroHitsLines)
{
foreach (var lineToCheck in documentsList[docIndex].Lines)
Expand Down

0 comments on commit a3d8faa

Please sign in to comment.