Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
107 0 0 2 defined $config and ref $config eq 'HASH'
185 0 4 0 defined $self->start_tls and $self->start_tls =~ /(1|true)/i

or 2 conditions

line l !l condition
113 2 0 $config_hash{'binddn'} ||= 'anonymous'
114 2 0 $config_hash{'user_filter'} ||= '(uid=%s)'
115 2 0 $config_hash{'user_scope'} ||= 'sub'
116 2 0 $config_hash{'user_field'} ||= 'uid'
117 0 2 $config_hash{'role_filter'} ||= '(memberUid=%s)'
118 0 2 $config_hash{'role_scope'} ||= 'sub'
119 0 2 $config_hash{'role_field'} ||= 'cn'
120 0 2 $config_hash{'use_roles'} ||= '1'
121 0 2 $config_hash{'start_tls'} ||= '0'
122 0 2 $config_hash{'entry_class'} ||= 'Catalyst::Model::LDAP::Entry'
123 0 2 $config_hash{'user_class'} ||= 'Catalyst::Authentication::Store::LDAP::User'
125 0 2 $config_hash{'role_search_as_user'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
146 0 4 0 $$authinfo{'id'} || $$authinfo{'username'}
212 0 4 0 $ldap ||= $self->ldap_connect
386 0 0 0 $self->use_roles == 0 or $self->use_roles =~ /^false$/i
389 0 0 0 $ldap ||= $self->role_search_as_user ? $userobj->ldap_connection : $self->ldap_bind