Sha256: 756d307d5f54d7f23585281585f7b909d5ff33f1b4d0b65603707ac62b072018

Contents?: true

Size: 629 Bytes

Versions: 6

Compression:

Stored size: 629 Bytes

Contents

#
# Copyright (c) 2012 Lorenzo Pasqualis - DreamBox Learning, Inc
# https://github.com/lpasqualis/rubyperf
#


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

6 entries across 6 versions & 1 rubygems

Version Path
rubyperf-1.3.6 lib/perf/report_format_list_of_measures.rb
rubyperf-1.3.5 lib/perf/report_format_list_of_measures.rb
rubyperf-1.3.4 lib/perf/report_format_list_of_measures.rb
rubyperf-1.3.2 lib/perf/report_format_list_of_measures.rb
rubyperf-1.3.1 lib/perf/report_format_list_of_measures.rb
rubyperf-1.3.0 lib/perf/report_format_list_of_measures.rb