line |
true |
false |
branch |
164
|
8 |
0 |
unless (ref $self) |
177
|
0 |
8 |
if exists $opts{'exceptions'} |
180
|
0 |
8 |
if defined $opts{'backoff_max'} |
183
|
0 |
8 |
if defined $opts{'command_timeout'} |
213
|
0 |
0 |
unless @$list |
216
|
0 |
0 |
unless grep {$_ eq $hostport;} @{$$self{'job_servers'};} |
218
|
0 |
0 |
unless my $sock = $self->_get_js_sock($hostport) |
225
|
0 |
0 |
if ($err) |
254
|
0 |
0 |
unless ($line =~ /^(\S+)\s+(\d+)\s+(\d+)\s+(\d+)$/) |
287
|
0 |
0 |
unless $line =~ /^(\S+)\s+(\S*)\s+(\S+)\s+(\d+)$/ |
317
|
0 |
0 |
if ($line =~ /^(\S+)$/) { } |
|
0 |
0 |
elsif ($client and $line =~ /^\s+(\S+)\s+(\S*)\s+(\S+)$/) { } |
341
|
1 |
2 |
if (ref $_[0]) { } |
343
|
0 |
1 |
unless $task->isa('Gearman::Task') |
350
|
0 |
2 |
ref $arg_p ? : |
351
|
0 |
2 |
unless ref $argref eq 'SCALAR' |
389
|
0 |
0 |
$did_err ? : |
420
|
0 |
1 |
unless $hookname |
423
|
0 |
1 |
unless $hook |
427
|
0 |
1 |
if $@ |
438
|
0 |
2 |
unless $hookname |
440
|
1 |
1 |
if (@_) { } |
460
|
0 |
0 |
unless $handle |
470
|
0 |
0 |
unless grep {$hostport eq $_;} @{$$self{'job_servers'};} |
472
|
0 |
0 |
unless my $sock = $self->_get_js_sock($hostport) |
481
|
0 |
0 |
if ($res and $res->{'type'} eq 'error') |
486
|
0 |
0 |
unless $res and $res->{'type'} eq 'status_res' |
491
|
0 |
0 |
unless $args[0] |
513
|
0 |
0 |
unless $res |
515
|
0 |
0 |
if $res->{'type'} eq 'error' |
516
|
0 |
0 |
if $res->{'type'} eq 'option_res' |
531
|
0 |
0 |
if (my $sock = delete $self->{'sock_cache'}{$hostport}) |
532
|
0 |
0 |
if $sock->connected |
537
|
0 |
0 |
if defined $disabled_until and $disabled_until > &Time::HiRes::time() |
540
|
0 |
0 |
unless ($sock) |
544
|
0 |
0 |
$disable_for > $max ? : |
554
|
0 |
0 |
if ($self->{'exceptions'} and not $self->_option_request($sock, 'exceptions')) |
580
|
10 |
0 |
unless $self->{'js_count'} |
591
|
0 |
0 |
unless my $sock = &$getter($hostport) |