Branch Coverage

blib/lib/IO/Stream/HTTP/Persistent.pm
Criterion Covered Total %
branch 19 40 47.5


line true false branch
35 6 0 unless (@p)
38 0 6 unless $TAGS{$1}
6 0 /\A:(\w+)\z/msx ? :
42 0 24 unless $KNOWN{$const}
106 6 0 if ($$self{'out_buf'} =~ /\G((?:[^\r\n]+\r?\n)+\r?\n)/msx) { }
108 0 6 $h =~ /^Content-Length:\s*(\d+)\s*\n/imsx ? :
128 4 9 if ($e & 8)
142 4 9 if ($e & 4)
149 6 0 if ($e & 4)
150 6 0 unless ($$self{'_wait_eof'} or $$self{'_wait_length'} or $$self{'_wait_chunk'})
152 6 0 if ($$self{'in_buf'} =~ /\G((?:[^\r\n]+\r?\n)+\r?\n)/msx)
154 6 0 if ($h =~ /^Content-Length:\s*(\d+)\s*\n/imsx) { }
0 0 elsif ($h =~ /^Transfer-Encoding:\s*chunked\s*\n/imsx) { }
167 0 0 if ($$self{'in_buf'} =~ /\G((?:\r?\n)?([\dA-Fa-f]+)[ \t]*\r?\n)/msx)
170 0 0 if $chunk > 0
177 0 6 if ($e & 16)
178 0 0 if ($$self{'_wait_eof'})
183 6 0 if ($$self{'_wait_length'} and $$self{'_in_todo'} >= $$self{'_wait_length'})
193 1 12 if ($e & 16)
194 0 1 if ($$self{'_in_todo'})