module SimpleCov::ResultMerger
def store_result(result)
def store_result(result) File.open(resultset_writelock, "w+") do |f| f.flock(File::LOCK_EX) new_set = resultset command_name, data = result.to_hash.first new_set[command_name] = data File.open(resultset_path, "w+") do |f_| f_.puts SimpleCov::JSON.dump(new_set) end end true end