Branch Coverage

blib/lib/Gearman/Util.pm
Criterion Covered Total %
branch 11 66 16.6


line true false branch
83 39 0 $c ? :
123 0 0 if $sock->connected
124 0 0 if ref $err_ref
142 0 0 if (defined $timeout)
145 0 0 if $time_remaining < 0
148 0 0 unless $is->can_read($time_remaining)
153 0 0 if (not defined $ok) { }
0 0 elsif ($ok == 0) { }
160 0 0 unless (defined $type)
161 0 0 unless length $buf >= 12
164 0 0 unless $magic eq "\000RES"
169 0 0 if ($readlen)
172 0 0 if (not defined $ok) { }
0 0 elsif ($ok == 0) { }
182 0 0 unless $type
183 0 0 unless index($type->[0], 'O') != -1
203 0 0 unless ($rv)
205 0 0 if $! == 11
208 0 0 unless defined $rv
209 0 0 unless $rv
211 0 0 unless ($rv >= $$readlen_ref)
235 0 1 if $sock->connected
236 1 0 if ref $err_ref
240 1 0 unless $sock->connected
245 0 0 if $line =~ /^ERR (\w+) /
247 0 0 if ($line eq '.')
254 0 0 unless $complete
265 4 3 unless $sock
274 2 0 if (not defined $written) { }
0 0 elsif ($written > 0) { }
302 0 1 unless $fileno and $timeout
309 0 1 $nfound ? :
317 4 133 unless $key and $num{$key}