Branch Coverage

blib/lib/Math/PlanePath/AlternateTerdragon.pm
Criterion Covered Total %
branch 48 72 66.6


line true false branch
81 0 0 $self->{'arms'} == 1 ? :
90 0 0 $self->{'arms'} <= 2 ? :
95 0 0 $self->{'arms'} <= 1 ? :
100 0 0 $self->{'arms'} == 1 ? :
122 0 0 $self->{'arms'} == 1 ? :
145 0 28 if ($n < 0)
146 0 28 if (is_infinite($n))
171 25 52 if ($digit == 1) { }
25 27 elsif ($digit == 2) { }
177 18 59 unless @n
179 24 35 if ($digit == 1) { }
19 16 elsif ($digit == 2) { }
192 0 28 if ($rot >= 3)
196 6 22 if ($rot == 1) { }
3 19 elsif ($rot == 2) { }
205 0 0 if ($self->{'arms'} == 6) { }
224 0 35 if (is_infinite($sum))
225 0 35 if ($sum % 2)
228 11 24 if ($x == 0 and $y == 0)
238 4 68 if $arm >= $arms_count
239 18 50 if ($arm & 1)
263 51 441 if ($x == 0 and $y == 0)
264 10 130 if ($d == 2 and $x == 1 and $y == 1)
265 3 160 if ($d == 0 and $x == -2 and $y == 0)
266 8 130 if ($d == 1 and $x == 1 and $y == -1)
268 296 124 if ($a)
271 173 247 if ($a == 1)
290 46 26 if (scalar @ndigits & 1)
313 0 4 if ($n < 0)
316 0 4 if (is_infinite($n))
328 1 1 if ($ndigits[$i] == 1)
329 0 1 $i & 1 ? :
336 3 1 if ($n)
342 1 1 if ($ndigits[$i] != 2)
371 0 0 if ($n < 0)
372 0 0 if (is_infinite($n))