Branch Coverage

blib/lib/Class/Throwable.pm
Criterion Covered Total %
branch 49 50 98.0


line true false branch
20 2 13 unless @_
21 5 8 if ($_[0] eq 'VERBOSE') { }
3 5 elsif ($_[0] eq 'retrofit') { }
22 1 4 unless defined $_[1]
29 1 2 unless defined $_[1]
32 1 1 if defined $_[2] and ref $_[2] eq 'CODE'
37 0 2 if $@
40 1 4 unless $class eq 'Class::Throwable'
44 3 4 unless $exception
46 1 3 if $@
58 1 2 if ref $class
59 1 1 unless defined $verbosity
77 2 17 if (blessed $class and $class->isa('Class::Throwable'))
82 1 1 unless my(@s) = $class->getStackTrace
127 18 33 if $c[3] =~ /Class\:\:Throwable\:\:throw/
138 8 7 defined $$self{'sub_exception'} ? :
154 4 2 wantarray ? :
166 15 6 if $subroutine eq '(eval)'
174 9 7 unless (defined $verbosity)
175 7 2 if (exists $VERBOSITY{ref $self}) { }
184 1 15 if $verbosity <= 0
189 4 11 if $verbosity <= 1
191 4 7 if ($depth > 1)
199 5 6 if ($self->hasSubException)
203 4 1 if (blessed $e and $e->isa('Class::Throwable')) { }