Class: Lemon::CoverReports::Outline
- Defined in:
- lib/lemon/coverage/formats/outline.rb
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
#covered_units, #initialize, #tally, #uncovered_cases, #uncovered_units, #undefined_units
Constructor Details
This class inherits a constructor from Lemon::CoverReports::Abstract
Instance Method Details
#render ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/lemon/coverage/formats/outline.rb', line 8 def render unless covered_units.empty? puts "\nCovered Units:" covered_units.map do |unit| puts "* #{unit.to_s.ansi(:green)}" end.join(", ") end unless uncovered_units.empty? puts "\nUncovered Units:" uncovered_units.map do |unit| puts "* #{unit.to_s.ansi(:yellow)}" end end unless undefined_units.empty? puts "\nUndefined Units:" unc = undefined_units.map do |unit| puts "* #{unit.to_s.ansi(:red)}" end end unless uncovered_cases.empty? puts "\nUncovered Cases:" uncovered_cases.map do |mod| puts "* #{mod.name.ansi(:cyan)}" end end puts puts tally end |