Branch Coverage

blib/lib/MogileFS/Worker/Fsck.pm
Criterion Covered Total %
branch 0 106 0.0


line true false branch
57 0 0 unless @{$queue_todo;}
58 0 0 unless $self->validate_dbh
63 0 0 if ($fid->exists) { }
70 0 0 unless @fids
74 0 0 if (defined $alg and $alg eq 'off') { }
77 0 0 'MogileFS::Checksum'->valid_alg($alg) ? :
89 0 0 unless ($self->check_fid($fid))
119 0 0 unless ($sto->should_begin_replicating_fidid($fid->id))
124 0 0 unless ($fid->exists)
133 0 0 if ($recheck)
135 0 0 unless ($fixed)
143 0 0 unless (defined $fixed)
147 0 0 unless $fixed
155 0 0 unless ($fid->devids)
164 0 0 unless ($fid->devids_meet_policy)
176 0 0 if ($fid->class->hashtype and not $fid->checksum)
183 0 0 if $self->{'opt_nostat'}
185 0 0 if ($self->{'opt_checksum'} and $self->{'opt_checksum'} ne 'off')
194 0 0 unless (defined $disk_size)
198 0 0 if ($dev->dstate->is_perm_dead)
206 0 0 if $disk_size == $fid->length
212 0 0 if ($rv) { }
0 0 elsif ($err eq 'stalled') { }
0 0 elsif ($err eq 'needfix') { }
213 0 0 $fid->class->hashtype && !($self->{'opt_checksum'} && $self->{'opt_checksum'} eq 'off') ? :
234 0 0 if (&$cb($df, $size)) { }
278 0 0 if $already_checked{$dev->id}++
281 0 0 if ($dev->dstate->is_perm_dead)
287 0 0 unless defined $disk_size
289 0 0 if ($disk_size == $fid->length)
290 0 0 if ($alg and $alg ne 'off')
292 0 0 unless (defined $digest)
297 0 0 if ($digest eq '-1')
298 0 0 unless ($is_desperate_mode)
309 0 0 if $is_desperate_mode
315 0 0 unless ($is_desperate_mode)
316 0 0 if ($disk_size == -1) { }
331 0 0 unless (@good_devs)
343 0 0 unless (@good_devs)
361 0 0 if $alg and $alg ne 'off'
365 0 0 unless ($fid->devids_meet_policy)
421 0 0 unless my $alg = $fid->class->hashname
424 0 0 $cur_checksum ? :
435 0 0 if (scalar @all_checksums == 1) { }
0 0 elsif ($cur_checksum) { }
0 0 elsif ($self->{'opt_checksum'}) { }
437 0 0 if ($cur_checksum) { }
438 0 0 if ($cur_checksum->{'checksum'} ne $disk_checksum)
442 0 0 if ($alg ne $cur_checksum->hashname) { }
452 0 0 if ($hashtype) { }
470 0 0 if ($good and scalar @$good > 0) { }
494 0 0 if 'MogileFS::Config'->server_setting_cached('skip_devcount')
497 0 0 if scalar $fid->devids == $fid->devcount