Skip to content

Commit b4bf3c4

Browse files
committed
Updated IO Utils for path
1 parent 47a84a6 commit b4bf3c4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/main/scala/scoverage/IOUtils.scala

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ object IOUtils {
9898
<method>
9999
{stmt.location.method}
100100
</method>
101+
<path>
102+
{stmt.location.path}
103+
</path>
101104
<id>
102105
{stmt.id.toString}
103106
</id>
@@ -141,6 +144,7 @@ object IOUtils {
141144
val _package = (node \ "package").text
142145
val _class = (node \ "class").text
143146
val method = (node \ "method").text
147+
val path = (node \ "path").text
144148
val treeName = (node \ "treeName").text
145149
val symbolName = (node \ "symbolName").text
146150
val id = (node \ "id").text.toInt
@@ -153,7 +157,14 @@ object IOUtils {
153157
case "Object" => ClassType.Object
154158
case _ => ClassType.Class
155159
}
156-
MeasuredStatement(source, Location(_package, _class, classType, method), id, start, end, line, desc, symbolName,
160+
MeasuredStatement(source,
161+
Location(_package, _class, classType, method, path),
162+
id,
163+
start,
164+
end,
165+
line,
166+
desc,
167+
symbolName,
157168
treeName, branch, count)
158169
})
159170

0 commit comments

Comments
 (0)