Branch Coverage

blib/lib/AnyEvent/Task/Client/Checkout.pm
Criterion Covered Total %
branch 50 64 78.1


line true false branch
26 0 121 exists $arg{'client'}{'timeout'} ? :
6 121 exists $arg{'timeout'} ? :
28 3 124 if exists $arg{'log_defer_object'}
38 0 21 unless my $type = ref $self
61 128 14 unless (Callback::Frame::is_frame($request->[-1]))
64 16 112 if (defined $self->{'client'}{'name'} or defined $self->{'last_name'})
65 3 13 defined $self->{'client'}{'name'} ? :
67 15 1 defined $self->{'last_name'} ? :
72 16 112 if defined $name
74 128 0 unless Callback::Frame::is_frame($request->[-1])
90 0 276 unless defined $self->{'timeout'}
91 143 133 if exists $self->{'timeout_timer'}
98 0 3 if (exists $self->{'worker'})
114 13 4 if ($self->{'current_cb'}) { }
4 0 elsif (@{$self->{'pending_requests'};}) { }
124 17 0 if ($current_cb)
145 129 269 unless exists $self->{'worker'}
146 133 136 unless @{$self->{'pending_requests'};}
154 2 134 if ($self->{'fatal_error'})
161 117 17 unless (defined $method_name)
172 5 129 if ($self->{'log_defer_object'})
183 2 3 if ($self->{'log_defer_object'} and $meta->{'ld'})
187 123 9 if ($response_code eq 'ok') { }
9 0 elsif ($response_code eq 'er') { }
209 126 0 if $self->{'client'}
211 123 3 if (exists $self->{'worker'})
213 123 0 if $self->{'client'}
216 9 114 if ($self->{'fatal_error'} or $self->{'error_occurred'} and $self->{'client'} and not $self->{'client'}{'dont_refork_after_error'}) { }
217 9 0 if $self->{'client'}
218 9 0 if $self->{'client'}
221 114 0 if $self->{'client'}
222 114 0 if $self->{'client'}