Condition Coverage

blib/lib/MogileFS/Worker/Replicate.pm
Criterion Covered Total %
condition 0 105 0.0


and 3 conditions

line !l l&&!r l&&r condition
170 0 0 0 $dev->can_delete_from and $dev->should_read_from
327 0 0 0 $errcode and $errcode eq 'failed_getting_lock'
367 0 0 0 $d->dstate->should_have_files and not $$mask_devids{$devid}
378 0 0 0 $fixed_source and not grep({$_ == $fixed_source;} @on_up_devid)
462 0 0 0 $fixed_source and grep {$_ == $fixed_source;} @choices
492 0 0 0 $fixed_source and $fixed_source == $sdevid
504 0 0 0 $digest and not $fid->checksum
578 0 0 0 $fid_checksum and $fid_checksum->hashname eq 'MD5'
613 0 0 0 $sdev and $ddev
627 0 0 0 defined $spath and defined $dpath
0 0 0 defined $spath and defined $dpath and defined $shostip
0 0 0 defined $spath and defined $dpath and defined $shostip and defined $dhostip
0 0 0 defined $spath and defined $dpath and defined $shostip and defined $dhostip and $sport
0 0 0 defined $spath and defined $dpath and defined $shostip and defined $dhostip and $sport and $dport
669 0 0 0 $sconn->retryable and $stries == 1
676 0 0 0 $sconn->retryable and $stries == 1
679 0 0 0 $$sres{'code'} >= 200 and $$sres{'code'} <= 299
694 0 0 0 $dconn->retryable and $dtries == 1
725 0 0 0 not $wcount and $dconn->retryable
0 0 0 not $wcount and $dconn->retryable and $dtries == 1
762 0 0 0 not $wcount and $dconn->retryable
0 0 0 not $wcount and $dconn->retryable and $dtries == 1
789 0 0 0 $$dres{'code'} >= 200 and $$dres{'code'} <= 299
793 0 0 0 $$ddev{'reject_bad_md5'} and $alg eq 'MD5'

or 2 conditions

line l !l condition
182 0 0 $backoff[$$todo{'failcount'}] || 86400
190 0 0 $opts ||= {}
302 0 0 delete $opts{'mask_devids'} || {}
303 0 0 delete $opts{'avoid_devids'} || {}
304 0 0 delete $opts{'target_devids'} || []
586 0 0 $intercopy_cb ||= sub { }

or 3 conditions

line l !l&&r !l&&!r condition
37 0 0 0 @$queue_todo or @$queue_todo2
218 0 0 0 $ret or $errcode eq 'too_happy'
225 0 0 0 $errcode eq 'too_happy' or $ret eq 'lost_race'
407 0 0 0 $$mask_devids{$_} || $$avoid_devids{$_}
475 0 0 0 $digest ||= 'Digest'->new($cls->hashname)
485 0 0 0 $rv or $copy_err =~ /^(?:src|dest)_error$/
791 0 0 0 $fid_checksum && $fid_checksum->hashname || $fid->class->hashname