Condition Coverage

blib/lib/Perlbal/ClientProxy.pm
Criterion Covered Total %
condition 68 113 60.1


and 3 conditions

line !l l&&!r l&&r condition
173 2 15 0 $primary_res_hdrs and my $expected_size = $primary_res_hdrs->header('X-REPROXY-EXPECTED-SIZE')
268 0 1 15 $code >= 200 and $code <= 299
325 6 0 0 defined $$self{'reproxy_expected_size'} and $$self{'reproxy_expected_size'} != $size
554 56 86 0 defined $$self{'content_length_remain'} && $$self{'content_length_remain'} > 0
586 6 0 0 $$self{'backend_stalled'} and my $backend = $$self{'backend'}
638 1 39 89 $remain and $remain < $read_size
669 0 43 84 defined $$self{'content_length_remain'} && $$self{'content_length_remain'} <= 0
678 0 0 0 $cl and $remain
0 0 0 $cl and $remain and ($$self{'last_upload_packet'} || 0) != $now
745 29 6 6 not $done_reading and $$self{'read_ahead'} < $$self{'service'}{'buffer_backend_connect'}
749 29 4 2 $$self{'service'}{'buffer_uploads'} and $self->decide_to_buffer_to_disk
788 54 86 1 defined $length and $length < 0
799 142 0 0 $$svc{'upload_status_listeners'} and $self->handle_upload_tracking
807 55 24 61 $$self{'content_length_remain'} and $$self{'service'}{'buffer_backend_connect'}
820 49 24 6 $$svc{'reproxy_cache'} and $self->satisfy_request_from_cache
830 141 0 2 $te and $te eq 'chunked'
836 1 0 1 $eh and $eh =~ /\b100-continue\b/
852 0 12 0 $max_size and $$self{'request_body_length'} > $max_size
970 29 5 27 $$self{'service'}{'buffer_uploads'} and $$self{'service'}{'buffer_upload_threshold_size'}
1009 4 1 1 $$self{'service'}{'buffer_upload_threshold_rate'} > 0 and $rate < $$self{'service'}{'buffer_upload_threshold_rate'}
1016 4 1 1 $$self{'service'}{'buffer_upload_threshold_time'} > 0 and $etime > $$self{'service'}{'buffer_upload_threshold_time'}
1068 0 0 38 $self and $be
1100 0 62 90 $$self{'is_buffering'} and $$self{'read_ahead'}
1173 0 22 27 $$self{'read_ahead'} <= 0 and $$self{'content_length_remain'} <= 0
1175 12 0 0 $$self{'unread_data_waiting'} and $$self{'read_ahead'} < 1048576
1180 0 12 0 $$self{'read_ahead'} == 0 and $$self{'chunked_upload_state'}->hit_zero_chunk
1220 29 0 0 $_[0] != 0 and $!

or 2 conditions

line l !l condition
157 17 0 $2 || 80
17 0 $3 || '/'
678 0 0 $$self{'last_upload_packet'} || 0
879 30 0 $req_hd->request_uri || ''
880 0 30 $req_hd->header('Host') || ''
895 4 0 $headers{$lm_key} || ''
1001 6 0 tv_interval($$self{'start_time'}) || 1

or 3 conditions

line l !l&&r !l&&!r condition
148 2 15 0 $$self{'primary_res_hdrs'} ||= $primary_res_hdrs
278 1 0 15 &$bad_code() or &$bad_size()
368 0 0 6 $$self{'req_headers'}->request_method eq 'HEAD' or $not_satisfiable
611 97 40 4 $$self{'is_buffering'} or $$self{'read_ahead'} < 32768
681 0 0 0 $udp_sock ||= 'IO::Socket::INET'->new('Proto', 'udp')
1145 22 12 27 $$self{'content_length_remain'} or $$self{'chunked_upload_state'}