Branch Coverage

blib/lib/Catalyst/Authentication/Store/LDAP/User.pm
Criterion Covered Total %
branch 16 26 61.5


line true false branch
80 2 18 unless $user
109 0 8 if ref $userfield eq 'ARRAY'
110 0 8 if ($userfield eq 'dn') { }
116 0 8 ref $val eq 'ARRAY' ? :
144 3 0 if ($self->store->ldap_auth($self->ldap_entry->dn, $password)) { }
179 1 2 if ($self->store->persist_in_session eq 'all')
214 0 0 if ($type eq 'ashash') { }
231 0 22 unless (defined $attribute)
235 4 18 if ($attribute eq 'dn') { }
4 14 elsif ($attribute eq 'username') { }
14 0 elsif (exists $self->user->{'attributes'}{$attribute}) { }
338 0 17 if ($method eq 'DESTROY')
342 17 0 if (my $attribute = $self->has_attribute($method)) { }