Branch Coverage

lib/Object/Meta/List.pm
Criterion Covered Total %
branch 77 198 38.8


line true false branch
102 9 0 unless (defined $sindexfield)
110 9 0 if (defined $sindexfield and $sindexfield ne "")
151 30 0 if (scalar @_ > 1)
152 15 15 if (defined builtin::blessed($_[1])) { }
157 6 9 if (scalar @_ > 2) { }
170 30 0 if (defined $mtaety)
171 0 30 unless ($mtaety->isa("Object::Meta"))
176 0 30 unless defined $mtaety
178 30 0 if (defined $mtaety and $mtaety->isa("Object::Meta"))
185 0 30 if $ietycnt < 0
202 30 0 if (defined $mtaety and $mtaety->isa("Object::Meta"))
216 36 0 if (defined $hshidxcnf)
218 24 12 if $hshidxcnf->{'indexname'} eq "primary"
226 32 4 if (defined $slstchkvl and $slstchkvl ne "")
229 8 24 if ($hshidxcnf->{'checkvalue'} ne '') { }
231 6 2 if "$slstchkvl" eq $hshidxcnf->{'checkvalue'} . '' and defined $slstmnidxvl
243 30 6 if ($slstidxvl ne "")
248 12 18 unless defined $self->[3]{$hshidxcnf->{'indexname'}}
250 30 0 unless (defined $self->[3]{$hshidxcnf->{'indexname'}}{$slstidxvl})
258 18 12 if (defined $hshidxcnf->{'count'} and $hshidxcnf->{'count'} > 0) { }
267 24 6 unless $iupdidxcnf
275 24 6 if ($iupdidxcnf)
296 14 0 if ($hshprms{'checkfield'} ne "")
301 0 14 unless (defined $sidxnm and $sidxnm ne "")
308 0 0 if defined $hshprms{'checkvalue'} and $hshprms{'checkvalue'} ne ""
312 14 0 unless (defined $hshprms{'indexfield'} and $hshprms{'indexfield'} ne "")
315 4 10 if (defined $hshprms{'checkvalue'} and $hshprms{'checkvalue'} ne '') { }
329 4 10 if defined $hshprms{'checkvalue'} and $hshprms{'checkvalue'} ne ""
331 0 14 unless defined $hshidxcnfs
333 0 14 if (defined $hshidxcnfs->{$sidxnm}) { }
334 0 0 unless (defined $hshidxcnfs->{$sidxnm}{'name'} and $hshidxcnfs->{$sidxnm}{'name'} eq $sidxnm)
341 0 0 unless (defined $hshidxcnfs->{$sidxnm}{'indexfield'} and $hshidxcnfs->{$sidxnm}{'indexfield'} eq $hshprms{'indexfield'})
349 0 0 unless (defined $hshidxcnfs->{$sidxnm}{'checkfield'} and $hshidxcnfs->{$sidxnm}{'checkfield'} eq $hshprms{'checkfield'})
357 0 0 unless (defined $hshidxcnfs->{$sidxnm}{'checkvalue'} and $hshidxcnfs->{$sidxnm}{'checkvalue'} eq $hshprms{'checkvalue'})
365 0 0 unless (defined $hshidxcnfs->{$sidxnm}{'meta'} and $hshidxcnfs->{$sidxnm}{'meta'} == $hshprms{'meta'})
372 0 0 unless (defined $hshidxcnfs->{$sidxnm}{'subset'} and $hshidxcnfs->{$sidxnm}{'subset'} == $hshprms{'subset'})
379 0 0 unless (defined $hshidxcnfs->{$sidxnm}{'count'})
397 14 0 if ($iupdidxcnf)
414 0 14 unless defined $sindexname
418 14 0 if (defined $sindexname and $sindexname ne "")
428 14 0 if defined $hshidxcnfs->{$sindexname}
430 14 0 if (defined $hshidxcnf and defined $hshidxcnf->{'checkfield'})
433 0 14 unless (defined $hshidxcnf->{'indexfield'} and $hshidxcnf->{'indexfield'} ne "")
442 14 0 if defined $hshidxcnf->{'count'}
449 14 0 if (defined $hshidxcnf and defined $hshidxcnf->{'checkfield'} and $hshidxcnf->{'checkfield'} ne "")
458 14 0 if ($irebuild)
459 0 14 if (defined $self->[3]{$sindexname})
470 0 14 if (defined $self->[3]{$sindexname}) { }
473 0 0 if $iidxcnt < 0
483 0 14 if ($ietycnt > 0) { }
484 0 0 unless ($hshidxcnf->{'subset'})
485 0 0 if $ibld or $ietycnt != $iidxcnt
495 0 14 if ($ibld)
508 0 0 if (defined $ety)
514 0 0 if (defined $slstchkvl and $slstchkvl ne "")
517 0 0 if ($hshidxcnf->{'checkvalue'} ne '') { }
520 0 0 if "$slstchkvl" eq $hshidxcnf->{'checkvalue'} . '' and defined $slstetyidxvl
533 0 0 if ($sidxvl ne "")
534 0 0 unless (defined $self->[3]{$sindexname}{$sidxvl})
544 0 0 unless $iupdidxcnf
554 14 0 if ($iupdidxcnf)
576 0 0 if (scalar keys %$hshidxcnfs > 0)
580 0 0 if (defined $hshidxcnf)
581 0 0 unless (defined $hshidxcnf->{'indexfield'} and $hshidxcnf->{'indexfield'} ne "")
590 0 0 if defined $hshidxcnf->{'count'}
594 0 0 if ($irebuild)
595 0 0 if (defined $self->[3]{$sidxnm})
605 0 0 if (defined $self->[3]{$sidxnm}) { }
608 0 0 if $iidxcnt < 0
618 0 0 if ($ietycnt > 0)
619 0 0 unless ($hshidxcnf->{'subset'})
620 0 0 if $ibld or $ietycnt != $iidxcnt
632 0 0 if ($ibld)
647 0 0 if (defined $ety)
657 0 0 if (defined $slstchkvl and $slstchkvl ne "")
660 0 0 if ($hshidxcnf->{'checkvalue'} ne '') { }
663 0 0 if "$slstchkvl" eq $hshidxcnf->{'checkvalue'} . '' and defined $slstetyidxvl
675 0 0 if ($sidxvl ne "")
676 0 0 unless (defined $self->[3]{$sidxnm}{$sidxvl})
686 0 0 unless $iupdidxcnf
695 0 0 if ($iupdidxcnf)
762 24 0 unless defined $sindexname
764 24 0 if (defined $hshidxcnfs->{$sindexname})
766 24 0 if defined $hshidxcnfs->{$sindexname}{'indexfield'}
777 16 0 if (defined $iindex)
778 16 0 if ($iindex =~ /^\-?\d+$/) { }
779 3 13 if ($iindex > -1 and $iindex < scalar @{$self->[2];})
823 7 0 unless (defined $sindexvalue)
830 6 1 if ($sindexname ne "" and defined $self->[3]{$sindexname})
835 6 0 if defined $self->[3]{$sindexname}{$sindexvalue}
855 14 50 if ($irscnt < 0)
856 0 14 if (defined $self->[2]) { }
875 9 4 unless defined $sindexname
877 13 0 if ($sindexname ne "" and defined $hshidxcnfs->{$sindexname})
883 0 13 if ($irscnt < 0 and defined $hshidxcnfs->{$sindexname})
887 0 0 if defined $self->[3]{$sindexname}
889 0 0 if ($irscnt > 0)
904 1 1 unless defined $sindexname
906 2 0 if ($sindexname ne '' and defined $self->[3]{$sindexname}) { }