class SimpleCov::FileList

def compute_coverage_statistics

def compute_coverage_statistics
  total_coverage_statistics = @files.each_with_object(line: [], branch: []) do |file, together|
    together[:line] << file.coverage_statistics[:line]
    together[:branch] << file.coverage_statistics[:branch] if SimpleCov.branch_coverage?
  end
  coverage_statistics = {line: CoverageStatistics.from(total_coverage_statistics[:line])}
  coverage_statistics[:branch] = CoverageStatistics.from(total_coverage_statistics[:branch]) if SimpleCov.branch_coverage?
  coverage_statistics
end