Branch Coverage

blib/lib/Net/OAI/GetRecord.pm
Criterion Covered Total %
branch 31 34 91.1


line true false branch
25 2 6 if ($package = $opts{'recordHandler'}) { }
4 2 elsif ($package = $opts{'metadataHandler'}) { }
26 0 2 if $opts{'metadataHandler'}
74 0 6 unless $self->{'record'}
75 4 2 $self->{'metadataHandler'} ? :
85 0 5 unless $self->{'record'}
86 2 3 $self->{'recordHandler'} ? :
94 21 16 if ($self->get_handler)
101 21 16 if ($self->get_handler)
108 119 62 unless $element->{'NamespaceURI'} eq 'http://www.openarchives.org/OAI/2.0/'
112 8 54 if ($element->{'LocalName'} eq 'record')
122 1 1 ref $self->{'recordHandler'} ? :
2 4 ref $self->{'metadataHandler'} ? :
2 6 $self->{'recordHandler'} ? :
135 119 62 unless $element->{'NamespaceURI'} eq 'http://www.openarchives.org/OAI/2.0/'
139 8 54 if ($element->{'LocalName'} eq 'record')
144 2 6 if ($self->{'recordHandler'}) { }