File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,17 @@ ClassMethod MapRunCoverage(pRunIndex As %Integer) As %Status
101
101
Do tCoverage .RunSetObjectId (pRunIndex )
102
102
Do tCoverage .HashSetObjectId (hToHash )
103
103
Set tCoverage .TestPath = hTestPath
104
+ // also set all of its metrics to 0 to start with
105
+ Set tCodeUnit = ##class (TestCoverage.Data.CodeUnit ).%OpenId (hToHash )
106
+ For i =1 :1 :tRun .Metrics .Count () {
107
+ Set tMetricKey = tRun .Metrics .GetAt (i )
108
+ Set tMetric = $PROPERTY (tCoverage , tMetricKey )
109
+ for tLineNumber = 1 :1 :tCodeUnit .Lines .Count () {
110
+ Do tMetric .SetAt (0 , tLineNumber )
111
+ }
112
+ }
113
+
114
+
104
115
}
105
116
Set tCoverage .Ignore = hIgnore
106
117
Set tCoverage .CoveredLines = $BitLogic (tCoverage .CoveredLines |hCoveredLines )
@@ -191,4 +202,3 @@ Storage Default
191
202
}
192
203
193
204
}
194
-
You can’t perform that action at this time.
0 commit comments