Condition Coverage

blib/lib/Data/BitStream/Base.pm
Criterion Covered Total %
condition 26 53 49.0


and 2 conditions

line l !l condition
143 0 28 $_host_word_size == 64 and !1

and 3 conditions

line !l l&&!r l&&r condition
237 0 0 0 defined $header and length $header > 0
288 118 64 0 $self->writing and @{$self->_code_pos_array;}
321 47 9 1 defined $skipping and @{$self->_code_pos_array;} == 0
335 7 3 0 $type eq 'write' and $self->mode eq 'ro'
337 6 4 0 $type eq 'read' and $self->mode eq 'wo'
366 0 0 0 defined $min and defined $max
414 0 0 6290 defined $val and $val >= 0
481 1 1 9684 defined $val and $val >= 0
544 0 0 3493 defined $val and $val >= 0
598 0 1 2878 defined $bits and $bits >= 0
698 0 0 6 defined $source and $source->can('to_string')

or 3 conditions

line l !l&&r !l&&!r condition
118 0 0 0 defined $Data::BitStream::Base::Config{'use64bitint'} && $Data::BitStream::Base::Config{'use64bitint'} eq 'define' || defined $Data::BitStream::Base::Config{'use64bitall'} && $Data::BitStream::Base::Config{'use64bitall'} eq 'define' || defined $Data::BitStream::Base::Config{'longsize'} && $Data::BitStream::Base::Config{'longsize'} >= 8
169 0 10 77776 $newpos < 0 or $newpos > $len
540 0 0 817 $bits <= 0 or $bits > maxbits
553 2 1 839 $bits <= 0 or $bits > maxbits
652 2 0 0 shift() || int((length($vec) + 7) / 8)
673 5 0 0 shift() || int((length($vec) + 7) / 8)