Branch Coverage

blib/lib/Data/Petitcom/BMP.pm
Criterion Covered Total %
branch 29 48 60.4


line true false branch
40 27 0 if $_[0] and $_[0] <= 256
41 27 0 if $_[0] and $_[0] <= 192
44 1 13 unless $width and $height
45 10 13 if $height == $_
58 0 10 if $sp_width > $width or $width % $sp_width
60 0 10 if $sp_height > $height or $height % $sp_height
72 4 6 $vflip ? :
85 0 197632 if $debug
104 0 3 unless is_valid_width($width)
107 0 3 unless is_valid_height($height)
111 0 3 unless is_valid_spsize($sp_width, $sp_height)
138 0 5 unless is_valid_spsize($sp_width, $sp_height)
162 0 19 if $type ne 'BM'
167 0 19 unless is_valid_width($width)
170 0 19 unless is_valid_height($height)
173 0 19 if $bit != 8
178 6 13 if (my $lack = $width * $height - @pixels)
191 0 5 ref $_[0] eq 'HASH' ? :
194 0 5 unless is_valid_width($width)
197 0 5 unless is_valid_height($height)
200 0 5 if scalar @$colormap != 256
203 0 5 if scalar @$pixels != $width * $height
216 1 5 ref $_[0] eq 'ARRAY' ? :
231 0 6 ref $_[0] eq 'ARRAY' ? :