C0 code coverage information

Generated on Mon Aug 13 01:18:55 -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/spec/runner/extensions/object.rb 32 7
100.0% 
100.0% 
 1 # The following copyright applies to Object#copy_instance_variables_from,
 2 # which we borrowed from active_support.
 3 #
 4 # Copyright (c) 2004 David Heinemeier Hansson
 5 # 
 6 # Permission is hereby granted, free of charge, to any person obtaining
 7 # a copy of this software and associated documentation files (the
 8 # "Software"), to deal in the Software without restriction, including
 9 # without limitation the rights to use, copy, modify, merge, publish,
10 # distribute, sublicense, and/or sell copies of the Software, and to
11 # permit persons to whom the Software is furnished to do so, subject to
12 # the following conditions:
13 # 
14 # The above copyright notice and this permission notice shall be
15 # included in all copies or substantial portions of the Software.
16 # 
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 class Object
25   # From active_support
26   def copy_instance_variables_from(object, exclude = []) # :nodoc:
27     exclude += object.protected_instance_variables if object.respond_to? :protected_instance_variables
28     
29     instance_variables = object.instance_variables - exclude.map { |name| name.to_s }
30     instance_variables.each { |name| instance_variable_set(name, object.instance_variable_get(name)) }
31   end
32 end

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

Valid XHTML 1.0! Valid CSS!