Branch Coverage

blib/lib/Net/OAI/Record/Header.pm
Criterion Covered Total %
branch 43 54 79.6


line true false branch
70 1 2 if ($status)
80 1 5006 if ($id)
90 1 1 if ($datestamp)
102 1 1001 if (@sets)
114 7042 0 if ($self->get_handler)
121 32952 32004 unless ($element->{'NamespaceURI'} eq 'http://www.openarchives.org/OAI/2.0/')
122 32952 0 if $self->{'fwdAll'} or $self->{'_insideMetadata'}
128 1409 30595 if ($tagName eq 'record') { }
6409 24186 elsif ($tagName eq 'header') { }
22778 1408 elsif ($self->{'_insideHeader'}) { }
1408 0 elsif ($tagName eq 'metadata') { }
0 0 elsif ($tagName eq 'about') { }
134 1 6408 exists $element->{'Attributes'}{'{}status'} ? :
148 2418 29586 if $self->{'fwdAll'}
153 32952 32004 unless ($element->{'NamespaceURI'} eq 'http://www.openarchives.org/OAI/2.0/')
154 32952 0 if $self->{'fwdAll'} or $self->{'_insideMetadata'}
160 6409 25595 if ($tagName eq 'header') { }
9960 15635 elsif ($tagName eq 'setSpec') { }
12818 2817 elsif ($self->{'_insideHeader'}) { }
1408 1409 elsif ($tagName eq 'metadata') { }
0 1409 elsif ($tagName eq 'about') { }
1409 0 elsif ($tagName eq 'record') { }
162 0 6409 if defined $self->{'header'} and $self->{'header'} =~ /\S/
185 2418 29586 if $self->{'fwdAll'}
191 0 0 if $self->{'fwdAll'} or $self->{'_insideMetadata'}
196 52100 78662 if $self->{'_insideHeader'}
197 78470 52292 if $self->{'fwdAll'} or $self->{'_insideMetadata'}