Condition Coverage

blib/lib/Catalyst/Authentication/Store/LDAP/Backend.pm
Criterion Covered Total %
condition 26 42 61.9


and 3 conditions

line !l l&&!r l&&r condition
111 0 0 13 defined $config and ref $config eq 'HASH'
193 0 14 0 defined $self->start_tls and $self->start_tls =~ /(1|true)/i

or 2 conditions

line l !l condition
117 13 0 $config_hash{'binddn'} ||= 'anonymous'
118 13 0 $config_hash{'user_filter'} ||= '(uid=%s)'
119 13 0 $config_hash{'user_scope'} ||= 'sub'
120 13 0 $config_hash{'user_field'} ||= 'uid'
121 2 11 $config_hash{'role_filter'} ||= '(memberUid=%s)'
122 2 11 $config_hash{'role_scope'} ||= 'sub'
123 2 11 $config_hash{'role_field'} ||= 'cn'
126 0 13 $config_hash{'start_tls'} ||= '0'
127 1 12 $config_hash{'entry_class'} ||= 'Catalyst::Model::LDAP::Entry'
128 2 11 $config_hash{'user_class'} ||= 'Catalyst::Authentication::Store::LDAP::User'
130 1 12 $config_hash{'role_search_as_user'} ||= 0
131 2 11 $config_hash{'persist_in_session'} ||= 'username'

or 3 conditions

line l !l&&r !l&&!r condition
154 0 14 0 $authinfo->{'id'} || $authinfo->{'username'}
220 0 19 0 $ldap ||= $self->ldap_connect
394 1 0 2 $self->use_roles == 0 or $self->use_roles =~ /^false$/i
397 0 2 0 $ldap ||= $self->role_search_as_user ? $userobj->ldap_connection : $self->ldap_bind