Branch Coverage

blib/lib/WWW/Docker/Role/HTTP.pm
Criterion Covered Total %
branch 2 102 1.9


line true false branch
67 0 0 if ($host =~ m[^unix://(.+)$]) { }
0 0 elsif ($host =~ m[^tcp://([^:]+):(\d+)$]) { }
74 0 0 unless $sock
85 0 0 unless $sock
103 0 0 defined $version ? :
107 0 0 if ($opts{'raw_body'}) { }
0 0 elsif ($opts{'body'}) { }
115 0 0 if ($opts{'params'})
119 0 0 unless defined $v
120 0 0 if (ref $v eq "HASH")
125 0 0 if @pairs
135 0 0 if ($body_content)
141 0 0 if $body_content
154 0 0 if ($status_code >= 400)
156 0 0 if ($body and $body =~ /^\s*[\{\[]/)
165 0 0 if ($status_code == 204 or not defined $body or $body eq "")
169 0 0 if ($body =~ /^\s*[\{\[]/)
171 0 0 if defined $result
177 0 0 unless $line =~ /\S/
179 0 0 if defined $obj
181 0 0 if @objects
192 0 0 unless defined $status_line
201 0 0 if $line eq ""
202 0 0 if ($line =~ /^([^:]+):\s*(.*)$/)
209 0 0 if ($headers{'transfer-encoding'} and $headers{'transfer-encoding'} eq 'chunked') { }
0 0 elsif (defined $headers{'content-length'}) { }
214 0 0 if ($len > 0)
219 0 0 unless $n
240 0 0 unless defined $chunk_header
243 0 0 if $chunk_size == 0
250 0 0 unless $n
287 0 0 unless my $callback = delete $opts{'callback'}
290 0 0 defined $version ? :
292 0 0 if ($opts{'params'})
296 0 0 unless defined $v
297 0 0 if (ref $v eq "HASH")
300 0 0 if @pairs
316 0 0 unless defined $status_line
324 0 0 if $line eq ""
325 0 0 if ($line =~ /^([^:]+):\s*(.*)$/)
330 0 0 if ($status_code >= 400)
340 0 0 if ($chunked) { }
343 0 0 unless defined $chunk_header
346 0 0 if $chunk_size == 0
353 0 0 unless $n
360 0 0 unless $line =~ /\S/
362 0 0 if defined $obj
369 0 0 unless $line =~ /\S/
371 0 0 if defined $obj
398 5 6 if defined $body
414 0 0 if defined $body