C0 code coverage information

Generated on Fri Aug 25 11:26:30 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/utility.rb 19 8
100.0% 
100.0% 
 1 module Utility
 2 
 3 	# Method for generating random string of characters for salts and 
 4 	# temporary passwords
 5 	# example:
 6   	#
 7 	#  # generate salted_password
 8 	#  def salt_password(user, password)
 9 	#    user.salt = Digest::SHA1.hexdigest(random_string(40))
10 	#	 user.salted_hash = Digest::SHA1.hexdigest(password + salt)
11 	#  end
12 	def random_string( len )
13 	    chars = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a
14 	    newstring = ""
15 	    1.upto(len) { |i| newstring << chars[rand(chars.size-1)] }
16 	    newstring
17 	end
18 	
19 end

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

Valid XHTML 1.0! Valid CSS!