Branch Coverage

blib/lib/MogileFS/Util.pm
Criterion Covered Total %
branch 4 52 7.6


line true false branch
19 0 0 if ($worker = 'MogileFS::ProcManager'->is_child)
36 0 0 defined $explicit_sleep ? :
37 0 0 unless $sleep_for > 0
40 0 0 unless ($psock_fd)
48 0 0 if (wait_for_readability($psock_fd, $sleep_for))
53 0 0 if $worker->was_woken_up
63 0 0 unless $Mgd::DEBUG >= 1
64 0 0 if (my $worker = 'MogileFS::ProcManager'->is_child) { }
77 0 0 if (my $worker = 'MogileFS::ProcManager'->is_child) { }
111 0 0 unless UNIVERSAL::isa($ex, 'MogileFS::Exception')
119 0 0 if ($pid = fork)
122 0 0 unless $sess_id = POSIX::setsid()
127 0 0 if ($pid = fork)
135 0 0 if $MogileFS::DEBUG
143 0 0 if ($MogileFS::DEBUG) { }
171 100 100 if scalar @list == 1
179 100 76 if ($curval >= $val)
195 0 0 unless $fileno and $timeout >= 0
202 0 0 $nfound ? :
207 0 0 unless $fileno and $timeout
214 0 0 $nfound ? :
221 0 0 if ($path =~ m[^http://(.+?)(?::(\d+))?(/.+)$])
229 0 0 if $n1 > $n2
235 0 0 if $n1 < $n2
242 0 0 if &$code()
251 0 0 unless %left