Branch Coverage

blib/lib/Data/BitStream/Code/Gamma.pm
Criterion Covered Total %
branch 31 34 91.1


line true false branch
35 0 11064 unless $self->writing
39 0 14413 unless defined $val and $val >= 0
48 2030 12383 if ($val == 0) { }
824 11559 elsif ($val == 1) { }
575 10984 elsif ($val == 2) { }
2 10982 elsif ($val == $maxval) { }
55 9494 1488 if ($base < 16) { }
68 1 25130 if $self->writing
70 22190 2940 if (not defined $count) { }
22 2918 elsif ($count < 0) { }
0 2918 elsif ($count == 0) { }
80 198 35543 unless defined $base
81 4671 30872 if ($base == 0) { }
4 30868 elsif ($base == $maxbits) { }
5 30863 elsif ($base > $maxbits) { }
86 5 30858 unless defined $remainder
91 2940 22165 wantarray ? :