Condition Coverage

blib/lib/MARC/File/XML.pm
Criterion Covered Total %
condition 31 69 44.9


and 3 conditions

line !l l&&!r l&&r condition
280 1 4 0 $enc and ref $enc || $enc eq 'MARC::File::XML'
320 0 0 5 $original_encoding ne 'a' and not lc($format) =~ /^unimarc/o
461 2 25 0 defined $format and lc($format) =~ /^unimarc/o
462 26 0 1 defined $enc and lc($enc) =~ /^utf-?8/o

or 2 conditions

line l !l condition
25 0 5 $MARC::File::XML::_load_args{'DefaultEncoding'} ||= 'UTF-8'
26 0 5 $MARC::File::XML::_load_args{'RecordFormat'} ||= 'USMARC'
281 4 1 $enc ||= 'UTF-8'

or 3 conditions

line l !l&&r !l&&!r condition
123 0 0 3 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
139 0 0 0 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
161 0 3 1 ref $xml or $xml eq 'MARC::Record'
163 1 0 3 shift() || $MARC::File::XML::_load_args{'BinaryEncoding'}
164 0 0 4 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
187 0 1 0 $enc ||= $MARC::File::XML::_load_args{'DefaultEncoding'}
201 0 1 0 ref $class || $class
224 1 0 0 $self->{'encoding'} || $MARC::File::XML::_load_args{'DefaultEncoding'}
0 1 0 $enc ||= $self->{'encoding'} || $MARC::File::XML::_load_args{'DefaultEncoding'}
280 0 0 4 ref $enc || $enc eq 'MARC::File::XML'
313 3 2 0 $format ||= $MARC::File::XML::_load_args{'RecordFormat'}
385 0 0 233 not defined $string or $string eq ''
442 1 0 26 shift() || $MARC::File::XML::_load_args{'BinaryEncoding'}
443 4 0 23 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
478 3 0 0 shift() || $MARC::File::XML::_load_args{'RecordFormat'}
480 0 0 3 shift() || $MARC::File::XML::_load_args{'DefaultEncoding'}
507 0 0 0 $enc eq '01' or $enc eq '03'