Branch Coverage

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


line true false branch
44 1 0 $opts->{'opts'} && ref $opts->{'opts'} eq 'HASH' ? :
58 1 0 if $opts->{'opts'} and ref $opts->{'opts'} eq 'HASH'
60 1 0 unless (scalar keys %fatal_rules)
65 0 1 if $fatal_rules{'fatals_as_status'} or $opts->{'onfail'} eq 'zero'
67 0 1 if $opts->{'onfail'} eq 'undefined'
71 0 1 if (not scalar keys %$opts) { }
77 0 0 $error ? :
87 0 1 if ($error eq 'plain error')
102 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'}) { }
106 0 0 if warn _trace($@ || $bad_news)
116 0 1 if $opts->{'warn_also'}
119 0 1 unless ref $opts->{'onfail'} eq 'CODE'
152 2 4 unless $frame_no > 0
157 4 0 $hasargs ? :
160 0 4 $evaltext ? :
170 0 0 unless defined $error
172 0 0 unless (length $error)