Condition Coverage

blib/lib/Net/LDAP/Class/User/AD.pm
Criterion Covered Total %
condition 29 65 44.6


and 3 conditions

line !l l&&!r l&&r condition
358 1 0 24 not defined $self->ldap_entry and grep {$_ eq $attribute;} @{$self->attributes;}
565 1 0 23 ref $group and $group->isa('Net::LDAP::Class::Group')
600 3 3 21 $cn ne $un and not $cn =~ m[/$un$]
654 0 1 0 defined $old and not defined $new
1 0 0 not defined $old and defined $new
674 0 0 3 defined $group and $group ne $PRIMARY_GROUP_NOT_USED
0 0 3 defined $group and $group ne $PRIMARY_GROUP_NOT_USED and not exists $replace{'primaryGroupID'}
0 1 2 defined $group and $group ne $PRIMARY_GROUP_NOT_USED and not exists $replace{'primaryGroupID'} and $self->group->gid != $self->gid

or 2 conditions

line l !l condition
590 27 0 $self->cn || $self->displayName || ''

or 3 conditions

line l !l&&r !l&&!r condition
139 1 1 0 shift() || $self->gid
442 0 24 0 delete $opts{'sAMAccountName'} || $self->sAMAccountName
444 0 24 0 delete $opts{'base_dn'} || $self->base_dn
451 0 24 0 $self->password || $self->random_string(10)
563 23 1 3 $self->{'group'} || $self->gid
581 3 24 0 $self->displayName or $self->cn
27 0 0 $self->displayName or $self->cn or $self->sn
24 0 0 $self->displayName or $self->cn or $self->sn or $self->givenName
626 0 3 0 delete $opts{'base_dn'} || $self->base_dn
652 1 0 0 $self->{'_was_set'}{$attr}{'new'} || $derived{$attr}
654 1 0 0 defined $old || defined $new
801 0 0 0 delete $opts{'sAMAccountName'} || delete $opts{'username'} || $self->username
803 0 0 0 delete $opts{'base_dn'} || $self->base_dn