Branch Coverage

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


line true false branch
169 7 2 ($bitmask & $$self{'bitmask'}) ne $self->bitmask_empty ? :
173 8 1 $$self{'bitmask'} ne $self->bitmask_empty ? :
247 2 15 unless $length and $length > 0
262 1 224 if $count > $class->bitmask_length
279 4 181 unless $class->bitmask_lazyinit
284 5 180 if ($class->bitmask_lazyinit == 2) { }
296 1 223 unless $bit =~ /^[$ZERO$ONE]{$length}$/
299 1 222 if exists $$items{$name}
303 2 220 if grep {($_ & $bit) ne $class->bitmask_empty;} values %{$items;}
311 2 8 if defined $class->bitmask_default
385 0 104 unless defined $param
417 4 98 if (CORE::length $bit > $class->bitmask_length)
421 1 97 if (($class->bitmask_full | $bit) ne $class->bitmask_full)
443 12 82 unless defined $param
446 4 78 if (ref $param eq 'ARRAY') { }
534 1 26 unless scalar keys %{$class->bitmask_items;}
538 17 9 if (scalar @args) { }
559 9 26 if ref $class
732 61 141 if ($bit & $$self{'bitmask'}) ne $self->bitmask_empty
738 23 3 wantarray ? :
769 2 12 if ($$bitmask_items{$key} & $$self{'bitmask'}) ne $self->bitmask_empty
791 1 14 if ($self->bitmask_length > 64 or $self->bitmask_length > 32 and not $Bitmask::Data::Config{'use64bitint'}) { }
911 3 1 ($bitmask & $$self{'bitmask'}) eq $bitmask ? :
932 2 4 $bitmask eq $$self{'bitmask'} ? :
953 3 3 ($bitmask & $$self{'bitmask'}) ne $self->bitmask_empty ? :