Class: Rcov::TextSummary
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- Rcov::TextSummary
- Defined in:
- lib/rcov/formatters/text_summary.rb
Overview
:nodoc:
Direct Known Subclasses
Constant Summary
Constants inherited from BaseFormatter
Instance Method Summary collapse
Methods inherited from BaseFormatter
#add_file, #code_coverage, #each_file_pair_sorted, #initialize, #mangle_filename, #normalize_filename, #num_code_lines, #num_lines, #sorted_file_pairs, #total_coverage
Constructor Details
This class inherits a constructor from Rcov::BaseFormatter
Instance Method Details
#execute ⇒ Object
3 4 5 |
# File 'lib/rcov/formatters/text_summary.rb', line 3 def execute puts summary end |
#summary ⇒ Object
7 8 9 |
# File 'lib/rcov/formatters/text_summary.rb', line 7 def summary "%.1f%% %d file(s) %d Lines %d LOC" % [code_coverage * 100, @files.size, num_lines, num_code_lines] end |