Branch Coverage

blib/lib/MARC/Parser/XML.pm
Criterion Covered Total %
branch 11 24 45.8


line true false branch
18 0 2 if (not $@ and defined $ishandle) { }
2 0 elsif (defined $input and not $input =~ /\n/ and -e $input) { }
0 0 elsif (defined $input and length $input > 0) { }
20 0 0 unless my $reader = 'XML::LibXML::Reader'->new('IO', $input)
25 0 2 unless my $reader = 'XML::LibXML::Reader'->new('location', $input)
30 0 0 if ref $input // !1
31 0 0 unless my $reader = 'XML::LibXML::Reader'->new('string', $input)
46 2 20 unless $self->{'xml_reader'}->nextElement('record', 'http://www.loc.gov/MARC21/slim')
48 20 0 if (my $record = $self->_decode) { }
66 20 346 if ($field_node->localName =~ /leader/) { }
80 266 elsif ($field_node->localName =~ /controlfield/) { }
266 0 elsif ($field_node->localName eq 'datafield') { }