Branch Coverage

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


line true false branch
24 0 0 unless ref $self
55 0 0 $$self{'monitor_has_run'} ? :
77 0 0 if ($now > $$self{'last_ping'} + $self->watchdog_timeout / 4)
88 0 0 unless (ref $self)
89 0 0 unless $self = 'MogileFS::ProcManager'->is_child
96 0 0 if defined $rv and $rv == $totallen
97 0 0 if $! and not $!{'EAGAIN'}
103 0 0 unless MogileFS::Util::wait_for_writeability(fileno $$self{'psock'}, 30)
107 0 0 if $! and not $!{'EAGAIN'}
108 0 0 if ($rv)
113 0 0 if $remain < 0
140 0 0 unless ($rv)
141 0 0 if (defined $rv) { }
148 0 0 if ($Mgd::POST_SLEEP_DEBUG)
158 0 0 if $self->process_generic_command(\$line)
160 0 0 unless ($ok)
173 0 0 if $MogileFS::Worker::got_live_vs_die
180 0 0 if $got_reply
184 0 0 if ($loops > 5)
186 0 0 if $loops > 20
197 0 0 unless $$lineref =~ /^:/
199 0 0 if ($$lineref =~ /^:shutdown/)
200 0 0 if $MogileFS::Worker::got_live_vs_die
204 0 0 if ($$lineref =~ /^:stay_alive/)
205 0 0 if $MogileFS::Worker::got_live_vs_die
209 0 0 if ($$lineref =~ /^:monitor_events/)
214 0 0 if ($$lineref =~ /^:monitor_has_run/)
219 0 0 if ($$lineref =~ /^:wake_up/)
224 0 0 if ($$lineref =~ /^:set_config_from_parent (\S+) (.+)/)
231 0 0 if ($$lineref =~ /^:queue_depth (\w+) (\d+)/)
237 0 0 if ($$lineref =~ /^:queue_todo (\w+) (.+)/)
252 0 0 unless @_
260 0 0 if @_
278 0 0 if ($$self{'last_wake'}{$class} || 0) == $now