class GemHadar::SimpleCov::ContextFormatter

def extract_coverage_info(coverage_statistics)

Returns:
  • (Hash) - a hash containing the extracted coverage metrics with

Parameters:
  • coverage_statistics (SimpleCov::CoverageStatistics) -- the coverage
def extract_coverage_info(coverage_statistics)
  %i[ total covered missed strength percent ].each_with_object({}) do |attr, hash|
    hash[attr] = coverage_statistics.send(attr)
  end
end