Branch Coverage

blib/lib/Test/Trap/Builder.pm
Criterion Covered Total %
branch 68 68 100.0


line true false branch
36 6175 38 unless $package
37 320 5893 unless $self->{' id '}
51 5 5 unless my $m = $self->Prop->{'on_test_failure'}
97 2 297 unless eval { do { $trap->Next; 1 } }
101 3 844 unless eval { do { &$_(); 1 } }
104 220 90 unless $trap->Prop->{'exception'}
16 294 if @{[] unless $trap->Prop->{'exception'};}
107 105 189 $wantarray ? :
138 5 80 _need_index() ? :
150 5 80 if $accessor->{'is_array'}
169 2 127 unless $ok = $test->{'code'}->(@targs)
179 5 6 if $isname{$_}
180 2 2 if $takesarg{$_} or $accessor->{'is_array'} and $iselement{$_}
193 303 220 @$apkgs ? :
194 303 228 @$anames ? :
196 2436 303 @$tpkgs ? :
197 43 3 $tpkg->isa($apkg) ? :
2706 46 $apkg->isa($tpkg) ? :
200 2435 314 @$tnames ? :
207 5 129 if $adef->{'is_leaveby'} and $trap->leaveby ne $adef->{'name'}
220 1 654 unless $argspec{$_}
255 495 9 unless @_
256 6 3 if wantarray
268 82 31 unless $flexible
271 55 58 $par{'is_array'} ? :
272 4 109 unless $simple
311 16 605 unless (tied *$globref or defined($fileno = fileno $globref))
315 362 243 unless $m
316 296 309 unless $m
332 153 354 if $strategy
338 56 55 unless $arg
342 53 5 if $strategy
355 7 328 if (length ref $_ and eval { do { exists &$_ } })
367 3 325 unless my $meth = $trapper->can("layer:$name")