Branch Coverage

blib/lib/Data/BitMask.pm
Criterion Covered Total %
branch 64 90 71.1


line true false branch
182 0 3 if scalar(@constants) % 2
211 0 4 if scalar(@constants) % 2
223 3 249 if (ref $name eq "ARRAY")
237 0 84 if $_[1] =~ /(\s|\|)/
238 0 84 if int $_[1] eq $_[1]
239 0 84 unless int $_[2] eq $_[2]
240 0 84 if int $_[2] < 0
261 0 84 if (exists $self->{'forward_cache'}{$name})
262 0 0 if $self->{'forward_cache'}{$name} != $value
277 1 83 if $params->{'full_match'}
293 46 647 if $namer eq $named
294 114 533 if ($valued == ($valued & $valuer))
339 9 48 if (ref $struct eq 'ARRAY') { }
20 28 elsif (ref $struct eq 'HASH') { }
2 26 elsif (int $struct eq $struct) { }
342 5 4 if (exists $self->{'build_mask_cache'}{$build_mask_cache_key})
347 7 13 if (exists $self->{'build_mask_cache'}{$build_mask_cache_key})
353 1 1 int $struct < 0 ? :
356 5 21 if (exists $self->{'build_mask_cache'}{$build_mask_cache_key})
364 11 58 if (int $i eq $i) { }
365 1 10 int $i < 0 ? :
367 1 57 unless exists $self->{'forward_cache'}{$i}
373 2 4 if (int $i eq $i) { }
374 0 2 int $i < 0 ? :
376 0 4 unless exists $self->{'forward_cache'}{$i}
408 24 0 if (int $mask eq $mask) { }
409 0 24 int $mask < 0 ? :
414 6 18 if (exists $self->{'break_mask_cache'}{$mask})
420 0 18 $mask < 0 ? :
423 68 60 if (int $value == ($mask & int $value))
425 1 67 unless scalar @names
431 3 15 unless $testmask == $mask
465 20 0 if (int $mask eq $mask) { }
466 0 20 int $mask < 0 ? :
471 4 16 if (exists $self->{'reverse_cache'}{$mask})
475 5 11 if (exists $self->{'explain_mask_cache'}{$mask})
483 31 34 unless exists $struct->{$namer}
485 48 15 if exists $struct->{$named}
519 0 0 if (int $const eq $const) { }
520 0 0 int $const < 0 ? :
522 0 0 unless exists $self->{'forward_cache'}{$const}
541 2 0 if (int $const eq $const) { }
542 0 2 int $const < 0 ? :
544 0 0 unless exists $self->{'forward_cache'}{$const}
548 1 1 if exists $self->{'reverse_cache'}{$const}