Sha256: c2c132cde0e54424e4b39477d9f04802d05a6189a5cb95e6a3dcf724e996317e
Contents?: true
Size: 674 Bytes
Versions: 15
Compression:
Stored size: 674 Bytes
Contents
MetricFu.reporting_require { 'graphs/grapher' } module MetricFu class RcovGrapher < Grapher attr_accessor :rcov_percent, :labels def self.metric :rcov end def initialize super self.rcov_percent = [] self.labels = {} end def get_metrics(metrics, date) if metrics && metrics[:rcov] self.rcov_percent.push(metrics[:rcov][:global_percent_run]) self.labels.update( { self.labels.size => date }) end end def title 'Rcov: code coverage' end def data [ ['rcov', @rcov_percent.join(',')] ] end def output_filename 'rcov.js' end end end
Version data entries
15 entries across 15 versions & 1 rubygems