Branch Coverage

blib/lib/CGI/Application/Plugin/Stream.pm
Criterion Covered Total %
branch 11 14 78.5


line true false branch
29 4 16 if (ref \$file_or_fh eq 'SCALAR') { }
32 0 4 unless open $fh, "<$file_or_fh"
53 16 2 unless ($existing_headers{'-type'} or $existing_headers{'type'})
61 0 16 if $@
70 16 2 unless ($existing_headers{'Content_Length'} or $existing_headers{'-Content_Length'})
76 16 2 unless ($existing_headers{'-attachment'} or $existing_headers{'attachment'} or grep /-?content-disposition/i, keys %existing_headers)
111 0 10 if ($@) { }