Branch Coverage

blib/lib/Math/PlanePath.pm
Criterion Covered Total %
branch 39 108 36.1


line true false branch
34 352 24 if (ref $self and defined $self->{'n_start'}) { }
62 1 1 $self->x_negative ? :
66 2 4 $self->y_negative ? :
74 2 0 if (defined(my $x_minimum = $self->x_minimum) and defined(my $y_minimum = $self->y_minimum))
88 0 0 if (defined $x_minimum and $x_minimum >= 0 and defined $y_minimum and $y_minimum >= 0)
118 0 0 if (defined(my $y_minimum = $self->y_minimum) and defined(my $x_max = $self->x_maximum)) { }
131 0 0 if (defined($m = $self->diffxy_minimum) and $m >= 0)
134 0 0 if (defined($m = $self->diffxy_maximum) and $m <= 0)
142 0 0 if (defined(my $min = $self->diffxy_minimum) and defined(my $max = $self->diffxy_maximum))
161 0 0 (defined $x_maximum && $x_maximum) < 0 ? :
0 0 (defined $x_minimum && $x_minimum) > 0 ? :
164 0 0 (defined $y_maximum && $y_maximum) < 0 ? :
0 0 (defined $y_minimum && $y_minimum) > 0 ? :
178 1 0 $self->xy_is_visited(0, 0) ? :
230 0 0 if (defined(my $dx_minimum = $self->dx_minimum))
231 0 0 if ($dx_minimum >= 0)
237 0 0 if (defined(my $dx_minimum = $self->dx_minimum) and defined(my $dx_maximum = $self->dx_maximum))
247 0 0 if (defined(my $dy_minimum = $self->dy_minimum))
248 0 0 if ($dy_minimum >= 0)
254 0 0 if (defined(my $dy_minimum = $self->dy_minimum) and defined(my $dy_maximum = $self->dy_maximum)) { }
287 5028 4376 if (defined(my $n = (shift())->xy_to_n(@_)))
302 0 0 unless my($x, $y) = $self->n_to_xy($n)
309 4 5004 unless my($x, $y) = $self->n_to_xy($n)
311 0 5004 unless my($next_x, $next_y) = $self->n_to_xy($n + $self->arms_count)
319 0 31 unless my($x, $y) = $self->n_to_xy($n)
325 0 0 defined $rsquared ? :
330 0 8 unless my(@n1) = $self->xy_to_n_list($x1, $y1)
331 0 8 unless my(@n2) = $self->xy_to_n_list($x2, $y2)
345 3125 3133 unless my(@n1) = $self->xy_to_n_list($x1, $y1)
346 1251 1882 unless my(@n2) = $self->xy_to_n_list($x2, $y2)
351 1888 0 if (abs $n1 - $n2 == $arms)
372 8 8 unless my($dx, $dy) = $self->n_to_dxdy($n - $self->arms_count)
374 0 8 unless my($next_dx, $next_dy) = $self->n_to_dxdy($n)
395 0 0 if ($n >= $self->n_start) { }
425 117 0 if ($depth >= 0 and defined(my $n = $self->tree_depth_to_n($depth + 1))) { }
435 0 0 if (defined(my $n = $self->tree_depth_to_n($depth)) and defined(my $n_end = $self->tree_depth_to_n_end($depth)))
444 0 0 if (defined(my $n = $self->tree_depth_to_n($depth)) and defined(my $n_end = $self->tree_depth_to_n_end($depth)))
463 0 0 if (defined $self->tree_n_parent($n) or not $self->tree_n_num_children($n))
478 0 0 if ($num_roots == 0)
482 0 0 unless ($n >= $n_start)
485 0 0 if ($num_roots == 1)
491 0 0 unless (defined $n_parent)
494 0 0 unless ($n_parent < $n)
538 51724 128500 if ($_[$i] > $_[$max])
547 25364 135693 if ($_[$i] < $_[$min])
558 16 167454 if (ref $x)
559 5 11 if ($x->isa('Math::BigFloat') or $x->isa('Math::BigRat'))
573 0 0 if $x1 > $x2
574 0 0 if $y1 > $y2
575 0 0 if ($x2 < 0 or $y2 < 0)
584 1008 84772 if (ref $n and $n->isa('Math::BigInt'))
586 1008 0 if (not ref $d or $d < 1000000)
602 1 147215 if (ref $_[0] and $_[0]->isa('Math::BigInt')) { }
604 1 0 if (not ref $d or $d < 1000000)