Skip to content

Commit 0e2b653

Browse files
committed
Fix incorrect reporting unique sequence point ID
1 parent 235c05d commit 0e2b653

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/coverlet.core/Reporters/OpenCoverReporter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public string Report(CoverageResult result)
9090

9191
XElement methodPoint = new XElement("MethodPoint");
9292
methodPoint.Add(new XAttribute("vc", methLineCoverage.Covered.ToString()));
93-
methodPoint.Add(new XAttribute("upsid", "0"));
93+
methodPoint.Add(new XAttribute("uspid", "0"));
9494
methodPoint.Add(new XAttribute(XName.Get("type", "xsi"), "SequencePoint"));
9595
methodPoint.Add(new XAttribute("ordinal", j.ToString()));
9696
methodPoint.Add(new XAttribute("offset", j.ToString()));
@@ -114,7 +114,7 @@ public string Report(CoverageResult result)
114114
{
115115
XElement sequencePoint = new XElement("SequencePoint");
116116
sequencePoint.Add(new XAttribute("vc", lines.Value.ToString()));
117-
sequencePoint.Add(new XAttribute("upsid", lines.Key.ToString()));
117+
sequencePoint.Add(new XAttribute("uspid", lines.Key.ToString()));
118118
sequencePoint.Add(new XAttribute("ordinal", k.ToString()));
119119
sequencePoint.Add(new XAttribute("sl", lines.Key.ToString()));
120120
sequencePoint.Add(new XAttribute("sc", "1"));
@@ -138,7 +138,7 @@ public string Report(CoverageResult result)
138138
{
139139
XElement branchPoint = new XElement("BranchPoint");
140140
branchPoint.Add(new XAttribute("vc", branche.Hits.ToString()));
141-
branchPoint.Add(new XAttribute("upsid", branche.Line.ToString()));
141+
branchPoint.Add(new XAttribute("uspid", branche.Line.ToString()));
142142
branchPoint.Add(new XAttribute("ordinal", branche.Ordinal.ToString()));
143143
branchPoint.Add(new XAttribute("path", branche.Path.ToString()));
144144
branchPoint.Add(new XAttribute("offset", branche.Offset.ToString()));

0 commit comments

Comments
 (0)