Branch Coverage

lib/File/Util/Exception.pm
Criterion Covered Total %
branch 15 36 41.6


line true false branch
42 1 0 $opts->{'opts'} && ref $opts->{'opts'} eq 'HASH' ? :
56 1 0 if $opts->{'opts'} and ref $opts->{'opts'} eq 'HASH'
58 1 0 unless (scalar keys %fatal_rules)
63 0 1 if $fatal_rules{'fatals_as_status'} or $opts->{'onfail'} eq 'zero'
65 0 1 if $opts->{'onfail'} eq 'undefined'
69 0 1 if (not scalar keys %$opts) { }
75 0 0 $error ? :
85 0 1 if ($error eq 'plain error')
100 0 1 if ($opts->{'onfail'} eq 'warn' or $fatal_rules{'fatals_as_warning'}) { }
0 1 elsif ($opts->{'onfail'} eq 'message' or $fatal_rules{'fatals_as_errmsg'} or $opts->{'return'}) { }
104 0 0 if warn _trace($@ || $bad_news)
114 0 1 if $opts->{'warn_also'}
117 0 1 unless ref $opts->{'onfail'} eq 'CODE'
150 2 4 unless $frame_no > 0
155 4 0 $hasargs ? :
158 0 4 $evaltext ? :
168 0 0 unless defined $error
170 0 0 unless (length $error)