Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -307,7 +307,10 @@ public DynamicObject coverageResult() {
for (Map.Entry<Source, Long[]> source : getContext().getCoverageTracker().getCounts().entrySet()) {
final Object[] store = lineCountsStore(source.getValue());
final DynamicObject array = Layouts.ARRAY.createArray(getContext().getCoreLibrary().getArrayFactory(), store, store.length);
converted.put(createString(StringOperations.encodeByteList(source.getKey().getPath(), UTF8Encoding.INSTANCE)), array);

if (source.getKey().getPath() != null) {
converted.put(createString(StringOperations.encodeByteList(source.getKey().getPath(), UTF8Encoding.INSTANCE)), array);
}
}

return BucketsStrategy.create(getContext(), converted.entrySet(), false);

0 comments on commit a3c5f9d

Please sign in to comment.