Branch Coverage

blib/lib/Bitmask/Data.pm
Criterion Covered Total %
branch 49 50 98.0


line true false branch
170 7 2 ($bitmask & $self->{'bitmask'}) ne $self->bitmask_empty ? :
174 8 1 $self->{'bitmask'} ne $self->bitmask_empty ? :
248 2 15 unless $length and $length > 0
263 1 224 if $count > $class->bitmask_length
280 4 181 unless $class->bitmask_lazyinit
285 5 180 if ($class->bitmask_lazyinit == 2) { }
297 1 223 unless $bit =~ /^[$ZERO$ONE]{$length}$/
301 1 222 if exists $items->{$name}
304 2 220 if grep {($_ & $bit) ne $class->bitmask_empty;} values %{$items;}
312 2 8 if defined $class->bitmask_default
386 0 104 unless defined $param
418 4 98 if (CORE::length $bit > $class->bitmask_length)
422 1 97 if (($class->bitmask_full | $bit) ne $class->bitmask_full)
444 12 82 unless defined $param
447 4 78 if (ref $param eq 'ARRAY') { }
535 1 26 unless scalar keys %{$class->bitmask_items;}
539 17 9 if (scalar @args) { }
560 9 26 if ref $class
734 61 141 if ($bit & $self->{'bitmask'}) ne $self->bitmask_empty
739 23 3 wantarray ? :
771 2 12 if ($bitmask_items->{$key} & $self->{'bitmask'}) ne $self->bitmask_empty
792 1 14 if ($self->bitmask_length > 64 or $self->bitmask_length > 32 and not $Bitmask::Data::Config{'use64bitint'}) { }
912 3 1 ($bitmask & $self->{'bitmask'}) eq $bitmask ? :
933 2 4 $bitmask eq $self->{'bitmask'} ? :
954 3 3 ($bitmask & $self->{'bitmask'}) ne $self->bitmask_empty ? :