Branch Coverage

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


line true false branch
80 2 17 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 21 unless (defined $attribute)
235 4 17 if ($attribute eq 'dn') { }
4 13 elsif ($attribute eq 'username') { }
13 0 elsif (exists $self->user->{'attributes'}{$attribute}) { }
338 0 16 if ($method eq 'DESTROY')
342 16 0 if (my $attribute = $self->has_attribute($method)) { }