Branch Coverage

blib/lib/HTML/Mason/CGIHandler.pm
Criterion Covered Total %
branch 16 34 47.0


line true false branch
43 0 7 $p{'out_method'} ? :
74 7 0 if (@_) { }
0 0 elsif (not $self->{'has_custom_out_method'}) { }
84 0 0 if (not $sent_headers and 'HTML::Mason::Request'->instance->auto_send_headers)
105 0 7 if (wantarray) { }
0 7 elsif (defined wantarray) { }
113 1 6 if (my $err = $@)
114 0 1 isa_mason_exception($err, 'Decline') ? :
0 1 isa_mason_exception($err, 'Abort') ? :
121 0 0 if $retval and grep {$retval eq $_;} 200, 301, 302
126 6 0 if (@_)
132 0 6 defined wantarray ? :
0 6 wantarray ? :
181 1 6 if (my $err = $@)
183 0 1 isa_mason_exception($err, 'Decline') ? :
0 1 isa_mason_exception($err, 'Abort') ? :
191 6 0 if (not $self->is_subrequest and $self->auto_send_headers and not $r->http_header_sent and !$retval || $retval == 200)