Branch Coverage

blib/lib/Test/Exception.pm
Criterion Covered Total %
branch 30 36 83.3


line true false branch
16 1 9 if (@_)
94 21 51 if (caller() eq 'DB') { }
97 21 0 if (wantarray)
98 0 21 if (not @_) { }
125 0 51 if (wantarray and not @_) { }
154 2 32 unless _is_exception($exception)
156 9 23 if $class and not "$exception" =~ /^\Q$class\E/
216 1 21 unless (defined $expecting)
220 11 10 unless defined $description
226 12 9 $regex ? :
227 2 7 ref $expecting ? :
230 9 12 unless ($ok)
304 4 2 unless $ok
365 0 4 if ($is_test2 or $is_stream) { }
367 0 0 if eval { do { &$test() } }
374 2 1 unless defined $_[2]
378 2 2 if eval { do { &$test() } }
381 1 1 if (_is_exception($exception))