Condition Coverage

blib/lib/Net/LDAP.pm
Criterion Covered Total %
condition 7 119 5.8


and 2 conditions

line l !l condition
159 0 0 $arg->{'inet6'} and !1
189 0 0 $arg->{'inet6'} and !1

and 3 conditions

line !l l&&!r l&&r condition
102 0 0 0 $ldap->{'net_ldap_onerror'} && !$ldap->{'net_ldap_async'}
241 0 0 0 $arg->{'checkcrl'} and not $arg->{'capath'}
289 0 0 0 'Socket'->can('getnameinfo') and 'Socket'->can('getaddrinfo')
336 2 0 0 exists $opt{'sasl_layer'} && !$opt{'sasl_layer'}
366 0 0 0 my $control = $arg->{'control'} and $ldap->{'net_ldap_version'} < 3
411 2 0 0 my $control = delete $arg->{'control'} and $ldap->{'net_ldap_version'} < 3
425 0 0 0 $type eq 'simple' and $passwd eq ''
442 0 0 0 ref $sasl and $sasl->isa('Authen::SASL')
513 0 0 0 $ldap->{'raw'} and not defined $arg->{'raw'}
518 0 0 0 my $control = $arg->{'control'} and $ldap->{'net_ldap_version'} < 3
569 0 0 0 my $control = $arg->{'control'} and $ldap->{'net_ldap_version'} < 3
600 0 0 0 my $control = $arg->{'control'} and $ldap->{'net_ldap_version'} < 3
694 0 0 0 my $control = $arg->{'control'} and $ldap->{'net_ldap_version'} < 3
717 0 0 0 my $control = $arg->{'control'} and $ldap->{'net_ldap_version'} < 3
749 0 0 0 my $control = $arg->{'control'} and $ldap->{'net_ldap_version'} < 3
792 0 0 0 my $control = $arg->{'control'} and $ldap->{'net_ldap_version'} < 3
894 0 0 0 $sync && $ldap->{'net_ldap_onerror'} && $mesg->is_error
949 0 0 0 defined $what and $what == $mid
1056 0 0 0 $arg{'attrs'} && $ldap->{'net_ldap_root_dse'}

or 2 conditions

line l !l condition
86 0 0 $mesg->dn || ''
114 0 2 $arg->{'scheme'} || 'ldap'
145 0 2 $arg->{'debug'} || 0
152 0 0 $arg->{'port'} || 389
173 0 0 $arg->{'localaddr'} || undef
186 0 0 $arg->{'port'} || 636
205 0 0 $arg->{'localaddr'} || undef
275 0 0 $ENV{'LDAPI_SOCK'} || '/var/run/ldapi'
299 0 0 $ldap->{'net_ldap_host'} ||= 'localhost'
409 0 2 delete $arg->{'dn'} || ''
521 0 0 $arg->{'base'} || ''
540 0 0 $arg->{'sizelimit'} || 0
0 0 $arg->{'timelimit'} || 0
0 0 $arg->{'typesonly'} || $arg->{'attrsonly'} || 0
0 0 $arg->{'attrs'} || []
711 0 0 $arg->{'deleteoldrdn'} || $arg->{'delete'} || 0
936 0 0 $ext->{'responseName'} || ''
1015 0 0 $root->get_value('subschemaSubentry') || 'cn=schema'
1044 0 0 $arg{'attrs'} || ['subschemaSubentry', 'namingContexts', 'altServer', 'supportedExtension', 'supportedControl', 'supportedFeatures', 'supportedSASLMechanisms', 'supportedLDAPVersion', 'vendorName', 'vendorVersion']
1112 0 0 $@ || $IO::Socket::SSL::SSL_ERROR || $IO::Socket::SSL::SSL_ERROR || ''

or 3 conditions

line l !l&&r !l&&!r condition
108 0 2 0 ref $self || $self
136 0 2 0 $arg->{'version'} || $LDAP_VERSION
458 0 0 0 $sasl_host ||= $ldap->{'net_ldap_host'}
579 0 0 0 $arg->{'attrs'} or $arg->{'attr'}
724 0 0 0 $arg->{'newrdn'} || $arg->{'new'}
903 0 0 0 defined $sel->can_read(0) || ref $sock eq 'IO::Socket::SSL' && $sock->pending