Branch Coverage

blib/lib/IOMux/HTTP.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
57 0 0 unless ($msg)
58 0 0 if ($$self{'IMH_no_more'})
65 0 0 unless $$refdata =~ s/(.*?)\r?\n\r?\n//s
79 0 0 unless $proto
82 0 0 if $msg->protocol lt 'HTTP/1.1' or lc($headers->header('Connection') || '') ne 'keep-alive'
86 0 0 if $proto lt 'HTTP/1.0'
90 0 0 if $$self{'IMH_take_all'}
94 0 0 unless my $result = $self->bodyComponentArrived($msg, $refdata)
97 0 0 $result->isa('HTTP::Response') ? :
99 0 0 if $$self{'IMH_no_more'}
108 0 0 unless my $more = (shift())->{'IMH_more_output'}
117 0 0 if ($msg and length $$refdata and $$self{'IMH_take_all'}) { }
121 0 0 if $$refdata =~ /\S/
125 0 0 if $msg
135 0 0 if (my $cl = $headers->header('Content-Length'))
136 0 0 if length $$refdata < $cl
143 0 0 if ($ct =~ m[^multipart/\w+\s*;.*boundary\s*=(["']?)\s*(\w+)\1]i)
144 0 0 unless $$refdata =~ s/(.*?\r?\n--\Q$2\E--\r?\n)//
162 0 0 if ($self->mux_output_waiting or $$self{'IMH_more_output'})
175 0 0 unless my $queued = shift @{$$self{'IMH_queued'};}
190 0 0 $$self{'IMH_no_more'} ? :
194 0 0 if (ref $content eq 'CODE') { }
200 0 0 unless (defined $chunk)
207 0 0 unless length $chunk
220 0 0 $msg->isa('HTTP::Request') ? :