Condition Coverage

blib/lib/CGI/Application/Plugin/Authentication.pm
Criterion Covered Total %
condition 82 108 75.9


and 2 conditions

line l !l condition
1219 31 0 $login_config->{'REMEMBERUSER_OPTION'} and scalar $query->param('authen_rememberuser')

and 3 conditions

line !l l&&!r l&&r condition
550 22 95 1 ref $self and defined $self->{'initialized'}
565 2 69 1 ref $props->{'DRIVER'} and &Scalar::Util::reftype($props->{'DRIVER'}) ne 'ARRAY'
578 15 58 1 ref $props->{'STORE'} and &Scalar::Util::reftype($props->{'STORE'}) ne 'ARRAY'
637 1 15 1 ref $props->{'CREDENTIALS'} and &Scalar::Util::reftype($props->{'CREDENTIALS'}) ne 'ARRAY'
647 7 12 1 ref $props->{'LOGIN_SESSION_TIMEOUT'} and ref $props->{'LOGIN_SESSION_TIMEOUT'} ne 'HASH'
767 115 0 8 ref $runmode_test and ref $runmode_test eq 'CODE'
784 8 11 0 $sub and $RUNMODES{$sub}
1135 0 0 115 $config->{'STORE'} and ref $config->{'STORE'} eq 'ARRAY'
1138 0 0 0 $self->_cgiapp->can('session') and UNIVERSAL::isa($self->_cgiapp->session, 'CGI::Session')
1244 99 4 5 $config->{'LOGIN_SESSION_TIMEOUT'} and not $self->{'is_new_login'}
103 1 4 $config->{'LOGIN_SESSION_TIMEOUT'} and not $self->{'is_new_login'} and $self->username
1246 2 1 1 $config->{'LOGIN_SESSION_TIMEOUT'}{'IDLE_FOR'} and time - $self->last_access >= $config->{'LOGIN_SESSION_TIMEOUT'}{'IDLE_FOR'}
1 1 1 $config->{'LOGIN_SESSION_TIMEOUT'}{'EVERY'} and time - $self->last_login >= $config->{'LOGIN_SESSION_TIMEOUT'}{'EVERY'}
0 1 1 $config->{'LOGIN_SESSION_TIMEOUT'}{'CUSTOM'} and $config->{'LOGIN_SESSION_TIMEOUT'}{'CUSTOM'}->($self)
1333 1 1 1520 defined $cgiapp and UNIVERSAL::isa($cgiapp, 'CGI::Application')
1458 111 2 4 $destination and $destination =~ /$regexp/
1595 18 10 1 !$2 || $2 eq 's' and $1 != int $1

or 2 conditions

line l !l condition
34 0 1 $data || 1
38 1 0 $data || 1
748 161 62 $config->{'PROTECTED_RUNMODES'} ||= []
1057 25 116 $config->{'CREDENTIALS'} || ['authen_username', 'authen_password']
1103 105 1 _find_deligate_class('CGI::Application::Plugin::Authentication::Driver::' . $drivername, $drivername) || die('Driver ' . $drivername . ' can not be found')
1109 104 1 $driver_class->new($self, @params) || die("Could not create new $driver_class object")
1148 115 0 _find_deligate_class('CGI::Application::Plugin::Authentication::Store::' . $store_module, $store_module) || die("Store $store_module can not be found")
1154 114 0 $store_class->new($self, @store_config) || die("Could not create new $store_class object")
1201 27 89 $config->{'CREDENTIALS'} || ['authen_username', 'authen_password']
1218 4 27 $config->{'LOGIN_FORM'} || {}
1221 0 0 $login_config->{'REMEMBERUSER_COOKIENAME'} || 'CAPAUTHTOKEN'
1232 4 28 $store->fetch('login_attempts') || 0
1275 21 45 $self->_config->{'LOGIN_FORM'} || {}
1277 6 60 $config->{'DISPLAY_CLASS'} || 'Classic'
1496 43 31 scalar $query->param($username) || $query->cookie($cookiename) || ''
1522 81 93 $__CONFIG{$class} || {}
1524 6 16 $__CONFIG{$class} ||= {}
1538 0 0 $config->{'CREDENTIALS'} || ['authen_username', 'authen_password']
1541 0 0 scalar $query->param($name) || ''
1596 19 9 $mult{$2} || 1

or 3 conditions

line l !l&&r !l&&!r condition
906 0 0 107 $config->{'LOGIN_RUNMODE'} or $config->{'LOGIN_URL'}
908 0 0 107 $config->{'LOGOUT_RUNMODE'} or $config->{'LOGOUT_URL'}
1394 0 76 0 $run_mode ||= $self->get_current_runmode
1522 1586 174 0 $self->{'__CAP_AUTHENTICATION_CONFIG'} ||= $__CONFIG{$class} || {}
1595 10 1 18 !$2 || $2 eq 's'