Condition Coverage

lib/CSS/SpriteBuilder/Sprite.pm
Criterion Covered Total %
condition 9 35 25.7


and 3 conditions

line !l l&&!r l&&r condition
89 0 0 3 $_->width <= $$self{'max_sprite_width'} and $_->height <= $$self{'max_sprite_height'}
0 3 0 !$$self{'max_image_size'} || -s $_->source_file <= $$self{'max_image_size'} and !$$self{'max_image_width'} || $_->width <= $$self{'max_image_width'}
0 3 0 !$$self{'max_image_size'} || -s $_->source_file <= $$self{'max_image_size'} and !$$self{'max_image_width'} || $_->width <= $$self{'max_image_width'} and !$$self{'max_image_height'} || $_->height <= $$self{'max_image_height'}
122 3 0 0 $$self{'layout'} ne 'packed' and $$image{'is_repeat'}
163 0 0 0 $$self{'_y'} > 0 and $$self{'layout'} eq 'horizontal' || $$self{'_y'} + $image->height + $$self{'margin'} > $$self{'max_sprite_height'}
183 3 0 0 $$self{'layout'} ne 'packed' && $image->is_repeat

or 2 conditions

line l !l condition
89 3 0 $_->width <= $$self{'max_sprite_width'} and $_->height <= $$self{'max_sprite_height'} or die q[The image resolution is bigger than maximum configured value for '] . $_->source_file . q[']

or 3 conditions

line l !l&&r !l&&!r condition
89 0 3 0 !$$self{'max_image_size'} || -s $_->source_file <= $$self{'max_image_size'}
0 3 0 !$$self{'max_image_width'} || $_->width <= $$self{'max_image_width'}
0 3 0 !$$self{'max_image_height'} || $_->height <= $$self{'max_image_height'}
155 0 0 0 $$self{'layout'} eq 'vertical' or $$self{'_x'} + $image->width + $x_margin > $$self{'max_sprite_width'}
163 0 0 0 $$self{'layout'} eq 'horizontal' || $$self{'_y'} + $image->height + $$self{'margin'} > $$self{'max_sprite_height'}