blib/lib/SDLx/Surface.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 34 | 86 | 39.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
51 | 0 | 0 | 8 | $width and $height |
83 | 0 | 0 | 0 | $width and $height |
158 | 0 | 0 | 0 | $_[1] and $_[1]->isa('SDL::Rect') |
168 | 11 | 0 | 0 | $type and lc $type eq 'bmp' |
222 | 0 | 1 | 1 | ref $rects eq 'ARRAY' and not ref $rects->[0] |
273 | 0 | 0 | 9 | ref $center eq 'ARRAY' and scalar @$center == 2 |
295 | 0 | 0 | 4 | ref $center eq 'ARRAY' and scalar @$center == 2 |
344 | 0 | 0 | 0 | ref $center eq 'ARRAY' and scalar @$center == 2 |
355 | 0 | 0 | 0 | ref $center eq 'ARRAY' and scalar @$center == 2 |
373 | 0 | 0 | 0 | ref $center eq 'ARRAY' and scalar @$center == 2 |
402 | 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'} | |
409 | 0 | 0 | 3 | ref $vector eq 'ARRAY' and scalar @$vector == 2 |
line | l | !l | condition |
---|---|---|---|
53 | 1 | 7 | $options{'flags'} ||= 268435456 |
54 | 3 | 5 | $options{'depth'} ||= 32 |
56 | 0 | 8 | $options{'redmask'} ||= 4278190080 |
57 | 1 | 7 | $options{'greenmask'} ||= 16711680 |
58 | 0 | 8 | $options{'bluemask'} ||= 65280 |
59 | 0 | 8 | $options{'alphamask'} ||= 255 |
85 | 0 | 0 | $options{'depth'} ||= 32 |
86 | 0 | 0 | $options{'flags'} ||= 268435456 |
225 | 0 | 2 | $rect[0] ||= 0 |
226 | 1 | 1 | $rect[1] ||= 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
49 | 6 | 2 | 0 | $options{'width'} || $options{'w'} |
50 | 6 | 2 | 0 | $options{'height'} || $options{'h'} |
81 | 0 | 0 | 0 | $options{'width'} || $options{'w'} |
82 | 0 | 0 | 0 | $options{'height'} || $options{'h'} |
168 | 0 | 11 | 0 | $type and lc $type eq 'bmp' or lc substr($filename, -4, 4) eq '.bmp' |
222 | 1 | 1 | 1 | not defined $rects or ref $rects eq 'ARRAY' and not ref $rects->[0] |
227 | 1 | 1 | 0 | $rect[2] ||= $surface->w |
228 | 1 | 1 | 0 | $rect[3] ||= $surface->h |