line |
true |
false |
branch |
42
|
1 |
0 |
unless ref $self |
44
|
0 |
1 |
unless my $hostspec = delete $opts{'hostspec'} |
47
|
0 |
1 |
if (ref $hostspec eq 'GLOB') { } |
|
1 |
0 |
elsif (ref $hostspec and $hostspec->can('to_inprocess_server')) { } |
75
|
0 |
1 |
if %opts |
102
|
0 |
0 |
unless setsockopt $sock, 6, 1, "\cA\000\000\000" |
104
|
0 |
0 |
unless ($sock and defined fileno $sock) |
115
|
0 |
0 |
if ($@) |
121
|
0 |
0 |
unless $$self{'state'} == \'connecting' |
122
|
0 |
0 |
if $T_ON_TIMEOUT |
128
|
0 |
0 |
unless ($$self{'t_offline'}) |
136
|
1 |
0 |
if ($$self{'state'} == \'connecting') |
144
|
1 |
0 |
if $self->write(undef) |
157
|
0 |
1 |
unless (defined $input) |
158
|
0 |
0 |
if $self->stuff_outstanding |
171
|
0 |
0 |
if ($was_connecting and $$self{'t_offline'}) |
178
|
0 |
0 |
if $was_connecting |
195
|
0 |
0 |
if ($$self{'state'} != \'disconnected') |
218
|
0 |
2 |
unless $$self{'state'} == \'ready' |
247
|
0 |
0 |
if $task |
264
|
2 |
0 |
if ($$res{'type'} eq 'job_created') |
266
|
0 |
2 |
unless @{$$self{'need_handle'};} |
267
|
0 |
2 |
unless my $task = shift @{$$self{'need_handle'};} |
272
|
2 |
0 |
if ($task) |
279
|
0 |
0 |
if ($$res{'type'} eq 'work_fail') |
285
|
0 |
0 |
if ($$res{'type'} eq 'work_complete') |
286
|
0 |
0 |
unless ${$$res{'blobref'};} =~ s/^(.+?)\0// |
290
|
0 |
0 |
unless my $task_list = $$self{'waiting'}{$shandle} |
293
|
0 |
0 |
unless my $task = shift @$task_list |
298
|
0 |
0 |
unless (@$task_list) |
308
|
0 |
0 |
if ($$res{'type'} eq 'work_status') |
311
|
0 |
0 |
unless my $task_list = $$self{'waiting'}{$shandle} |
329
|
0 |
0 |
unless my $shandle = $$self{'task2handle'}{"$task"} |
330
|
0 |
0 |
unless my $task_list = $$self{'waiting'}{$shandle} |
332
|
0 |
0 |
unless (@$task_list) |
343
|
0 |
0 |
unless my $task_list = $$self{'waiting'}{$shandle} |
346
|
0 |
0 |
unless my $task = shift @$task_list |
350
|
0 |
0 |
unless (@$task_list) |
361
|
0 |
2 |
if ($$self{'state'} == \'ready') |
366
|
2 |
0 |
if $on_ready |
367
|
2 |
0 |
if $on_error |
369
|
0 |
2 |
if $$self{'state'} == \'disconnected' |
374
|
0 |
0 |
unless defined $val |
402
|
0 |
2 |
unless $$self{'_conn'} |
409
|
0 |
0 |
unless $$self{'_conn'} |