Branch Coverage

blib/lib/Net/OAI/GetRecord.pm
Criterion Covered Total %
branch 32 36 88.8


line true false branch
26 3 6 if ($package = $opts{'recordHandler'}) { }
4 2 elsif ($package = $opts{'metadataHandler'}) { }
27 0 3 if $opts{'metadataHandler'}
75 0 6 unless $self->{'record'}
76 4 2 $self->{'metadataHandler'} ? :
90 0 5 unless $self->{'record'}
91 2 3 $self->{'recordHandler'} ? :
99 24 18 if ($self->get_handler)
106 24 18 if ($self->get_handler)
113 136 70 unless $element->{'NamespaceURI'} eq 'http://www.openarchives.org/OAI/2.0/'
117 9 61 if ($element->{'LocalName'} eq 'record')
127 2 1 ref $self->{'recordHandler'} ? :
2 4 ref $self->{'metadataHandler'} ? :
0 6 $Net::OAI::Harvester::OLDmetadataHandler ? :
3 6 $self->{'recordHandler'} ? :
141 136 70 unless $element->{'NamespaceURI'} eq 'http://www.openarchives.org/OAI/2.0/'
145 9 61 if ($element->{'LocalName'} eq 'record')
150 3 6 if ($self->{'recordHandler'}) { }