Branch Coverage

blib/lib/Dancer2/Plugin/Auth/Extensible/Provider/LDAP.pm
Criterion Covered Total %
branch 22 30 73.3


line true false branch
201 0 111 unless my $ldap = $self->ldap
207 0 111 if (not defined $username || defined $password) { }
212 0 111 unless defined $username and defined $password
243 3 49 unless defined $username and defined $password
246 29 14 unless my $user = $self->get_user_details($username)
248 0 14 unless my $ldap = $self->ldap
265 1 97 unless defined $username
268 0 97 unless my $ldap = $self->ldap
272 0 97 if ($mesg->is_error)
284 6 91 if ($mesg->is_error)
289 52 39 if ($mesg->count > 0) { }
299 52 0 if ($self->role_member_attribute_name eq 'dn') { }
312 0 52 if ($mesg->is_error)
346 1 16 unless defined $username
349 2 14 unless my $user = $self->get_user_details($username)