Branch Coverage

blib/lib/MogileFS/Util.pm
Criterion Covered Total %
branch 5 66 7.5


line true false branch
41 0 0 if ($type eq 'srvset')
42 0 0 $mode eq 'set' ? :
48 0 0 if ($mode eq 'setstate') { }
0 0 elsif ($mode eq 'set') { }
0 0 elsif ($mode eq 'remove') { }
54 0 0 $old ? :
57 0 0 if $old
65 0 0 if ($worker = 'MogileFS::ProcManager'->is_child)
82 0 0 defined $explicit_sleep ? :
85 0 0 unless ($psock_fd)
90 0 0 if $sleep_for > 0
100 0 0 unless $Mgd::DEBUG >= 1
102 0 0 if (my $worker = 'MogileFS::ProcManager'->is_child) { }
115 0 4 if (my $worker = 'MogileFS::ProcManager'->is_child) { }
149 0 0 unless UNIVERSAL::isa($ex, 'MogileFS::Exception')
157 0 0 if ($pid = fork)
160 0 0 unless $sess_id = POSIX::setsid()
165 0 0 if ($pid = fork)
173 0 0 if $MogileFS::DEBUG
181 0 0 if ($MogileFS::DEBUG) { }
209 123 129 if scalar @list == 1
217 129 94 if ($curval >= $val)
233 0 0 unless $fileno and $timeout >= 0
240 0 0 $nfound ? :
245 0 0 unless $fileno and $timeout
252 0 0 $nfound ? :
257 0 0 if $n1 > $n2
263 0 0 if $n1 < $n2
270 0 0 if &$code()
279 0 0 unless %left
289 0 0 defined $_[0] ? :
302 0 0 ref $a ? :
315 0 0 $ret->{$name} ? :