Branch Coverage

blib/lib/RPC/ExtDirect/Client/Async.pm
Criterion Covered Total %
branch 43 60 71.6


line true false branch
93 2 0 'ARRAY' eq ref $@ ? :
2 45 if ($@)
127 1 11 if ($api) { }
131 1 0 if $cv
136 1 0 if $api_cb
138 1 0 if $cv
154 10 1 if ($success) { }
162 2 9 if $self->api_cb
192 1 10 unless ($success)
193 1 0 if ($status ne '200') { }
0 0 elsif (not $content_length) { }
202 11 0 if $cv
213 11 0 if $cv
283 1 44 unless $api_success
287 8 36 $type eq 'poll' ? :
297 25 19 if (my $xcpt = $@)
298 25 0 'ARRAY' eq ref $xcpt ? :
324 0 45 if (my $fatal_exception = $self->exception) { }
22 23 elsif ($self->api_ready) { }
356 8 13 if ($$to{'headers'} and my $cookies = $$to{'headers'}{'Cookie'})
376 0 19 unless $success
381 19 0 if $success
389 0 19 'ARRAY' eq ref $@ ? :
391 0 19 if $error
394 11 0 'HASH' eq ref $response ? :
8 11 'poll' eq $type ? :
417 2 45 if 'CODE' ne ref $cb and not $cb && $cb->isa('AnyEvent::CondVar')
434 17 28 if $cv
443 45 0 if $cb
444 17 28 if $cv