Branch Coverage

lib/Badger/Exception.pm
Criterion Covered Total %
branch 26 40 65.0


line true false branch
65 1 68 exists $config->{'trace'} ? :
75 1 27 @_ ? :
83 0 3 @_ ? :
91 0 3 @_ ? :
100 68 0 defined $self->{$1} ? :
104 0 34 if $self->{'file'}
105 0 34 if $self->{'line'}
107 2 32 if ($self->{'trace'} and my $trace = $self->stack_trace)
119 2 0 if (my $stack = $self->{'stack'})
121 0 7 $COLOUR ? :
139 0 0 if (ref $self) { }
142 0 0 @_ ? :
146 0 0 @_ ? :
156 2 61 if ($self->{'trace'} and not $self->{'stack'})
161 2 7 unless @info
184 3 4 @_ == 1 ? :
187 1 6 unless ref $types
190 6 1 if ref $types eq "ARRAY"
193 0 7 unless ref $types eq "HASH"
198 6 10 if $types->{$type}