Condition Coverage

lib/File/Util/Exception.pm
Criterion Covered Total %
condition 10 43 23.2


and 3 conditions

line !l l&&!r l&&r condition
44 0 0 1 $opts->{'opts'} && ref $opts->{'opts'} eq 'HASH'
58 0 0 1 $opts->{'opts'} and ref $opts->{'opts'} eq 'HASH'

or 2 conditions

line l !l condition
48 1 0 $opts->{'onfail'} ||= 'die'
85 1 0 $error ||= 'empty error'

or 3 conditions

line l !l&&r !l&&!r condition
44 0 1 0 $opts->{'onfail'} ||= $opts->{'opts'} && ref $opts->{'opts'} eq 'HASH' ? $opts->{'opts'}{'onfail'} : ''
46 1 0 0 $opts->{'onfail'} ||= $this->{'opts'}{'onfail'}
65 0 0 1 $fatal_rules{'fatals_as_status'} or $opts->{'onfail'} eq 'zero'
89 0 0 0 $opts->{'error'} ||= shift @_
102 0 0 1 $opts->{'onfail'} eq 'warn' or $fatal_rules{'fatals_as_warning'}
0 0 1 $opts->{'onfail'} eq 'message' or $fatal_rules{'fatals_as_errmsg'}
0 0 1 $opts->{'onfail'} eq 'message' or $fatal_rules{'fatals_as_errmsg'} or $opts->{'return'}
106 0 0 0 $@ || $bad_news
113 0 0 0 $@ || $bad_news
116 0 0 0 $@ || $bad_news
119 0 0 0 $@ || $bad_news