Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
171 0 0 0 $dev->can_delete_from and $dev->should_read_from
334 0 0 0 $errcode and $errcode eq 'failed_getting_lock'
374 0 0 0 $d->dstate->should_have_files and not $mask_devids->{$devid}
385 0 0 0 $fixed_source and not grep({$_ == $fixed_source;} @on_up_devid)
469 0 0 0 $fixed_source and grep {$_ == $fixed_source;} @choices
499 0 0 0 $fixed_source and $fixed_source == $sdevid
511 0 0 0 $digest and not $fid->checksum
597 0 0 0 $fid_checksum and $fid_checksum->hashname eq 'MD5'
632 0 0 0 $sdev and $ddev
646 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
688 0 0 0 $sconn->retryable and $stries == 1
695 0 0 0 $sconn->retryable and $stries == 1
698 0 0 0 $sres->{'code'} >= 200 and $sres->{'code'} <= 299
713 0 0 0 $dconn->retryable and $dtries == 1
753 0 0 0 not $wcount and $dconn->retryable
0 0 0 not $wcount and $dconn->retryable and $dtries == 1
790 0 0 0 not $wcount and $dconn->retryable
0 0 0 not $wcount and $dconn->retryable and $dtries == 1
823 0 0 0 $dres->{'code'} >= 200 and $dres->{'code'} <= 299
827 0 0 0 $ddev->{'reject_bad_md5'} and $alg eq 'MD5'

or 2 conditions

line l !l condition
189 0 0 $backoff[$todo->{'failcount'}] || 86400
197 0 0 $opts ||= {}
309 0 0 delete $opts{'mask_devids'} || {}
310 0 0 delete $opts{'avoid_devids'} || {}
311 0 0 delete $opts{'target_devids'} || []
605 0 0 $intercopy_cb ||= sub { }
796 0 0 $dres->{'len'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
38 0 0 0 @$queue_todo or @$queue_todo2
225 0 0 0 $ret or $errcode eq 'too_happy'
232 0 0 0 $errcode eq 'too_happy' or $ret eq 'lost_race'
415 0 0 0 $mask_devids->{$_} || $avoid_devids->{$_}
482 0 0 0 $digest ||= 'Digest'->new($cls->hashname)
492 0 0 0 $rv or $copy_err =~ /^(?:src|dest)_error$/
549 0 0 0 $!{'EAGAIN'} or $!{'EINTR'}
729 0 0 0 $!{'EAGAIN'} or $!{'EINTR'}
825 0 0 0 $fid_checksum && $fid_checksum->hashname || $fid->class->hashname