Sha256: c7bac02e05b4d9e7368658e1a62e2423cb537b874485ea4057cdffa766ed30e0

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 Bytes

Contents

require 'rubyperf'

module Perf

  # ReportFormatListOfMeasures is use for unit tests to list the measures taken and their count. It has no other
  # real life purpose.

  class ReportFormatListOfMeasures < ReportFormat

    def format(perf,options={})
      super.select{|x| x.length>0 }
    end

    def format_header(v)
      ""
    end

    def format_measure(v)
      "#{v[:title]},#{v[:count]}"
    end

    def format_footer(v)
      ""
    end

    def format_title(what,options)
      what
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubyperf-1.5.0 lib/perf/report_format_list_of_measures.rb
rubyperf-1.4.0 lib/perf/report_format_list_of_measures.rb
rubyperf-1.3.7 lib/perf/report_format_list_of_measures.rb