Branch Coverage

blib/lib/Math/DifferenceSet/Planar.pm
Criterion Covered Total %
branch 256 262 97.7


line true false branch
56 0 7 if $x != 1
57 0 7 if @mult != $n
102 3 13 if @{$rotators;}
104 10 3 if ($space)
117 2 1 if $this->[4] > $_MAX_ENUM_COUNT
123 13 76 if (substr $sieve, $x, 1)
124 2 11 if (0 == $modulus % $x)
146 1 1 if $pf[-1] == $modulus
150 2 20 if $mx >= $n_planes
155 9 77 unless $x % $p
158 42 223 if &mulmod($x, $e, $modulus) < $x
174 2 36 unless $next
178 32 4 if (++$index[$i] < $depths->[$i])
206 3 10 if $base <= 0 or $exponent < 0
207 1 9 if log(0 + $base) * $exponent > $_LOG_MAX_ORDER
211 16 10 if 1 & $exponent
212 17 9 if $exponent >>= 1
223 0 961 unless $a <=> $b
230 2 62 if $mx >= @elements
231 2 60 unless $mx--
232 42 20 if $mx
233 42 20 $mx ? :
249 46 69 if ($e < $he) { }
262 4 85 unless (defined $current_data)
274 1 3 $this->[0] < $_MAX_FMT_COUNT ? :
290 17 53 if $r
293 17 9 if ($r) { }
296 5 24 unless $o
299 8 112 unless exists $t{&mulmod($e, $ro, $modulus)}
310 2 47 unless exists $t{&mulmod($e, $ro, $modulus)}
316 25 1 if ($factor)
328 2 35 if $order != $that->order
332 3 32 if (not $log_this) { }
23 9 elsif (not $log_that) { }
335 2 1 unless ($log_that)
339 1 2 $this == $that ? :
376 8 4 defined $exponent ? :
377 7 5 if not $order or $order > $class->_data->max_order
385 2 2 if $order <= 0 or $order > $class->_data->sp_max_order
387 1 1 unless $spc
395 2 2 if $order <= 0 or $order > $class->_data->sp_max_order
397 1 1 unless $spc
405 5 34 defined $exponent ? :
407 4 35 if (not $pds or defined $exponent and $base != $pds->base)
408 3 1 defined $exponent ? :
432 2 30 unless $exponent = &is_prime_power($order, \$base)
435 167 1 unless $_ < 0
2 28 if (grep {$modulus <= $_ unless $_ < 0;} @_)
441 10 16 if (not exists $memo_n_planes{$order}) { }
444 1 9 if $_MAX_MEMO_COUNT < keys %memo_n_planes
470 2 21 unless eval { do { _find_factor($ref, $this) } }
481 1 15 if $order <= 1
486 4 60 if $r1 < 0 or $modulus <= $r1 or $r1 != int $r1
488 56 128 if $r1 == $r2
489 3 125 $r1 < $r2 ? :
490 98 30 if $d > $median
491 4 124 if substr($seen, $d - 1, 1)++
503 1 13 if $order <= 1
506 5 1 $median <= $_DEFAULT_DEPTH ? :
6 7 unless $depth
508 6 7 $median <= $depth ? :
511 2 89 if $e < 0 or $modulus <= $e or $e != int $e
521 36 93 if $d > $limit
522 1 92 if substr($seen, $d, 1)++
529 38 30 if $d > $limit
530 0 30 if substr($seen, $d, 1)++
534 2 7 if 0 <= index($seen, 0)
535 2 5 if $median <= $depth
536 4 1 unless (defined $factor)
537 3 1 unless &is_power($order, 0, \$factor)
539 4 1 if (1 < $factor)
542 3 8 if 1 == $elements[$i + 1] - $elements[$i]
544 1 3 if $mx
549 1 3 unless defined $multiple
551 3 0 $d1 >= 0 ? :
552 3 0 if abs $d2 > abs $d1
555 1 17 if $d != $d1 and $d != $d2
571 3 25 unless $pds
615 3 20 unless $spc
645 1 2 unless wantarray
654 2 85 unless -$modulus < $delta and $delta < $modulus
655 8 79 unless $delta
660 34 45 $elements[0] < $elements[-1] ? :
662 62 17 if (defined(my $z = $that->[10]))
666 6 73 if (defined(my $e = $that->[11]))
690 35 25 if (($order - 1) % 3)
691 14 21 unless $zeta
695 3 11 unless $zeta or $this->contains(0)
709 2 14 unless $rotators
710 12 2 if "ARRAY" eq ref $rotators->[0]
712 13 1 $mx < @{$rotators;} ? :
724 12 1 $r ? :
733 1 4 unless wantarray
742 6 34 if 1 == $factor
743 1 33 if &gcd($modulus, $factor) != 1
752 32 1 if (defined(my $log = $that->[9]))
769 22 77 unless $up
774 555 364 if ($c < $de) { }
775 53 502 if (++$ux > $order)
779 1 554 if $ux == $lx
782 1 363 if ++$lx > $order
785 169 748 $ue < $le ? :
787 2 97 if $bogus
788 75 22 $up ? :
795 1 1 unless (defined $peak)
812 2 18 if $d < 0
813 6 14 if ($d > $d_max)
827 56 9 unless (defined $zeta)
841 1 15 if $this->[2] == 1
843 8 7 unless (defined $eta)
859 94 157 if $lx and $elements->[0] <= $elem
863 487 277 if ($e <= $elem) { }
864 60 427 if $e == $elem
879 6 17 if $cmp
886 6 51 if $cmp
887 11 40 unless ++$lx <= $order
888 11 40 unless ++$rx <= $order
897 6 11 if $order != $that->order
901 6 5 unless ($delta0)
903 2 11 if $re->[$x] != $le->[$x]
908 2 3 $delta0 < 0 ? :
911 2 14 if $delta != $delta0 and $delta != $delta1
921 6 10 if $order != $that->order
932 19 18 unless $cmp
933 28 9 if ($cmp <= 0)
934 8 20 unless ++$lx <= $order
935 7 21 if ++$li > $order
938 23 7 if ($cmp >= 0)
939 5 18 unless ++$rx <= $order
940 3 20 if ++$ri > $order
959 1 3 unless defined $f1