Skip to content

Commit 9d4de10

Browse files
Joseph SunJosephSun2003
authored andcommitted
Unrollback change removals to integrate new changes with VSTest Integration
1 parent e67ba69 commit 9d4de10

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/coverlet.collector/DataCollection/CoverageWrapper.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,10 @@ public void PrepareModules(Coverage coverage)
7070
{
7171
coverage.PrepareModules();
7272
}
73+
74+
public void UnloadModule(Coverage coverage, string modulePath)
75+
{
76+
coverage.UnloadModule(modulePath);
77+
}
7378
}
7479
}

src/coverlet.collector/Utilities/Interfaces/ICoverageWrapper.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,12 @@ internal interface ICoverageWrapper
3939
/// <param name="coverage"></param>
4040
void PrepareModules(Coverage coverage);
4141

42+
/// <summary>
43+
/// Unload module in the specified path
44+
/// </summary>
45+
/// <param name="coverage"></param>
46+
/// <param name="modulePath"> path of the module to be unloaded</param>
47+
void UnloadModule(Coverage coverage, string modulePath);
48+
4249
}
4350
}

0 commit comments

Comments
 (0)