C0 code coverage information
Generated on Thu Jun 07 11:34:00 -0400 2007 with rcov 0.8.0
Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
Name |
Total lines |
Lines of code |
Total coverage |
Code coverage |
lib/round_off.rb
|
14
|
10
|
|
|
1
2 class Float
3
4 # Float#round_off is simple an alias for Float#round.
5
6 alias_method :rnd, :round
7 def round_off
8 if nan?
9 self
10 else
11 round
12 end
13 end
14 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.