Skip to content

Commit 4608ccb

Browse files
committed
Revert "fix: Adjust coverage assertion to only check the return statement for consistency across environments"
This reverts commit 06a684c.
1 parent 3fad1d7 commit 4608ccb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/coverlet.integration.tests/DeterministicBuild.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,9 @@ private protected void AssertCoverage(string standardOutput = "", string reportN
8383
Classes? document = JsonConvert.DeserializeObject<Modules>(File.ReadAllText(coverageFile))?.Document("DeepThought.cs");
8484
if (document != null)
8585
{
86-
// Only assert on the return statement (line 7), as braces may not be instrumented consistently across environments
8786
document.Class("Coverlet.Integration.DeterministicBuild.DeepThought")
8887
.Method("System.Int32 Coverlet.Integration.DeterministicBuild.DeepThought::AnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything()")
89-
.AssertLinesCovered((7, 1));
88+
.AssertLinesCovered((6, 1), (7, 1), (8, 1));
9089
coverageChecked = true;
9190
reportFilePath = coverageFile;
9291
}

0 commit comments

Comments
 (0)