Branch Coverage

blib/lib/Math/NumSeq/BalancedBinary.pm
Criterion Covered Total %
branch 55 68 80.8


line true false branch
135 4 119 if (not @$bits) { }
144 14 167 if (scalar @$bits < 2)
147 0 14 if (++$self->{'wantlen'} == 32)
156 105 62 if ($bit < $bits->[-2])
185 4 32 if ($i < 1)
188 0 32 if (_is_infinite($i))
205 0 97 if ($z == 16)
207 0 0 unless (ref $zero)
218 32 65 if ($i < $catalan)
232 75 35 if ($z > $o)
235 45 30 if ($i < $znum)
251 0 32 if (not ref $zero and @ret >= 64)
276 26 32 if ($value < 2 or $value != int $value)
279 0 32 if (_is_infinite($value))
283 0 32 unless my(@bits) = _digit_split_lowtohigh($value, 2)
286 10 22 unless _pred_on_bits($self, \@bits)
301 0 64 if ($z > 16)
321 42 64 if ($bit) { }
349 21 1885 if ($value < 2)
352 0 1885 if (_is_infinite($value))
358 32 1853 if ($value != $int)
364 681 1204 if (scalar @bits & 1)
383 0 8492 if ($z > 16)
404 2581 4605 if ($bit) { }
405 387 2194 if ($o == 0)
414 1323 3282 if ($z == $o)
455 176 188 if ($value != int $value or _is_infinite($value))
459 0 188 unless my(@bits) = _digit_split_lowtohigh($value, 2)
467 84 136 if (scalar @$bits & 1)
471 136 0 if ($self->{'direction'} eq 'HtoL')
479 58 608 if ($count[0] > $count[1])
510 8 12 if ($value <= 2)
515 11 1 unless (defined $log2)
520 1 11 if (ref $value and $value->isa('Math::BigInt'))