Condition Coverage

blib/lib/MARC/File/XML.pm
Criterion Covered Total %
condition 8 69 11.5


and 3 conditions

line !l l&&!r l&&r condition
286 1 0 0 $enc and ref $enc || $enc eq 'MARC::File::XML'
326 0 0 1 $original_encoding ne 'a' and not lc($format) =~ /^unimarc/o
458 0 0 0 defined $format and lc($format) =~ /^unimarc/o
459 0 0 0 defined $enc and lc($enc) =~ /^utf-?8/o

or 2 conditions

line l !l condition
29 0 0 $MARC::File::XML::_load_args{'DefaultEncoding'} ||= 'UTF-8'
30 0 0 $MARC::File::XML::_load_args{'RecordFormat'} ||= 'USMARC'
287 0 1 $enc ||= 'UTF-8'

or 3 conditions

line l !l&&r !l&&!r condition
129 0 0 1 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
145 0 0 0 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
167 0 0 0 ref $xml or $xml eq 'MARC::Record'
169 0 0 0 shift() || $MARC::File::XML::_load_args{'BinaryEncoding'}
170 0 0 0 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
193 0 0 0 $enc ||= $MARC::File::XML::_load_args{'DefaultEncoding'}
207 0 0 0 ref $class || $class
230 0 0 0 $$self{'encoding'} || $MARC::File::XML::_load_args{'DefaultEncoding'}
0 0 0 $enc ||= $$self{'encoding'} || $MARC::File::XML::_load_args{'DefaultEncoding'}
286 0 0 0 ref $enc || $enc eq 'MARC::File::XML'
319 0 0 1 $format ||= $MARC::File::XML::_load_args{'RecordFormat'}
389 0 0 6 not defined $string or $string eq ''
440 0 0 0 shift() || $MARC::File::XML::_load_args{'BinaryEncoding'}
441 0 0 0 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
475 0 0 1 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
477 0 0 1 shift() || $MARC::File::XML::_load_args{'DefaultEncoding'}
500 0 0 0 $enc eq '01' or $enc eq '03'