Branch Coverage

blib/lib/Gearman/Util.pm
Criterion Covered Total %
branch 11 62 17.7


line true false branch
86 35 0 $c ? :
124 0 0 if $sock->connected
125 0 0 if ref $err_ref
145 0 0 if (defined $timeout)
148 0 0 if $time_remaining < 0
156 0 0 unless vec $rout, $fileno, 1
161 0 0 if (not defined $ok) { }
0 0 elsif ($ok == 0) { }
168 0 0 unless (defined $type)
169 0 0 unless length $buf >= 12
172 0 0 unless $magic eq "\000RES"
177 0 0 if ($readlen)
180 0 0 if (not defined $ok) { }
0 0 elsif ($ok == 0) { }
190 0 0 unless $type
191 0 0 unless index($type->[0], 'O') != -1
211 0 0 unless ($rv)
213 0 0 if $! == 11
216 0 0 unless defined $rv
217 0 0 unless $rv
219 0 0 unless ($rv >= $$readlen_ref)
243 0 1 if $sock->connected
244 1 0 if ref $err_ref
252 0 0 if $line =~ /^ERR (\w+) /
254 0 0 if ($line eq '.')
261 1 0 unless $complete
272 4 3 unless $sock
277 0 2 $rv && $rv == $len ? :
292 0 1 unless $fileno and $timeout
299 0 1 $nfound ? :
307 4 120 unless $key and $num{$key}