Branch Coverage

blib/lib/CGI/Application/Plugin/Stream.pm
Criterion Covered Total %
branch 14 20 70.0


line true false branch
24 2 8 if (ref \$file_or_fh eq 'SCALAR') { }
27 0 2 unless open $fh, "<$file_or_fh"
48 8 2 unless ($existing_headers{'-type'} or $existing_headers{'type'})
56 0 8 if $@
65 8 2 unless ($existing_headers{'Content_Length'} or $existing_headers{'-Content_Length'})
71 8 1 unless ($existing_headers{'-attachment'} or $existing_headers{'attachment'} or grep /-?content-disposition/i, keys %existing_headers)
78 10 0 unless ($ENV{'CGI_APP_RETURN_ONLY'})
88 0 10 if ($ENV{'CGI_APP_RETURN_ONLY'}) { }
95 10 0 unless $ENV{'CGI_APP_RETURN_ONLY'}
97 0 10 $ENV{'CGI_APP_RETURN_ONLY'} ? :