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
393 1 0 24 not defined $self->ldap_entry and grep {$_ eq $attribute;} @{$self->attributes;}
600 1 0 23 ref $group and $group->isa('Net::LDAP::Class::Group')
635 3 3 21 $cn ne $un and not $cn =~ m[/$un$]
689 0 1 0 defined $old and not defined $new
1 0 0 not defined $old and defined $new
709 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
625 27 0 $self->cn || $self->displayName || ''

or 3 conditions

line l !l&&r !l&&!r condition
138 1 1 0 shift() || $self->gid
477 0 24 0 delete $opts{'sAMAccountName'} || $self->sAMAccountName
479 0 24 0 delete $opts{'base_dn'} || $self->base_dn
486 0 24 0 $self->password || $self->random_string(10)
598 23 1 3 $$self{'group'} || $self->gid
616 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
661 0 3 0 delete $opts{'base_dn'} || $self->base_dn
687 1 0 0 $$self{'_was_set'}{$attr}{'new'} || $derived{$attr}
689 1 0 0 defined $old || defined $new
833 0 0 0 delete $opts{'sAMAccountName'} || delete $opts{'username'} || $self->username
838 0 0 0 delete $opts{'base_dn'} || $self->base_dn