Branch Coverage

blib/lib/Data/BitMask.pm
Criterion Covered Total %
branch 54 80 67.5


line true false branch
154 0 3 if scalar(@constants) % 2
183 0 1 if scalar(@constants) % 2
195 3 87 if (ref $name eq 'ARRAY')
209 0 30 if $_[1] =~ /(\s|\|)/
210 0 30 if int $_[1] eq $_[1]
211 0 30 unless int $_[2] eq $_[2]
212 0 30 if int $_[2] < 0
230 0 30 if (exists $$self{'forward_cache'}{$name})
231 0 0 if $$self{'forward_cache'}{$name} != $value
246 1 29 if $$params{'full_match'}
262 19 188 if $namer eq $named
263 36 152 if ($valued == ($valued & $valuer))
307 1 28 if (ref $struct eq 'ARRAY') { }
10 18 elsif (ref $struct eq 'HASH') { }
2 16 elsif (int $struct eq $struct) { }
313 1 1 int $struct < 0 ? :
320 11 39 if (int $i eq $i) { }
321 1 10 int $i < 0 ? :
323 1 38 unless exists $$self{'forward_cache'}{$i}
329 2 3 if (int $i eq $i) { }
330 0 2 int $i < 0 ? :
332 0 3 unless exists $$self{'forward_cache'}{$i}
363 11 0 if (int $mask eq $mask) { }
364 0 11 int $mask < 0 ? :
371 0 11 $mask < 0 ? :
374 39 25 if (int $value == ($mask & int $value))
376 1 38 unless scalar @names
382 3 8 unless $testmask == $mask
415 10 0 if (int $mask eq $mask) { }
416 0 10 int $mask < 0 ? :
421 3 7 if exists $$self{'reverse_cache'}{$mask}
427 16 18 unless exists $$struct{$namer}
429 25 6 if exists $$struct{$named}
462 0 0 if (int $const eq $const) { }
463 0 0 int $const < 0 ? :
465 0 0 unless exists $$self{'forward_cache'}{$const}
484 2 0 if (int $const eq $const) { }
485 0 2 int $const < 0 ? :
487 0 0 unless exists $$self{'forward_cache'}{$const}
491 1 1 if exists $$self{'reverse_cache'}{$const}