Condition Coverage

blib/lib/Net/LDAP/Class/User/POSIX.pm
Criterion Covered Total %
condition 21 59 35.5


and 3 conditions

line !l l&&!r l&&r condition
239 0 0 30 ref $group and $group->isa('Net::LDAP::Class::Group::POSIX')
282 0 0 3 $username and $uid
312 0 1 0 defined $old and not defined $new
1 0 0 not defined $old and defined $new
347 0 1 2 not exists $replace{'gidNumber'} and $self->group->gidNumber != $self->gidNumber
580 1 0 0 not defined $self->ldap_entry and grep {$_ eq $attribute;} @{$self->attributes;}

or 2 conditions

line l !l condition
251 30 0 $self->gecos || ''

or 3 conditions

line l !l&&r !l&&!r condition
120 0 27 0 delete $opts{'uidNumber'} || $self->uidNumber
122 0 27 0 delete $opts{'uid'} || $self->uid
220 9 21 0 $self->gidNumber or $self->group
227 30 0 0 $self->group || $group_class->new('gidNumber', $self->gidNumber, 'ldap', $self->ldap)->read
243 0 0 0 $self->gidNumber || $self->group->gidNumber
30 0 0 $gid ||= $self->gidNumber || $self->group->gidNumber
246 30 0 0 $self->gecos or $self->sn
30 0 0 $self->gecos or $self->sn or $self->givenName
265 3 27 0 $self->userPassword || $self->new_password
310 1 0 0 $self->{'_was_set'}{$attr}{'new'} || $derived{$attr}
312 1 0 0 defined $old || defined $new
467 0 0 0 delete $opts{'uid'} || $self->uid
544 1 0 0 $self->uid || $self->read->uid