Class: Perf::ReportFormatListOfMeasures

Inherits:
ReportFormat show all
Defined in:
lib/perf/report_format_list_of_measures.rb

Overview

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

Constant Summary

Constants inherited from ReportFormat

Perf::ReportFormat::ACCURACY_DESCRIPTION, Perf::ReportFormat::MAX_ACCURACY_SIZE, Perf::ReportFormat::MIN_TOTAL_TIME

Instance Method Summary collapse

Methods inherited from ReportFormat

#format_accuracy

Instance Method Details

#format(perf, options = {}) ⇒ Object



10
11
12
# File 'lib/perf/report_format_list_of_measures.rb', line 10

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


22
23
24
# File 'lib/perf/report_format_list_of_measures.rb', line 22

def format_footer(v)
  ""
end

#format_header(v) ⇒ Object



14
15
16
# File 'lib/perf/report_format_list_of_measures.rb', line 14

def format_header(v)
  ""
end

#format_measure(v) ⇒ Object



18
19
20
# File 'lib/perf/report_format_list_of_measures.rb', line 18

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

#format_title(what, options) ⇒ Object



26
27
28
# File 'lib/perf/report_format_list_of_measures.rb', line 26

def format_title(what,options)
  what
end