Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/deprecation.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/deprecation.rb 40 31
30.00%
29.03%

Key

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.

Coverage Details

1 module Spec
2   class << self
3     def deprecate(method, alternate_method=nil)
4        message = <<-NOTICE
5 
6 *****************************************************************
7 DEPRECATION WARNING: you are using deprecated behaviour that will
8 be removed from a future version of RSpec.
9 
10 #{caller(0)[2]}
11 
12 * #{method} is deprecated.
13 NOTICE
14       if alternate_method
15         message << <<-ADDITIONAL
16 * please use #{alternate_method} instead.
17 ADDITIONAL
18       end
19 
20       message << "*****************************************************************"
21       warn(message)
22     end
23 
24     def warn(message)
25       Kernel.warn(message)
26     end
27 
28   end
29 
30   class HashWithDeprecationNotice < Hash
31     def initialize(method, alternate_method=nil, &block)
32       @method, @alternate_method = method, alternate_method
33     end
34     def []=(k,v)
35       Spec.deprecate(@method, @alternate_method)
36       super
37     end
38   end
39 end
40 

Generated on Mon May 10 23:40:27 -0700 2010 with rcov 0.9.8