RubyHash covHash = RubyHash.newHash(runtime);
for (Map.Entry<String, Integer[]> entry : coverage.entrySet()) {
RubyArray ary = RubyArray.newArray(runtime, entry.getValue().length);
for (int i = 0; i < entry.getValue().length; i++) {
Integer integer = entry.getValue()[i];
ary.store(i, integer == null ? runtime.getNil() : runtime.newFixnum(integer));
covHash.fastASetCheckString(runtime, RubyString.newString(runtime, entry.getKey()), ary);
}
}
return covHash;