Condition Coverage

blib/lib/Image/BMP.pm
Criterion Covered Total %
condition 35 104 33.6


and 3 conditions

line !l l&&!r l&&r condition
187 240 11 11 $k =~ /^_/ and $k ne "_pipe"
251 11 0 $k =~ /^_/ and $k ne "_pipe" and $k ne "_colors"
200 0 0 0 $bmp and $bmp->{'fh'}
503 113543 0 0 not $bmp->{'ColorsUsed'} and $bmp->{'BitCount'} != 24
532 74146 237184 921 $pad and $x == $bmp->{'Width'} - 1
536 3 11 312237 defined $y and $y >= 0
550 3 0 312248 defined $y and $y >= 0
572 0 0 0 $bmp->{'_image_remembered'} and not $bmp->{'add_pixel'}
583 9 0 2 $bmp->{'Compression'} == 1 && $bmp->{'BitCount'} == 8
585 9 2 0 $bmp->{'Compression'} and not $rle
650 0 0 0 $pad and read_bmp($bmp, 1)
669 11 0 0 defined $x and $x != $bmp->{'Width'} - 1 || $y

or 2 conditions

line l !l condition
252 0 921 $chunk || 4
379 11 0 ('BI_RGB', 'BI_RLE8', 'BI_RLE4', 'BI_BITFIELDS')[$bmp->{'Compression'}] || '??'
738 0 0 $bmp->{'Image'}[$x][$y] || 0
752 0 0 $bmp->{'Image'}[$x][$y] || 0

or 3 conditions

line l !l&&r !l&&!r condition
166 0 11 0 $file || $bmp->{'file'}
263 0 0 0 $wfile || $bmp->{'wfile'}
399 9 2 0 $bmp->{'HeaderSize'} == 40 or $bmp->{'HeaderSize'} == 108
404 11 0 0 $bmp->{'ColorsUsed'} || 1 << $bmp->{'BitCount'}
503 198708 0 113543 $bmp->{'BitCount'} == 1 or not $bmp->{'ColorsUsed'} and $bmp->{'BitCount'} != 24
515 0 0 0 $bmp->{'BitCount'} == 1 or not $bmp->{'ColorsUsed'}
556 312248 0 0 not $bmp->{'add_pixel'} or $bmp->{'remember_image'}
589 4 7 0 $bmp->{'BitCount'} == 1 or $bmp->{'BitCount'} % 8 == 0
599 11 0 0 $bmp->{'ImageSize'} || $bmp->{'_size'}
665 11 0 0 !$bmp->{'add_pixel'} || $bmp->{'remember_image'}
669 0 0 0 $x != $bmp->{'Width'} - 1 || $y
678 0 11 0 $bmp->{'_image_loaded'} or $bmp->load
731 0 0 0 $x >= $bmp->{'Width'} or $x < 0
0 0 0 $x >= $bmp->{'Width'} or $x < 0 or $y >= $bmp->{'Height'}
0 0 0 $x >= $bmp->{'Width'} or $x < 0 or $y >= $bmp->{'Height'} or $y < 0
746 0 0 0 $x >= $bmp->{'Width'} or $x < 0
0 0 0 $x >= $bmp->{'Width'} or $x < 0 or $y >= $bmp->{'Height'}
0 0 0 $x >= $bmp->{'Width'} or $x < 0 or $y >= $bmp->{'Height'} or $y < 0
773 0 0 11 not $file or $file eq "-"
789 0 0 11 not $file or $file eq "-"