Branch Coverage

blib/lib/Apache/ASP/Response.pm
Criterion Covered Total %
branch 122 286 42.7


line true false branch
36 0 18 $$asp{'compressgzip'} && $$asp{'headers_in'}->get('Accept-Encoding') =~ /gzip/io ? :
92 0 0 if ($lc_name eq 'set-cookie') { }
97 0 0 if ($lc_name eq 'content-type') { }
0 0 elsif ($lc_name eq 'cache-control') { }
0 0 elsif ($lc_name eq 'expires') { }
112 0 7 if $$self{'Debug'}
117 0 0 if $_[0]{'asp'}{'dbg'}
125 2 0 if (defined $name and defined $key and defined $value) { }
0 0 elsif (defined $name and defined $key) { }
0 0 elsif (defined $name) { }
129 0 0 if (ref $key) { }
145 0 0 ref $cookie ? :
164 2 14 if $$self{'Ended'}++
175 14 0 if $$asp{'GlobalASA'}{'exists'}
179 0 14 if ($$asp{'xslt'} and not $$asp{'errs'})
180 0 0 if $$asp{'dbg'}
182 0 0 if $$asp{'dbg'}
183 0 0 if $$asp{'errs'}
187 0 14 if ($$self{'FormFill'} and not $$asp{'errs'})
189 0 0 if $$asp{'errs'}
192 0 14 if ($$self{'Clean'} and $$self{'ContentType'} =~ /$TextHTMLRegexp/o)
194 0 0 unless (defined $Apache::ASP::CleanSupport)
196 0 0 if ($@) { }
206 0 0 if ($Apache::ASP::CleanSupport)
208 0 0 if ($h) { }
217 0 14 if ($$asp{'Session'} and not $$asp{'session_cookie'} and $$asp{'session_url_parse'} and $$self{'ContentType'} =~ /^text/i)
227 14 0 if ($$self{'Ended'})
231 1 13 if $$asp{'dbg'}
234 0 14 if (&config($asp, 'TimeHiRes'))
235 0 0 if ($$self{'ContentType'} =~ /$TextHTMLRegexp/o)
236 0 0 if (&config($asp, 'Debug'))
246 13 1 if (not $$self{'header_done'})
250 13 0 if ($$self{'Ended'})
253 13 0 if (not $$asp{'filter'})
256 0 13 if ($$self{'CompressGzip'} and $asp->LoadModule('Gzip', 'Compress::Zlib'))
268 0 14 if ($$asp{'filter'}) { }
278 14 0 if (not defined $$self{'Status'} or $$self{'Status'} >= 200 and $$self{'Status'} < 400)
285 0 14 unless $$self{'Ended'}
298 0 0 if $$asp{'dbg'}
299 0 0 unless $asp->LoadModule('FormFill', 'HTML::FillInForm')
304 0 0 $$asp{'dbg'} ? :
311 0 0 if ($@) { }
314 0 0 if $$asp{'dbg'}
331 0 0 unless length $$xml_out
334 0 0 unless $$asp{'filename'} =~ /$$asp{'xslt_match'}/
337 0 0 if $$asp{'dbg'}
339 0 0 if $$asp{'dbg'}
340 0 0 if $$asp{'errs'}
345 0 0 if $$asp{'dbg'}
349 0 0 if ($@)
360 0 25 if not $$self{'IsClientConnected'}
370 0 25 unless ($$self{'asp'}{'Request'})
378 0 25 $conn->aborted ? :
380 25 0 if ($is_connected)
382 0 25 if (defined $fileno)
391 0 0 select($bits, undef, undef, 0) > 0 ? :
392 0 0 if (not $is_connected)
393 0 0 if $$self{'asp'}{'dbg'}
399 0 25 if (not $is_connected)
400 0 0 if $$self{'asp'}{'dbg'}
413 0 3 if $$asp{'dbg'}
419 0 3 if ($$asp{'Session'} and $$asp{'session_url_parse'})
421 0 0 if $$asp{'dbg'}
435 1 2 if (&config($asp, 'SoftRedirect')) { }
461 0 16 if $$self{'header_done'}
464 1 15 if $dbg
465 3 13 if defined $status
468 0 16 if &config($asp, 'NoHeaders')
470 0 16 if (defined $status and $status == 401) { }
471 0 0 if $dbg
479 0 16 if $dbg and defined $status
482 0 16 if (defined $$self{'Charset'}) { }
488 1 15 if (%{$$self{'Cookies'};})
493 0 16 if (defined $$self{'Expires'}) { }
0 16 elsif (defined $$self{'ExpiresAbsolute'}) { }
496 0 0 if $dbg
500 0 0 if (defined $time) { }
511 0 16 if defined $$self{'PICS'}
516 16 0 unless ($r->headers_out->get('Content-type'))
522 16 0 if (not $$asp{'filter'} and !defined($status) || $status >= 200 && $status < 400)
523 1 15 if $dbg
524 1 15 if (defined $$self{'header_buffer'}) { }
529 15 0 unless ($Apache::ASP::ModPerl2)
551 0 3 if ($Apache::ASP::SessionCookieName eq $cookie_name)
560 1 2 unless (ref $cookie)
572 1 9 if ($k eq 'secure' and $v) { }
1 8 elsif ($k eq 'domain') { }
2 6 elsif ($k eq 'value') { }
1 5 elsif ($k eq 'expires') { }
3 2 elsif ($k eq 'path') { }
582 0 1 if ($v =~ /^\-?\d+$/) { }
584 0 0 if ($v > time) { }
597 0 1 if $dbg
605 0 2 if (defined $$cookie{'Value'} and not ref $$cookie{'Value'}) { }
615 2 1 if (defined $$cookie{'Value'} and not ref $$cookie{'Value'}) { }
631 6 9 unless $data[$_]
637 0 3 if $dbg
648 0 24 if (@_ > 1) { }
654 24 0 defined $_[0] ? :
670 0 95 if $$self{'Ended'}
673 3 92 if ($$self{'CH'})
684 0 95 if (not $$self{'Buffer'} and not $$self{'FormFill'})
713 2 1 if ($$self{'CH'} and not $$self{'header_done'} and not $$content_out and $$self{'ContentType'} =~ /$TextHTMLRegexp/o)
721 0 2 if ($status =~ m[HTTP/\d\.\d\s*(\d*)]o)
728 3 2 unless $out
730 1 1 if ($out =~ /^[^\s]+: /) { }
731 1 0 unless (defined $$self{'header_buffer'})
768 34 8 if (ref $file and ref $file eq 'HASH')
772 0 34 if $$asp{'dbg'}
774 34 0 if ($$data{'Cache'})
779 23 11 if (ref $file) { }
785 27 7 if ($$data{'Key'}) { }
787 0 27 if $$asp{'dbg'}
789 0 7 if $$asp{'dbg'}
794 31 3 if (not $cache_clear)
796 17 14 if ($rv)
797 17 0 if $$rv{'RV'}
0 17 if (not eval {
798 0 0 if $$asp{'dbg'}
800 0 17 if $$asp{'dbg'}
803 7 10 wantarray ? :
811 1 23 unless (defined $_CODE)
819 2 21 if (ref $eval eq 'SCALAR')
820 0 2 if $$asp{'dbg'}
825 2 19 if $$asp{'dbg'}
828 17 4 if ($cache) { }
835 0 17 if $$asp{'dbg'}
842 0 21 if ($@)
846 2 19 if $$asp{'dbg'}
848 5 16 wantarray ? :
865 0 0 if $$asp{'dbg'}
876 0 0 unless $$content_ref =~ s/
892 0 0 if ($temp_attribs =~ s/^\s*"([^"]*)"\s*//os) { }
0 0 elsif ($temp_attribs =~ s/^\s*'([^']*)'\s*//os) { }
0 0 elsif ($temp_attribs =~ s/^\s*([^\s]*)\s*//os) { }
908 0 0 if (defined $rel_url)
911 0 0 if ($new_url ne $rel_url)
932 0 0 if ($match and $rel_url =~ /$match/ or $rel_url =~ m[^/] and $rel_url =~ /^$$asp{'cookie_path'}/ or not $rel_url =~ m[^[^\?/]+?:]) { }
942 0 0 if ($rel_url =~ /^([^\?]+)(\?([^\#]*))?(\#.*)?$/) { }
944 0 0 defined $3 ? :
958 0 0 if not /^$Apache::ASP::SessionCookieName=/
968 0 0 if ($frag)
971 0 0 if $$asp{'dbg'}