C0 code coverage information

Generated on Sat May 27 21:23:31 CEST 2006 with rcov 0.5.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
app/controllers/accounts_controller.rb 40 31
100.0% 
100.0% 
 1 class AccountsController < ApplicationController
 2 
 3   def login
This method was called by:

      3   vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'perform_action_without_filters'

 4     case request.method
 5       when :post
 6       if session[:user] = User.authenticate(params[:user_login], params[:user_password])
 7 
 8         flash[:notice]  = "Login successful"
 9         cookies[:is_admin] = "yes"
10         redirect_back_or_default :controller => "admin/general", :action => "index"
11       else
12         flash.now['notice']  = "Login unsuccessful"
13 
14         @login = params[:user_login]
15       end
16     end
17   end
18   
19   def signup
This method was called by:

      5   vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'perform_action_without_filters'

20     redirect_to :action => "login" and return unless User.count.zero? 
21     
22     @user = User.new(params[:user])
23     
24     if request.post? and @user.save
25       session[:user] = User.authenticate(@user.login, params[:user][:password])
26       flash[:notice]  = "Signup successful"
27       redirect_to :controller => "admin/general", :action => "index"
28       return
29     end      
30   end  
31   
32   def logout
This method was called by:

      1   vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'perform_action_without_filters'

33     session[:user] = nil
34     cookies.delete :is_admin
35   end
36     
37   def welcome
38   end
39   
40 end

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

Valid XHTML 1.0! Valid CSS!