Skip to content

Commit

Permalink
Merge pull request #204 from pape77/fix/merge-modules
Browse files Browse the repository at this point in the history
Merges by fileName (dll's name) instead of the complete path.
  • Loading branch information
tonerdo authored Oct 4, 2018
2 parents 1be9fce + 0657545 commit 967c180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coverlet.core/CoverageResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal void Merge(Modules modules)
{
foreach (var module in modules)
{
if (!this.Modules.ContainsKey(module.Key))
if (!this.Modules.Keys.Select(Path.GetFileName).Contains(Path.GetFileName(module.Key)))
{
this.Modules.Add(module.Key, module.Value);
}
Expand Down

0 comments on commit 967c180

Please sign in to comment.