Branch Coverage

blib/lib/CGI/Builder.pm
Criterion Covered Total %
branch 43 60 71.6


line true false branch
49 15 0 unless $cbb->isa($c)
51 0 0 if $cbb->isa('Apache::CGI::Builder') and $Apache::CGI::Builder::usage
57 50 75 $h =~ /up$/ ? :
62 15 110 @op ? :
132 0 0 unless -d $_
143 0 8 if warnings::enabled() and not $n =~ /^(?:my)?_/
146 5 3 @_ == 2 ? :
162 3 8 if (defined $p and length $p) { }
169 11 0 if ($s->PHASE < 2)
173 9 2 if ($s->PHASE < 3)
176 10 1 if ($s->PHASE < 6)
180 10 1 if ($s->PHASE < 7)
183 3 7 unless $has_content or defined $s->header->{-'status'}
185 10 0 unless $s->dont_send_header
186 7 3 if $has_content
194 0 15 if $s->PHASE < 2
195 0 15 if $s->PHASE > 6
196 0 15 unless defined $p and length $p
201 3 12 if $SH
202 13 2 if ($s->PHASE < 4)
206 13 2 if ($s->PHASE < 5)
212 12 1 if $PH
219 5 3 if defined $p and length $p
232 0 7 if (ref $pc eq 'CODE') { }
0 7 elsif (ref $pc eq 'SCALAR') { }
7 0 elsif (not ref $pc) { }
245 0 1 if $s->PHASE < 1
246 0 1 if $s->PHASE > 7
247 0 1 unless defined $url and length $url
259 4 4 if $sub eq '(eval)' and (caller $i + 1)[3]