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 14 defined $config and ref $config eq 'HASH'
193 0 15 0 defined $self->start_tls and $self->start_tls =~ /(1|true)/i

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
154 0 0 15 $authinfo->{'id'} || $authinfo->{'username'}
220 0 20 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