Branch Coverage

blib/lib/Gearman/Util.pm
Criterion Covered Total %
branch 11 64 17.1


line true false branch
87 35 0 $c ? :
127 0 0 if $sock->connected
128 0 0 if ref $err_ref
146 0 0 if (defined $timeout)
149 0 0 if $time_remaining < 0
152 0 0 unless $is->can_read($time_remaining)
157 0 0 if (not defined $ok) { }
0 0 elsif ($ok == 0) { }
164 0 0 unless (defined $type)
165 0 0 unless length $buf >= 12
168 0 0 unless $magic eq "\000RES"
173 0 0 if ($readlen)
176 0 0 if (not defined $ok) { }
0 0 elsif ($ok == 0) { }
186 0 0 unless $type
187 0 0 unless index($type->[0], 'O') != -1
207 0 0 unless ($rv)
209 0 0 if $! == 11
212 0 0 unless defined $rv
213 0 0 unless $rv
215 0 0 unless ($rv >= $$readlen_ref)
239 0 1 if $sock->connected
240 1 0 if ref $err_ref
248 0 0 if $line =~ /^ERR (\w+) /
250 0 0 if ($line eq '.')
257 1 0 unless $complete
268 4 3 unless $sock
277 2 0 if (not defined $written) { }
0 0 elsif ($written > 0) { }
305 0 1 unless $fileno and $timeout
312 0 1 $nfound ? :
320 4 118 unless $key and $num{$key}