Branch Coverage

blib/lib/LWP/Protocol/UWSGI.pm
Criterion Covered Total %
branch 0 138 0.0


line true false branch
56 0 0 unless ($method =~ /^[A-Za-z0-9_!\#\$%&\'*+\-.^\`|~]+$/)
63 0 0 unless ($$url =~ m[^uwsgi://([^/?\#:]+)(?:\:(\d+))/])
68 0 0 $proxy ? :
76 0 0 $proxy ? :
0 0 $method eq 'CONNECT' ? :
78 0 0 unless $path =~ m[^/]
85 0 0 if ($conn_cache)
87 0 0 if ($socket = $conn_cache->withdraw($self->socket_type, $cache_key))
88 0 0 if ($socket->can_read(0))
98 0 0 unless ($socket)
117 0 0 if ref $$content_ref
121 0 0 if (ref $content_ref eq 'CODE') { }
123 0 0 if $clen
124 0 0 unless (defined $clen)
133 0 0 if (defined $$content_ref and length $$content_ref) { }
0 0 elsif ($clen) { }
135 0 0 if (not defined $clen or $clen ne $has_content)
136 0 0 if (defined $clen)
150 0 0 $fullpath =~ /^[^?]+\?(.+)$/ ? :
152 0 0 defined $request_headers->header('Content-Length') ? :
153 0 0 $method =~ /post/i ? :
162 0 0 if ($request->header('X-UWSGI-Nginx-Compatible-Mode'))
170 0 0 defined $h{$k} ? :
175 0 0 unless defined $env->{$k}
185 0 0 if (not $has_content or $has_content > 8192)
191 0 0 unless (defined $n)
192 0 0 if $!{'EINTR'}
193 0 0 if ($!{'EWOULDBLOCK'} or $!{'EAGAIN'})
199 0 0 if ($n) { }
205 0 0 if length $req_buf
212 0 0 if ($has_content)
217 0 0 if (ref $content_ref eq 'CODE') { }
219 0 0 unless defined $buf
220 0 0 if $chunked
222 0 0 if $req_buf
226 0 0 if ($req_buf) { }
243 0 0 if $sel_timeout
251 0 0 if ($nfound < 0)
252 0 0 if ($!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'})
253 0 0 if ($time_before)
255 0 0 if $sel_timeout < 0
263 0 0 if (defined $rbits and $rbits =~ /[^\0]/)
267 0 0 if (not defined $n) { }
0 0 elsif ($n == 0) { }
268 0 0 unless $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
280 0 0 if (not $code and $buf =~ /\015?\012\015?\012/)
283 0 0 if ($code eq '100') { }
294 0 0 if (defined $wbits and $wbits =~ /[^\0]/)
296 0 0 if (not defined $n) { }
0 0 elsif ($n == 0) { }
297 0 0 unless $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
305 0 0 if (not $eof and $woffset >= length $$wbuf)
308 0 0 unless defined $buf
309 0 0 unless length $buf
310 0 0 if $chunked
320 0 0 unless $code
322 0 0 if $code eq '100'
332 0 0 if @junk
337 0 0 if ($method eq 'CONNECT')
342 0 0 if (my(@te) = $response->remove_header('Transfer-Encoding'))
354 0 0 unless (defined $n)
355 0 0 if $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'} or $!{'ENOTTY'}
358 0 0 if $n == -1
360 0 0 unless $n
363 0 0 unless $complete
366 0 0 if (@h)
372 0 0 unless ($drop_connection)
373 0 0 if ($cache_key)
376 0 0 if ($peer_http_version eq '1.1' and not $connection{'close'} or $connection{'keep-alive'})