C0 code coverage information

Generated on Mon Dec 08 16:53:36 -0800 2008 with rcov 0.8.1.3


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/authenticated_test_helper.rb 20 16
40.0%  
25.0%  
 1 module AuthenticatedTestHelper
 2   # Sets the current user in the session from the user fixtures.
 3   def login_as(user)
 4     @request.session[:user_id] = user ? users(user).id : nil
 5   end
 6 
 7   def authorize_as(user)
 8     @request.env["HTTP_AUTHORIZATION"] = user ? ActionController::HttpAuthentication::Basic.encode_credentials(users(user).login, 'monkey') : nil
 9   end
10   
11   # rspec
12   def mock_user
13     user = mock_model(User, :id => 1,
14       :login  => 'user_name',
15       :name   => 'U. Surname',
16       :to_xml => "User-in-XML", :to_json => "User-in-JSON", 
17       :errors => [])
18     user
19   end  
20 end

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

Valid XHTML 1.0! Valid CSS!