C0 code coverage information

Generated on Fri Aug 25 11:26:31 PDT 2006 with rcov 0.7.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/workers/image_writer_worker.rb 19 11
36.8% 
18.2% 
 1 # Put your code that runs your task inside the do_work method
 2 # it will be run automatically in a thread. You have access to
 3 # all of your rails models if you set load_rails to true in the
 4 # config file. You also get @logger inside of this class by default.
 5 class ImageWriterWorker < BackgrounDRb::Rails
 6   
 7     def do_work(image)
 8         # This method is called in it's own new thread when you
 9         # call new worker.
10         # Write out four versions of the image
11         [:image, :big_thumb, :small_thumb, :tiny_thumb].each do |image_size|
12             if image[image_size].length > 0
13                 f = File.open("#{ConfigurationSettings.image_storage_path}/#{image_size}/#{image[:id]}.#{image[:original_filename]}", "w")
14                 f.write image[image_size]
15                 f.close
16             end
17         end
18     end
19 end

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

Valid XHTML 1.0! Valid CSS!