Branch Coverage

blib/lib/Math/PlanePath/DragonCurve.pm
Criterion Covered Total %
branch 18 82 21.9


line true false branch
125 0 491 if ($n < 0)
126 0 491 if (is_infinite($n))
175 3 2007 if ($n < 0)
176 0 2007 if (is_infinite($n))
222 0 29 if (is_infinite($x))
225 0 29 if (is_infinite($y))
229 7 22 if ($x == 0 and $y == 0)
240 18 62 unless defined $t
242 0 62 unless my($tx, $ty) = $self->n_to_xy($t)
245 35 27 if ($tx == $x and $ty == $y)
247 5 30 if (@n_list and $t < $n_list[0]) { }
252 13 22 if (@n_list == 2)
267 0 0 if ($arms_count == 4)
276 0 0 if ($arm < $arms_count)
280 0 0 if ($arm == 2 and $arms_count == 1)
534 0 0 if ($n < 0)
535 0 0 if (is_infinite($n))
548 0 0 if ($level < 0)
549 0 0 if ($level <= 2)
550 0 0 if (is_infinite($level))
566 0 0 if ($level < 0)
567 0 0 if ($level <= 3)
568 0 0 if (is_infinite($level))
582 0 0 if ($level < 0)
588 0 0 if ($level < 0)
589 0 0 $level == 0 ? :
594 0 0 if ($level < 0)
600 0 0 if ($level < 0)
608 0 0 if ($level < 0)
609 0 0 if ($level == 0)
618 0 0 if ($level < 0)
619 0 0 if ($level <= 2)
620 0 0 if (is_infinite($level))
636 0 0 if ($level < 0)
637 0 0 if ($level <= 3)
638 0 0 if (is_infinite($level))
657 0 0 if ($level < 0)
658 0 0 if ($level <= $#_UNDOCUMENTED_level_to_visited)
659 0 0 if (is_infinite($level))
679 0 0 if (is_infinite($n))
680 0 0 unless ($n >= 0)