class Covered::Statistics
Attributes
count[R]
Total number of files added.
executable_count[R]
The number of lines which could have been executed.
executed_count[R]
The number of lines that were executed.
Public Class Methods
new()
click to toggle source
# File lib/covered/statistics.rb, line 26 def initialize @count = 0 @executable_count = 0 @executed_count = 0 end
Public Instance Methods
<<(coverage)
click to toggle source
# File lib/covered/statistics.rb, line 41 def << coverage @count += 1 @executable_count += coverage.executable_count @executed_count += coverage.executed_count end
print(output)
click to toggle source
# File lib/covered/statistics.rb, line 49 def print(output) output.puts "* #{count} files checked; #{executed_count}/#{executable_count} lines executed; #{percentage.to_f.round(2)}% covered." # Could output funny message here, especially for 100% coverage. end