Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/fumoffu/controller.rb | 15 | 13 | 100.00%
|
100.00%
|
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.
1 module Fumoffu |
2 class Controller |
3 attr_accessor :action_name |
4 attr_reader :controller_name |
5 |
6 def initialize |
7 @controller_name = extract_controller_name |
8 end |
9 |
10 def extract_controller_name |
11 name = self.class.to_s |
12 name.scan(/^\w+Controller$/).first.downcase |
13 end |
14 end |
15 end |
Generated on Tue Apr 19 07:59:25 +0200 2011 with rcov 0.9.8