Branch Coverage

blib/lib/Plack/App/CGIBin/Streaming/Request.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
42 70 83439 if @_ > 1
83 0 39 if @_ % 2
84 0 39 if $$self{'writer'}
98 13 83336 if ($$self{'parse_headers'})
102 9 19 if ($hdr =~ /\Astatus\z/iu) { }
13 6 elsif ($hdr =~ /\Acontent-type\z/iu) { }
110 13 0 if ($$self{'_header_buffer'} =~ s/\A\r?\n//u)
112 10 3 if length $$self{'_header_buffer'}
134 990 82346 if ($len > $$self{'max_buffer'})
153 11 6 if $is_done
157 11 6 $is_done ? :
169 0 992 unless @{$$self{'_buffer'};}
177 6 986 unless $$self{'writer'}
198 6 11 if ($$self{'writer'}) { }