module SimpleCov::HashMergeHelper
Public Instance Methods
merge_resultset(hash)
click to toggle source
Merges the given Coverage.result hash with self
# File lib/simplecov/merge_helpers.rb, line 23 def merge_resultset(hash) new_resultset = {} (keys + hash.keys).each do |filename| new_resultset[filename] = [] end new_resultset.each_key do |filename| new_resultset[filename] = (self[filename] || []).merge_resultset(hash[filename] || []) end new_resultset end