Condition Coverage

blib/lib/Net/LDAP/Util.pm
Criterion Covered Total %
condition 13 58 22.4


and 3 conditions

line !l l&&!r l&&r condition
282 0 1 72 defined $dn and $dn ne ''
482 58 141 18 defined $sep and $sep eq '+'
683 0 0 0 $uri and ref($uri) =~ /^URI::ldap[is]?$/

or 2 conditions

line l !l condition
287 0 72 $opt{'casefold'} || 'upper'
291 0 54 $opt{'separator'} || ','
492 62 14 pos $dn || 0
694 0 0 $uri->un_path || $ENV{'LDAPI_SOCK'} || '/var/run/ldapi'
698 0 0 $uri->host || 'localhost'

or 3 conditions

line l !l&&r !l&&!r condition
321 191 0 0 not $opt{'casefold'} or $opt{'casefold'} eq 'upper'
461 0 197 20 not $opt{'casefold'} or $opt{'casefold'} eq 'upper'
694 0 0 0 $opt{'defaults'} or $uri->un_path
698 0 0 0 $opt{'defaults'} or $uri->host
701 0 0 0 $uri->port || ($elements{'scheme'} eq 'ldaps' ? 636 : 389)
0 0 0 $opt{'defaults'} or $uri->port
705 0 0 0 $opt{'defaults'} or $uri->dn
0 0 0 $opt{'defaults'} or $uri->dn or $url =~ m[^ldap[is]?://[^/]*/]
708 0 0 0 $opt{'defaults'} or $uri->attributes
711 0 0 0 $opt{'defaults'} or $uri->_scope
714 0 0 0 $opt{'defaults'} or $uri->_filter
717 0 0 0 $opt{'defaults'} or $uri->extensions
864 0 0 8 $year < -1900 or $year > 8099