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
42 0 0 1 $opts->{'opts'} && ref $opts->{'opts'} eq 'HASH'
56 0 0 1 $opts->{'opts'} and ref $opts->{'opts'} eq 'HASH'

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
42 0 1 0 $opts->{'onfail'} ||= $opts->{'opts'} && ref $opts->{'opts'} eq 'HASH' ? $opts->{'opts'}{'onfail'} : ''
44 1 0 0 $opts->{'onfail'} ||= $this->{'opts'}{'onfail'}
63 0 0 1 $fatal_rules{'fatals_as_status'} or $opts->{'onfail'} eq 'zero'
87 0 0 0 $opts->{'error'} ||= shift @_
100 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'}
104 0 0 0 $@ || $bad_news
111 0 0 0 $@ || $bad_news
114 0 0 0 $@ || $bad_news
117 0 0 0 $@ || $bad_news