lib/simplecov/result_merger.rb
# Saves the given SimpleCov::Result in the resultset cache
Saves the given SimpleCov::Result in the resultset cache
Saves the given SimpleCov :: Result in the resultset cache
def store_result(result)
        synchronize_resultset do
          new_resultset = read_resultset
          command_name, data = result.to_hash.first
          new_resultset[command_name] = data
          File.open(resultset_path, "w+") do |f_|
            f_.puts JSON.pretty_generate(new_resultset)
          end
        end
        true
      end
def store_result ( result ) synchronize_resultset do new_resultset = read_resultset command_name , data = result . to_hash . first new_resultset [ command_name ] = data File . open ( resultset_path , "w+" ) do | f_ | f_ . puts JSON . pretty_generate ( new_resultset ) end end true end
Saves the given SimpleCov::Result in the resultset cache
Saves the given SimpleCov :: Result in the resultset cache
# Ensure we have the latest, in case it was already cached # A single result only ever has one command_name, see `SimpleCov::Result#to_hash`
result