Skip to content

Commit 18686a4

Browse files
committed
as is analyzis
1 parent c810f32 commit 18686a4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
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
@@ -118,7 +118,7 @@ public void SkipRecordWithProperties(bool skipAutoProps)
118118
string path = Path.GetTempFileName();
119119
try
120120
{
121-
FunctionExecutor.Run(async (string[] parameters) =>
121+
FunctionExecutor.RunInProcess(async (string[] parameters) =>
122122
{
123123
CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper.Run<ClassWithRecordsAutoProperties>(instance =>
124124
{
@@ -132,6 +132,7 @@ public void SkipRecordWithProperties(bool skipAutoProps)
132132
if (skipAutoProps)
133133
{
134134
TestInstrumentationHelper.GetCoverageResult(path)
135+
.GenerateReport(show: true)
135136
.Document("Instrumentation.AutoProps.cs")
136137
.AssertNonInstrumentedLines(BuildConfiguration.Debug, 29, 29)
137138
.AssertNonInstrumentedLines(BuildConfiguration.Release, 29, 29)
@@ -141,6 +142,7 @@ public void SkipRecordWithProperties(bool skipAutoProps)
141142
else
142143
{
143144
TestInstrumentationHelper.GetCoverageResult(path)
145+
.GenerateReport(show: true)
144146
.Document("Instrumentation.AutoProps.cs")
145147
.AssertLinesCovered(BuildConfiguration.Debug, (29, 1), (31, 1), (32, 1), (33, 1), (34, 1))
146148
.AssertLinesCovered(BuildConfiguration.Release, (29, 1), (31, 1), (33, 1));

0 commit comments

Comments
 (0)