Skip to content

Commit

Permalink
#665 Improved handling of duplicate classes in JaCoCo files
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpalme committed Apr 23, 2024
1 parent 89e0870 commit e41b6d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ For further details take a look at LICENSE.txt.

CHANGELOG

5.2.5.0

* Fix: #665 Improved handling of duplicate classes in JaCoCo files

5.2.4.0

* New: #630 Added "raw mode" (settings:rawMode=true) to disable that coverage data of nested or compiler generated
Expand Down
5 changes: 4 additions & 1 deletion src/ReportGenerator.Core/Parser/JaCoCoParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ private static Dictionary<int, ICollection<Branch>> GetBranches(IEnumerable<JaCo
branches.Add(new Branch(i < line.CoveredBranches ? 1 : 0, identifier));
}

result.Add(line.LineNumber, branches);
if (!result.ContainsKey(line.LineNumber))
{
result.Add(line.LineNumber, branches);
}
}

return result;
Expand Down

0 comments on commit e41b6d7

Please sign in to comment.