Branch Coverage

blib/lib/Math/PartialOrder/CMasked.pm
Criterion Covered Total %
branch 82 226 36.2


line true false branch
144 0 66 unless exists $$self{'types'}[$i]
146 0 66 if (exists $$ancs[$i]) { }
153 0 66 if (exists $$dscs[$i]) { }
176 0 66 if ($$ancs[$i]->equal($hv) and $cse or $$dscs[$i]->equal($hv) and $pse)
183 44 22 if ($cse)
221 4 132 unless exists $_[1]
222 57 75 if ($_[1])
224 8 49 unless $_[0]{'compiled'}
227 0 75 if $_[0]{'compiled'}
248 29 152 if $self->has_type($type)
249 0 152 unless (defined $type)
271 57 117 if ($$kids[$_]) { }
296 0 4 unless $self->has_type($type)
297 0 4 unless (defined $type)
330 0 12 unless (defined $old)
335 0 12 unless defined $i
338 10 2 if ($old eq $$h{'root'})
349 0 45 unless (defined $type)
353 8 37 if ($type eq $$self{'root'})
354 0 8 if (@_) { }
357 0 37 unless $self->has_type($type)
369 0 39 unless defined $_
390 2 0 if $self->has_type($_)
397 0 2 unless @_
437 834 0 $_[0]->has_type($_[1]) ? :
447 28 0 $_[0]->has_type($_[1]) ? :
459 1 0 defined $_[1] && defined($i = $_[0]{'indices'}{$_[1]}) && $_[0]->compiled(1) ? :
469 1 0 defined($i = $_[0]{'indices'}{$_[1]}) && $_[0]->compiled(1) ? :
523 0 0 unless @_
525 0 0 defined $_ ? :
530 0 0 if (not defined $indices[$i] or defined $indices[$j] and $$h{'ancestors'}[$indices[$i]]->bit_test($indices[$j]))
550 0 0 if defined $_
558 0 0 if $step > scalar @_
564 0 0 if ($$h{'ancestors'}[$indices[$j]]->bit_test($indices[$i])) { }
0 0 elsif ($$h{'ancestors'}[$indices[$i]]->bit_test($indices[$j])) { }
565 0 0 if $strata[$indices[$i]] < $strata[$indices[$j]]
570 0 0 if $strata[$indices[$i]] > $strata[$indices[$j]]
586 0 0 if defined $_[1] and defined $_[2] and $_[1] == $_[2] or not defined $_[1] || defined $_[2]
591 0 0 if $_[0]->has_ancestor_index($_[1], $_[2])
592 0 0 if $_[0]->has_ancestor_index($_[2], $_[1])
627 0 3 unless $bv->bit_test($i)
630 2 0 if ($i >= $bmax) { }
648 0 1 unless $bv->bit_test($i)
651 1 0 if ($i <= $bmin) { }
668 8 4 unless ref $h1 eq ref $h2
679 0 0 defined $_ ? :
683 0 0 defined $_ ? :
753 0 0 defined $_[0]{'types'}[$_[1]] && $_[0]->compiled(1) ? :
761 0 0 defined $_[0]{'types'}[$_[1]] && $_[0]->compiled(1) ? :
774 0 0 ref $$args{'start'} ? :
0 0 defined $$args{'start'} ? :
780 0 0 if defined $r
794 0 0 if defined $_[0]{'children'}[$_[1]]
808 0 0 if defined $_[0]{'parents'}[$_[1]]
830 0 13 unless defined $i1 and defined $i2 and $self->compiled(1)
835 13 0 if (shift())
837 7 6 if ($$vecary[$i1]->bit_test($i2)) { }
0 6 elsif ($$vecary[$i2]->bit_test($i1)) { }
849 5 1 if ($_[0] < 0) { }
1 0 elsif ($_[0] > 0) { }
912 0 172 exists $_[1] ? :
915 344 0 unless $_->Size > $size
926 77 32 unless @_
929 32 0 unless ($self->has_type($root) and $$self{'root'} eq $root)
934 32 0 unless (defined $i)
947 32 0 if $i == $j
948 0 0 $c ? :
0 0 unless $$self{'parents'}[$j]
978 10 0 exists $_[1] ? :
986 0 178 if scalar @_ == 1
988 0 178 unless defined $_[1] and defined($i = $_[0]{'indices'}{$_[1]})
989 178 0 if scalar @_ == 2
997 48 2 unless exists $_[1]
1011 0 1 exists $_[1] ? :
1022 0 184 scalar @{$_[0]{'removed'};} ? :
1051 0 0 if (not defined $what or $what =~ /\btypes\b/)
1054 0 0 defined $$h{'types'}[$i] ? :
1060 0 0 if (not defined $what or $what =~ /\bindices\b/)
1067 0 0 if (not defined $what or $what =~ /\broot\b/)
1070 0 0 if (not defined $what or $what =~ /\bparents\b/)
1073 0 0 defined $$h{'parents'}[$i] ? :
1077 0 0 if (not defined $what or $what =~ /\bchildren\b/)
1080 0 0 defined $$h{'children'}[$i] ? :
1084 0 0 if (not defined $what or $what =~ /\bremoved\b/)
1087 0 0 if (not defined $what or $what =~ /\bancestors\b/)
1090 0 0 defined $$h{'ancestors'}[$i] ? :
1097 0 0 if (not defined $what or $what =~ /\bdescendants\b/)
1100 0 0 defined $$h{'descendants'}[$i] ? :
1108 0 0 if (not defined $what or $what =~ /\bhattr/)
1115 0 0 if (not defined $what or $what =~ /\bcompiled\b/)
1116 0 0 $h->compiled ? :
1140 1 0 if ($$h{'compiled'})
1141 8 0 defined $_ ? :
1143 8 0 defined $_ ? :
1163 0 16 if defined $$tr[$_tr_attrs]
1176 1 0 if ($$h{'compiled'})
1180 8 0 defined $_ ? :
1185 8 0 defined $_ ? :
1235 152 0 scalar @_ > 1 ? :
1244 0 0 scalar @_ > 1 ? :
1307 0 16 $_[0]->Size < $_[1] ? :
1322 0 43 if $_[0]->Size <= $_[1]
1328 43 0 if $_[0]->Size > $_[1]
1356 4 0 defined $_[0] ? :
1362 408 0 defined $_[0] ? :
1368 43 0 defined $_[0] ? :
1375 43 0 defined $_[0] ? :
1382 8 0 defined $_[0] ? :
1383 8 0 defined $_[1] ? :
1390 0 0 defined $_[0] ? :
1391 0 0 defined $_[1] ? :
1398 0 0 defined $_[0] ? :
1399 0 0 defined $_[1] ? :