Class: Rcov::TextSummary

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

Overview

:nodoc:

Direct Known Subclasses

FailureReport, TextReport

Constant Summary

Constant Summary

Constants inherited from BaseFormatter

BaseFormatter::DEFAULT_OPTS, BaseFormatter::RCOV_IGNORE_REGEXPS

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

- (Object) execute



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

def execute
  puts summary
end

- (Object) summary



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