Skip to content

Commit c810f32

Browse files
committed
init
1 parent 0a2024d commit c810f32

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/coverlet.core/Instrumentation/Instrumenter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,8 @@ private void InstrumentIL(MethodDefinition method)
592592

593593
if (sequencePoint != null && !sequencePoint.IsHidden)
594594
{
595-
if (_cecilSymbolHelper.SkipInlineAssignedAutoProperty(_parameters.SkipAutoProps, method,
596-
currentInstruction) || IsInsideExcludedMethodSection(sequencePoint))
595+
if (/*_cecilSymbolHelper.SkipInlineAssignedAutoProperty(_parameters.SkipAutoProps, method,
596+
currentInstruction) ||*/ IsInsideExcludedMethodSection(sequencePoint))
597597
{
598598
index++;
599599
continue;

test/coverlet.core.coverage.tests/Coverage/CoverageTests.AutoProps.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void SkipAutoPropsInRecords(bool skipAutoProps)
6969
string path = Path.GetTempFileName();
7070
try
7171
{
72-
FunctionExecutor.Run(async (string[] parameters) =>
72+
FunctionExecutor.RunInProcess(async (string[] parameters) =>
7373
{
7474
CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper.Run<RecordWithPropertyInit>(instance =>
7575
{
@@ -87,6 +87,7 @@ public void SkipAutoPropsInRecords(bool skipAutoProps)
8787
if (skipAutoProps)
8888
{
8989
TestInstrumentationHelper.GetCoverageResult(path)
90+
.GenerateReport(show:true)
9091
.Document("Instrumentation.AutoProps.cs")
9192
.AssertNonInstrumentedLines(BuildConfiguration.Debug, 23, 24)
9293
.AssertNonInstrumentedLines(BuildConfiguration.Release, 23, 24)
@@ -96,6 +97,7 @@ public void SkipAutoPropsInRecords(bool skipAutoProps)
9697
else
9798
{
9899
TestInstrumentationHelper.GetCoverageResult(path)
100+
.GenerateReport(show: true)
99101
.Document("Instrumentation.AutoProps.cs")
100102
.AssertLinesCoveredFromTo(BuildConfiguration.Debug, 18, 24)
101103
.AssertLinesCoveredFromTo(BuildConfiguration.Release, 21, 21)

test/coverlet.core.coverage.tests/Coverage/InstrumenterHelper.Assertions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static CoverageResult GenerateReport(this CoverageResult coverageResult,
3232
{
3333
Process.Start("cmd", "/C " + Path.GetFullPath(Path.Combine(directory, "index.htm")));
3434
}
35-
35+
Process.Start("cmd", "/C " + Path.GetFullPath(Path.Combine(directory, "index.htm")));
3636
return coverageResult;
3737
}
3838

0 commit comments

Comments
 (0)