class RcovAnalyzer

Constants

COLUMNS

Public Instance Methods

columns() click to toggle source
# File lib/base/rcov_analyzer.rb, line 6
def columns
  COLUMNS
end
generate_records(data, table) click to toggle source
# File lib/base/rcov_analyzer.rb, line 26
 def generate_records(data, table)
  return if data==nil
  data.each do |file_name, info|
    next if (file_name == :global_percent_run) || (info[:methods].nil?)
    info[:methods].each do |method_name, percentage_uncovered|
      location = MetricFu::Location.for(method_name)
      table << {
        "metric" => :rcov,
        'file_path' => file_name,
        'class_name' => location.class_name,
        "method_name" => location.method_name,
        "percentage_uncovered" => percentage_uncovered
      }
    end
  end
end
map(row) click to toggle source
# File lib/base/rcov_analyzer.rb, line 14
def map(row)
  row.percentage_uncovered
end
name() click to toggle source
# File lib/base/rcov_analyzer.rb, line 10
def name
  :rcov
end
reduce(scores) click to toggle source
# File lib/base/rcov_analyzer.rb, line 18
def reduce(scores)
  ScoringStrategies.average(scores)
end
score(metric_ranking, item) click to toggle source
# File lib/base/rcov_analyzer.rb, line 22
def score(metric_ranking, item)
  ScoringStrategies.identity(metric_ranking, item)
end