Condition Coverage

blib/lib/Yars/Client.pm
Criterion Covered Total %
condition 25 55 45.4


and 3 conditions

line !l l&&!r l&&r condition
263 0 0 0 $prev and $prev->code == 301
327 0 0 4 $filename and $md5
343 9 0 27 $bucket_map and ref $bucket_map eq 'HASH'
9 0 27 $bucket_map and ref $bucket_map eq 'HASH' and keys %$bucket_map > 0
345 0 0 9 $bucket_map and ref $bucket_map
0 0 9 $bucket_map and ref $bucket_map and keys %$bucket_map > 0
347 0 0 36 $bucket_map and ref $bucket_map
0 0 36 $bucket_map and ref $bucket_map and keys %$bucket_map > 0
406 0 20 0 defined $_[0] and $_[0] eq '--nostash'
413 18 0 2 defined $_[0] && $_[0] =~ /^[0-9a-f]+$/i
444 20 0 23 not $code and $host = shift @servers
471 0 1 19 $code and $tx->res->is_success

or 2 conditions

line l !l condition
72 3 10 $ENV{'YARS_CONNECT_TIMEOUT'} // 30
96 0 0 $ENV{'YARS_CONNECT_TIMEOUT'} // 30

or 3 conditions

line l !l&&r !l&&!r condition
215 12 0 0 $md5 or $abs_url
290 10 0 0 $md5 ||= _b642hex($res->headers->header('Content-MD5'))
362 2 0 0 shift() || join('', readline STDIN)
436 2 18 0 $md5 ||= digest_file_hex($filename, 'MD5')
488 1 1 0 $args{'name'} || $self->_rand_filename