Branch Coverage

blib/lib/Catalyst/Authentication/Store/LDAP/Backend.pm
Criterion Covered Total %
branch 19 60 31.6


line true false branch
107 0 2 unless (defined $config and ref $config eq 'HASH')
175 4 0 if (defined $self->ldap_server_options) { }
178 0 4 unless $ldap = 'Net::LDAP'->new($self->ldap_server, %{$self->ldap_server_options;})
182 0 0 unless $ldap = 'Net::LDAP'->new($self->ldap_server)
185 0 4 if (defined $self->start_tls and $self->start_tls =~ /(1|true)/i)
187 0 0 if (defined $self->start_tls_options) { }
193 0 0 if ($mesg->is_error)
213 0 4 unless (defined $ldap)
219 4 0 unless (defined $binddn)
224 4 0 if ($binddn eq 'anonymous') { }
228 0 0 if ($bindpw) { }
230 0 0 if ($mesg->is_error)
245 0 4 if ($mesg->is_error)
261 0 0 unless (defined $ldap)
265 0 0 $mesg->is_error ? :
297 4 0 if (defined $self->user_basedn) { }
307 0 4 if (defined $self->user_search_options)
312 0 4 if $usersearch->is_error
318 0 4 if (defined $results_filter) { }
324 0 4 if ($usersearch->pop_entry)
335 4 0 if (defined $entry)
336 0 4 unless (lc $entry->get_value($user_field) eq lc $id)
346 0 4 unless ($userentry)
352 16 4 if (scalar @attrvalues == 1) { }
361 0 4 unless ($@)
386 0 0 if ($self->use_roles == 0 or $self->use_roles =~ /^false$/i)
389 0 0 $self->role_search_as_user ? :
392 0 0 if (defined $self->role_basedn) { }
400 0 0 unless (defined $filter_value)
411 0 0 if (defined $self->role_search_options)