Branch Coverage

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


line true false branch
125 0 500 if ($n < 0)
126 0 500 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 5 24 if ($x == 0 and $y == 0)
240 16 71 unless defined $t
242 0 71 unless my($tx, $ty) = $self->n_to_xy($t)
245 40 31 if ($tx == $x and $ty == $y)
247 8 32 if (@n_list and $t < $n_list[0]) { }
252 16 24 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)