Branch Coverage

blib/lib/MAB2/Parser/XML.pm
Criterion Covered Total %
branch 13 16 81.2


line true false branch
23 3 7 if (not $@ and defined $ishandle) { }
1 6 elsif (defined $input and not $input =~ /\n/ and -e $input) { }
5 1 elsif (defined $input and length $input > 0) { }
25 0 3 unless my $reader = 'XML::LibXML::Reader'->new('IO', $input)
31 0 1 unless my $reader = 'XML::LibXML::Reader'->new('location', $input)
37 0 5 unless my $reader = 'XML::LibXML::Reader'->new('string', $input)
50 29 1 if ($self->{'xml_reader'}->nextElement('datensatz'))
77 71 1337 if (my(@subfields) = $field_node->getChildrenByTagName('uf')) { }