Branch Coverage

blib/lib/Dancer2/Plugin/Auth/Extensible/Provider/LDAP.pm
Criterion Covered Total %
branch 23 34 67.6


line true false branch
109 0 0 unless my $ldap = "Net::LDAP"->new($self->host, %{$self->options;})
221 105 0 unless $self->_has_ldap
233 0 111 unless my $ldap = $self->ldap
239 0 111 if (not defined $username || defined $password) { }
244 0 111 unless defined $username and defined $password
263 3 49 unless defined $username and defined $password
266 29 14 unless my $user = $self->get_user_details($username)
268 0 14 unless my $ldap = $self->ldap
284 1 97 unless defined $username
287 0 97 unless my $ldap = $self->ldap
291 0 97 if ($mesg->is_error)
303 6 91 if ($mesg->is_error)
308 52 39 if ($mesg->count > 0) { }
318 52 0 if ($self->role_member_attribute_name eq 'dn') { }
331 0 52 if ($mesg->is_error)
364 1 16 unless defined $username
367 2 14 unless my $user = $self->get_user_details($username)