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
256 0 0 0 $prev and $prev->code == 301
320 0 0 4 $filename and $md5
336 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
338 0 0 9 $bucket_map and ref $bucket_map
0 0 9 $bucket_map and ref $bucket_map and keys %$bucket_map > 0
340 0 0 36 $bucket_map and ref $bucket_map
0 0 36 $bucket_map and ref $bucket_map and keys %$bucket_map > 0
399 0 20 0 defined $_[0] and $_[0] eq '--nostash'
406 18 0 2 defined $_[0] && $_[0] =~ /^[0-9a-f]+$/i
437 20 0 23 not $code and $host = shift @servers
464 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
208 12 0 0 $md5 or $abs_url
283 10 0 0 $md5 ||= _b642hex($res->headers->header('Content-MD5'))
355 2 0 0 shift() || join('', readline STDIN)
429 2 18 0 $md5 ||= digest_file_hex($filename, 'MD5')
481 1 1 0 $args{'name'} || $self->_rand_filename