Branch Coverage

blib/lib/Net/OAI/Record/NamespaceFilter.pm
Criterion Covered Total %
branch 56 90 62.2


line true false branch
153 0 2 if (not defined $value) { }
0 2 elsif (not ref $value) { }
1 1 elsif (ref $value eq 'CODE') { }
184 201 1 if (defined $ns) { }
195 0 400 if $cloning
201 0 400 if $cloning
227 1010 995 unless $self->{'_noHandler'}
228 0 2005 if $self->{'_activeStack'}[0]
232 0 0 unless not defined $activehdl or $self->{'_performing'}{$activehdl}
240 5 2000 if $switched
245 600 603 unless $self->{'_noHandler'}
246 0 1203 if $self->{'_activeStack'}[0]
248 0 1203 unless $self->{'_prefixmap'}{$mapping->{'Prefix'}}
250 0 0 unless not defined $activehdl or $self->{'_performing'}{$activehdl}
259 3 1200 if $switched
267 4530 6115 if ($self->{'_activeStack'}[0]) { }
270 401 5714 unless ($self->{'_tagStack'}[0])
275 0 401 if defined $activehdl
281 0 201 if (not defined $value) { }
0 201 elsif (not ref $value) { }
200 1 elsif (ref $value eq 'CODE') { }
305 0 200 unless defined $hdl
306 0 200 if $self->{'_performing'}{$hdl}++
315 201 200 if $switched
318 201 5914 if (exists $self->{'namespaces'}{$element->{'NamespaceURI'}}) { }
0 5914 elsif (exists $self->{'namespaces'}{'*'}) { }
319 201 0 if (defined(my $hdl = $self->{'_handlers'}{$element->{'NamespaceURI'}}))
325 0 0 if (defined(my $hdl = $self->{'_handlers'}{'*'}))
337 0 4731 if $self->{'_noHandler'}
346 4731 5914 if ($self->{'_activeStack'}[0]) { }
5914 0 elsif ($self->{'_tagStack'}[0]) { }
347 4731 0 unless ($self->{'_noHandler'})
351 4530 201 if $self->{'_activeStack'}[0]
352 201 0 unless ($self->{'_noHandler'})
360 5714 401 if $self->{'_tagStack'}[0]
364 0 401 if defined $activehdl
367 0 201 if (not defined $value) { }
201 0 elsif (my $hdl = $self->{'_handlers'}{$key}) { }
372 0 201 if (not $self->{'_performing'}{$hdl}) { }
1 200 elsif ($self->{'_performing'}{$hdl} < 0) { }
396 200 201 if $switched
401 400 22811 if $self->{'_noHandler'}
407 0 0 if $self->{'_noHandler'}
413 0 0 if $self->{'_noHandler'}
419 0 0 if $self->{'_noHandler'}