Condition Coverage

blib/lib/Cache/Memcached.pm
Criterion Covered Total %
condition 25 123 20.3


and 3 conditions

line !l l&&!r l&&r condition
223 0 0 2 not $ret and $timeout
0 0 2 not $ret and $timeout and $! == 115
231 1 0 0 not $ret and $! == 106
257 2 0 1 $host_dead{$host} and $host_dead{$host} > $now
267 0 2 0 $self and $$self{'pref_ip'}{$ip}
269 0 0 0 $Cache::Memcached::HAVE_SOCKET6 and index($prefip, ':') != -1
293 2 0 0 $Cache::Memcached::HAVE_SOCKET6 and index($ip, ':') != -1
418 7 0 0 not defined $res and $! == 11
433 7 0 0 not defined $res and $! == 11
470 0 0 0 defined $res && $res eq "DELETED\r\n"
520 0 0 0 $$self{'compress_threshold'} and $Cache::Memcached::HAVE_ZLIB
0 0 0 $$self{'compress_threshold'} and $Cache::Memcached::HAVE_ZLIB and $$self{'compress_enable'}
0 0 0 $$self{'compress_threshold'} and $Cache::Memcached::HAVE_ZLIB and $$self{'compress_enable'} and $len >= $$self{'compress_threshold'}
0 0 0 $$self{'compress_threshold'} and $Cache::Memcached::HAVE_ZLIB and $$self{'compress_enable'} and $len >= $$self{'compress_threshold'} and not $app_or_prep
541 0 0 0 $$self{'debug'} and $line
551 0 0 0 defined $res && $res eq "STORED\r\n"
582 0 0 0 defined $res and $res =~ /^(\d+)/
720 0 0 0 $Cache::Memcached::HAVE_ZLIB and $flags & 2
772 0 0 0 not defined $res and $! == 11
854 4 2 1 scalar @res == 1 and ($res[0] || '') eq "OK\r\n"
942 0 0 0 $typename eq 'misc' and $key
0 0 0 $typename eq 'misc' and $key and $misc_keys{$key}
944 0 0 0 $typename eq 'malloc' and $key
969 0 0 0 defined $ok and $ok eq "RESET\r\n"

or 2 conditions

line l !l condition
75 0 2 $$args{'debug'} || 0
78 0 2 $$args{'pref_ip'} || {}
81 0 2 $$args{'stat_callback'} || undef
86 0 2 $$args{'connect_timeout'} || 0.25
87 0 2 $$args{'select_timeout'} || 1
88 1 1 $$args{'namespace'} || ''
102 2 0 $list || []
132 0 0 $dbg || 0
390 0 7 $check_complete ||= sub { return rindex($ret, "\r\n") + 2 == length $ret; }
534 0 0 $exptime || 0
854 3 0 $res[0] || ''
951 0 0 $$stats_hr{'hosts'}{$host}{$typename} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
83 0 2 0 $$args{'parser_class'} || $parser_class
262 0 2 0 $PROTO_TCP ||= getprotobyname 'tcp'
454 0 0 0 not $$self{'active'} or $$self{'readonly'}
498 0 0 2 not $$self{'active'} or $$self{'readonly'}
505 0 0 0 $cmdname eq 'append' || $cmdname eq 'prepend'
566 0 0 0 not $$self{'active'} or $$self{'readonly'}
644 0 0 0 $$self{'buck2sock'}[$bucket] || $self->sock_to_host($$self{'buckets'}[$bucket])
798 0 0 0 %reading or %writing
880 0 0 0 not ref $types or ref $types eq 'ARRAY'