Condition Coverage

blib/lib/SDLx/Surface.pm
Criterion Covered Total %
condition 33 86 38.3


and 3 conditions

line !l l&&!r l&&r condition
49 0 0 8 $width and $height
81 0 0 0 $width and $height
156 0 0 0 $_[1] and $_[1]->isa('SDL::Rect')
166 11 0 0 $type and lc $type eq 'bmp'
220 0 1 1 ref $rects eq 'ARRAY' and not ref $$rects[0]
271 0 0 9 ref $center eq 'ARRAY' and scalar @$center == 2
293 0 0 4 ref $center eq 'ARRAY' and scalar @$center == 2
342 0 0 0 ref $center eq 'ARRAY' and scalar @$center == 2
353 0 0 0 ref $center eq 'ARRAY' and scalar @$center == 2
371 0 0 0 ref $center eq 'ARRAY' and scalar @$center == 2
400 0 0 1 ref $font eq 'HASH' and exists $$font{'data'}
0 0 1 ref $font eq 'HASH' and exists $$font{'data'} and exists $$font{'cw'}
0 0 1 ref $font eq 'HASH' and exists $$font{'data'} and exists $$font{'cw'} and exists $$font{'ch'}
407 0 0 3 ref $vector eq 'ARRAY' and scalar @$vector == 2

or 2 conditions

line l !l condition
51 1 7 $options{'flags'} ||= 268435456
52 3 5 $options{'depth'} ||= 32
54 0 8 $options{'redmask'} ||= 4278190080
55 1 7 $options{'greenmask'} ||= 16711680
56 0 8 $options{'bluemask'} ||= 65280
57 0 8 $options{'alphamask'} ||= 255
83 0 0 $options{'depth'} ||= 32
84 0 0 $options{'flags'} ||= 268435456
223 0 2 $rect[0] ||= 0
224 1 1 $rect[1] ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
47 6 2 0 $options{'width'} || $options{'w'}
48 6 2 0 $options{'height'} || $options{'h'}
79 0 0 0 $options{'width'} || $options{'w'}
80 0 0 0 $options{'height'} || $options{'h'}
166 0 11 0 $type and lc $type eq 'bmp' or lc substr($filename, -4, 4) eq '.bmp'
220 1 0 2 not defined $rects or ref $rects eq 'ARRAY' and not ref $$rects[0]
225 1 1 0 $rect[2] ||= $surface->w
226 1 1 0 $rect[3] ||= $surface->h