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 26 48 if ($digit == 1) { }
26 22 elsif ($digit == 2) { }
177 13 61 unless @n
179 27 34 if ($digit == 1) { }
16 18 elsif ($digit == 2) { }
192 2 26 if ($rot >= 3)
196 8 20 if ($rot == 1) { }
0 20 elsif ($rot == 2) { }
205 0 0 if ($self->{'arms'} == 6) { }
224 0 35 if (is_infinite($sum))
225 0 35 if ($sum % 2)
228 10 25 if ($x == 0 and $y == 0)
238 3 72 if $arm >= $arms_count
239 28 44 if ($arm & 1)
263 44 447 if ($x == 0 and $y == 0)
264 16 128 if ($d == 2 and $x == 1 and $y == 1)
265 9 140 if ($d == 0 and $x == -2 and $y == 0)
266 6 148 if ($d == 1 and $x == 1 and $y == -1)
268 298 118 if ($a)
271 162 254 if ($a == 1)
290 32 43 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))