| line |
true |
false |
branch |
|
74
|
1 |
4 |
unless &Scalar::Util::blessed($client) and $client->isa('Gearman::Client') |
|
78
|
4 |
0 |
unless (ref $self) |
|
96
|
0 |
3 |
unless $self->{'client'} |
|
98
|
0 |
3 |
if ($self->{'default_sock'}) |
|
116
|
2 |
1 |
unless $name and $self->{'hooks'}{$name} |
|
120
|
0 |
1 |
if $@ |
|
131
|
0 |
2 |
unless $name |
|
133
|
1 |
1 |
if ($cb) { } |
|
167
|
1 |
0 |
if ($self->{'default_sock'}) |
|
189
|
0 |
0 |
if (my $sock = $self->{'loaned_sock'}{$js_str}) |
|
190
|
0 |
0 |
if $sock->connected |
|
208
|
0 |
0 |
if (exists $opts{'timeout'}) |
|
210
|
0 |
0 |
if defined $timeout |
|
213
|
0 |
0 |
if keys %opts |
|
224
|
0 |
0 |
unless $sock |
|
225
|
0 |
0 |
if (my $fd = $sock->fileno) |
|
232
|
0 |
0 |
$timeout ? : |
|
236
|
0 |
0 |
if ($timeout and $time_left <= 0) |
|
240
|
0 |
0 |
unless $nfound |
|
243
|
0 |
0 |
unless vec $rout, $fd, 1 |
|
254
|
0 |
0 |
if ($@) |
|
282
|
2 |
0 |
unless $jssock |
|
288
|
0 |
0 |
unless $rv == $len |
|
295
|
0 |
0 |
unless ($rv) |
|
300
|
0 |
0 |
defined $rv ? : |
|
317
|
0 |
10 |
if $self->{'default_sock'} |
|
326
|
10 |
0 |
unless $jss |
|
372
|
0 |
0 |
$res ? : |
|
382
|
1 |
0 |
unless $sock |
|
385
|
0 |
0 |
unless $pn |
|
390
|
0 |
0 |
unless $s |
|
391
|
0 |
0 |
if ($sock == $s) |
|
398
|
0 |
0 |
if $hostport |
|
401
|
0 |
0 |
$fam == 10 ? : |
|
418
|
1 |
3 |
unless $shandle |
|
421
|
3 |
0 |
unless my $task_list = $self->{'waiting'}{$shandle} |
|
425
|
0 |
0 |
unless $task and ref $task eq 'Gearman::Task' |
|
430
|
0 |
0 |
unless @$task_list |
|
440
|
2 |
7 |
if ($res->{'type'} eq 'job_created') |
|
442
|
1 |
1 |
unless $task and ref $task eq 'Gearman::Task' |
|
448
|
1 |
0 |
unless ($ipport) |
|
454
|
0 |
0 |
if $task->{'background'} |
|
459
|
1 |
6 |
if ($res->{'type'} eq 'work_fail') |
|
467
|
2 |
4 |
if ($res->{'type'} eq 'work_complete') |
|
468
|
1 |
1 |
unless ${$res->{'blobref'};} =~ /^$qr/ |
|
473
|
1 |
0 |
unless my $task_list = $self->{'waiting'}{$shandle} |
|
478
|
0 |
0 |
unless $task and ref $task eq 'Gearman::Task' |
|
483
|
0 |
0 |
unless @$task_list |
|
488
|
2 |
2 |
if ($res->{'type'} eq 'work_exception') |
|
493
|
1 |
1 |
unless ${$res->{'blobref'};} =~ /^$qr/ |
|
498
|
1 |
0 |
unless my $task_list = $self->{'waiting'}{$shandle} |
|
503
|
0 |
0 |
unless $task and ref $task eq 'Gearman::Task' |
|
512
|
1 |
1 |
if ($res->{'type'} eq 'work_status') |
|
515
|
1 |
0 |
unless my $task_list = $self->{'waiting'}{$shandle} |