Class: Rcov::TextSummary

Inherits:
BaseFormatter show all
Defined in:
lib/rcov/formatters/text_summary.rb

Overview

:nodoc:

Direct Known Subclasses

FailureReport, TextReport

Constant Summary

Constants inherited from BaseFormatter

BaseFormatter::DEFAULT_OPTS

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

#executeObject



3
4
5
# File 'lib/rcov/formatters/text_summary.rb', line 3

def execute
  puts summary
end

#summaryObject



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