Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/example/args_and_options.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/example/args_and_options.rb 27 24
100.00%
100.00%

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   module Example
3     module ArgsAndOptions
4       def args_and_options(*args) # :nodoc:
5         options = Hash === args.last ? args.pop : {}
6         return args, options
7       end
8 
9       def add_options(args, options={}) # :nodoc:
10         args << {} unless Hash === args.last
11         args.extend WithOptions
12         args.options.merge!(options)
13         args.options
14       end
15 
16       def set_location(options, location) # :nodoc:
17         options[:location] ||= location
18       end
19 
20       module WithOptions # :nodoc:
21         def options
22           last
23         end
24       end
25     end
26   end
27 end

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