Branch Coverage

blib/lib/MogileFS/Worker/Delete.pm
Criterion Covered Total %
branch 0 80 0.0


line true false branch
36 0 0 unless $self->validate_dbh
44 0 0 if (Mgd::get_store()->get_lock($lock, 0))
49 0 0 if (time > $old_queue_check)
53 0 0 if ($delres) { }
57 0 0 if $old_queue_backoff > 360
59 0 0 unless $old_queue_backoff > 1800
66 0 0 if (not $tempres || $delres || $delres2) { }
67 0 0 if $sleep_for < $sleep_max
82 0 0 if $Mgd::DEBUG >= 2
92 0 0 if $httpcode >= 200 and $httpcode <= 299 or $httpcode == 404
128 0 0 unless $tempfiles and @$tempfiles
140 0 0 if ($fid->exists)
148 0 0 unless ($devids =~ /^(\d+)(,\d+)*$/)
158 0 0 unless @fidids
174 0 0 unless (@$queue_todo)
188 0 0 unless ($sto->should_begin_replicating_fidid($fidid))
200 0 0 $devid ? :
201 0 0 if $Mgd::DEBUG >= 2
202 0 0 unless ($dev)
205 0 0 if ($dev->dstate->is_perm_dead)
212 0 0 unless ($dev->observed_writeable)
219 0 0 unless ($dev->can_delete_from)
231 0 0 unless ($path)
236 0 0 if ($self->delete_devfid($dfid)) { }
249 0 0 unless (keys %devids)
269 0 0 $delmap ? :
270 0 0 unless $count
274 0 0 if ++$done > 100
278 0 0 if $Mgd::DEBUG >= 2
291 0 0 if $dbh->err
299 0 0 if $Mgd::DEBUG >= 2
310 0 0 unless (defined $devid)
318 0 0 $devid ? :
319 0 0 unless ($dev)
323 0 0 if ($dev->dstate->is_perm_dead)
329 0 0 unless ($dev->observed_writeable)
335 0 0 unless ($dev->can_delete_from)
346 0 0 unless ($path)
351 0 0 if ($self->delete_devfid($dfid)) { }
369 0 0 unless my(@fidids) = $sto->fids_to_delete_again