Branch Coverage

blib/lib/Net/OAI/ListRecords.pm
Criterion Covered Total %
branch 36 40 90.0


line true false branch
38 2 7 if ($package = $opts{'recordHandler'}) { }
3 4 elsif ($package = $opts{'metadataHandler'}) { }
39 0 2 if $opts{'metadataHandler'}
75 7 1200 unless ($self->{'recordsFileHandle'})
77 0 7 unless $self->{'recordsFileHandle'} = 'IO::File'->new($self->{'recordsFilename'})
83 6 1201 if ($self->{'recordsFileHandle'}->eof)
85 0 6 unless $self->{'recordsFileHandle'}->close
117 4200 18 if ($self->get_handler)
124 4200 18 if ($self->get_handler)
131 32816 8816 unless $element->{'NamespaceURI'} eq 'http://www.openarchives.org/OAI/2.0/'
135 1400 7416 if ($element->{'LocalName'} eq 'record') { }
7 7409 elsif ($element->{'LocalName'} eq 'ListRecords') { }
145 200 200 ref $self->{'recordHandler'} ? :
200 800 ref $self->{'metadataHandler'} ? :
0 1000 $Net::OAI::Harvester::OLDmetadataHandler ? :
400 1000 $self->{'recordHandler'} ? :
161 32816 8816 unless $element->{'NamespaceURI'} eq 'http://www.openarchives.org/OAI/2.0/'
165 1400 7416 if ($element->{'LocalName'} eq 'record') { }
7 7409 elsif ($element->{'LocalName'} eq 'ListRecords') { }
177 400 1000 if ($self->{'recordHandler'}) { }