C0 code coverage information

Generated on Sun Jun 11 23:15:17 CEST 2006 with rcov 0.6.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/transforms.rb 38 24
100.0% 
100.0% 
 1 def nofollowify(text)
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
      4   app/models/comment.rb:24 in 'Comment#make_nofollow'
      4   app/models/comment.rb:23 in 'Comment#make_nofollow'

 2   text.gsub(/<\s*a\s*(.+?)>/i, '<a \1 rel="nofollow">')
 3 end
 4 
 5 def strip_html(text)
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
      2   app/models/trackback.rb:15 in 'Trackback#make_nofollow'
      2   app/models/trackback.rb:14 in 'Trackback#make_nofollow'
      2   app/models/trackback.rb:16 in 'Trackback#make_nofollow'

 6   attribute_key = /[\w:_-]+/
 7   attribute_value = /(?:[A-Za-z0-9]+|(?:'[^']*?'|"[^"]*?"))/
 8   attribute = /(?:#{attribute_key}(?:\s*=\s*#{attribute_value})?)/
 9   attributes = /(?:#{attribute}(?:\s+#{attribute})*)/
10   tag_key = attribute_key
11   tag = %r{<[!/?\[]?(?:#{tag_key}|--)(?:\s+#{attributes})?\s*(?:[!/?\]]+|--)?>}
12   text.gsub(tag, '').gsub(/\s+/, ' ').strip
13 end
14 
15 class String
16   # Converts a post title to its-title-using-dashes
17   # All special chars are stripped in the process  
18   def to_url
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
     14   app/models/article.rb:14 in 'Article#stripped_title'
      1   app/models/category.rb:16 in 'Category#stripped_name'

19     return if self.nil?
20     
21     result = self.downcase
22 
23     # replace quotes by nothing
24     result.gsub!(/['"]/, '')
25 
26     # strip all non word chars
27     result.gsub!(/\W/, ' ')
28 
29     # replace all white space sections with a dash
30     result.gsub!(/\ +/, '-')
31 
32     # trim dashes
33     result.gsub!(/(-)$/, '')
34     result.gsub!(/^(-)/, '')
35 
36     result
37   end
38 end

Generated using the rcov code coverage analysis tool for Ruby version 0.6.0.

Valid XHTML 1.0! Valid CSS!