Branch Coverage

blib/lib/Net/OAI/Record/NamespaceFilter.pm
Criterion Covered Total %
branch 62 90 68.8


line true false branch
210 0 3 if (not defined $value) { }
1 2 elsif (not ref $value) { }
1 1 elsif (ref $value eq 'CODE') { }
241 202 2 if (defined $ns) { }
257 0 400 if $cloning
263 0 400 if $cloning
292 1015 995 unless $self->{'_noHandler'}
293 3 2007 if $self->{'_activeStack'}[0]
296 0 0 unless not defined $activehdl or $self->{'_performing'}{$activehdl}
303 5 2002 if $switched
308 603 603 unless $self->{'_noHandler'}
309 3 1203 if $self->{'_activeStack'}[0]
310 0 1203 unless $self->{'_prefixmap'}{$mapping->{'Prefix'}}
312 0 0 unless not defined $activehdl or $self->{'_performing'}{$activehdl}
320 3 1200 if $switched
330 4552 6116 if ($self->{'_activeStack'}[0]) { }
333 402 5714 unless ($self->{'_tagStack'}[0])
337 0 402 if defined $activehdl
343 0 202 if (not defined $value) { }
1 201 elsif (not ref $value) { }
200 1 elsif (ref $value eq 'CODE') { }
367 0 201 unless defined $hdl
368 0 201 if $self->{'_performing'}{$hdl}++
375 202 200 if $switched
378 201 5915 if (exists $self->{'namespaces'}{$element->{'NamespaceURI'}}) { }
1 5914 elsif (exists $self->{'namespaces'}{'*'}) { }
379 201 0 if (defined(my $hdl = $self->{'_handlers'}{$element->{'NamespaceURI'}}))
385 1 0 if (defined(my $hdl = $self->{'_handlers'}{'*'}))
397 0 4754 if $self->{'_noHandler'}
408 4754 5914 if ($self->{'_activeStack'}[0]) { }
5914 0 elsif ($self->{'_tagStack'}[0]) { }
409 4754 0 unless ($self->{'_noHandler'})
413 4552 202 if $self->{'_activeStack'}[0]
414 202 0 unless ($self->{'_noHandler'})
422 5714 402 if $self->{'_tagStack'}[0]
424 0 402 if defined $activehdl
427 0 202 if (not defined $value) { }
202 0 elsif (my $hdl = $self->{'_handlers'}{$key}) { }
432 0 202 if (not $self->{'_performing'}{$hdl}) { }
1 201 elsif ($self->{'_performing'}{$hdl} < 0) { }
455 201 201 if $switched
460 400 22860 if $self->{'_noHandler'}
466 0 0 if $self->{'_noHandler'}
472 0 0 if $self->{'_noHandler'}
478 0 0 if $self->{'_noHandler'}