line |
true |
false |
branch |
45
|
0 |
3 |
unless (grep {$_ eq $$self{'layout'};} @{['packed', 'horizontal', 'vertical'];}) |
57
|
0 |
0 |
unless $$self{'target_file'} |
58
|
0 |
0 |
unless $$self{'source_images'} |
84
|
3 |
0 |
if ($$self{'source_dir'}) |
86
|
0 |
3 |
unless chdir $$self{'source_dir'} |
89
|
3 |
0 |
if !$$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'} |
106
|
3 |
0 |
if ($save_dir) |
107
|
0 |
3 |
unless chdir $save_dir |
110
|
0 |
3 |
wantarray ? : |
122
|
0 |
3 |
if $$self{'layout'} ne 'packed' and $$image{'is_repeat'} |
131
|
3 |
0 |
if ($self->is_blank) { } |
135
|
0 |
0 |
if $$self{'_x'} |
151
|
3 |
0 |
if $self->is_blank |
153
|
0 |
0 |
$$self{'_x'} == 0 ? : |
155
|
0 |
0 |
if ($$self{'layout'} eq 'vertical' or $$self{'_x'} + $image->width + $x_margin > $$self{'max_sprite_width'}) |
163
|
0 |
0 |
if ($$self{'_y'} > 0 and $$self{'layout'} eq 'horizontal' || $$self{'_y'} + $image->height + $$self{'margin'} > $$self{'max_sprite_height'}) |
181
|
0 |
3 |
if $$self{'is_add_timestamp'} |
183
|
0 |
3 |
defined $image->is_background ? : |
|
0 |
3 |
(defined $image->is_background ? $image->is_background : $$self{'is_background'}) ? : |
|
0 |
0 |
$$self{'layout'} eq 'horizontal' ? : |
|
0 |
3 |
$$self{'layout'} ne 'packed' && $image->is_repeat ? : |
219
|
0 |
3 |
$$self{'layout'} eq 'vertical' ? : |
227
|
0 |
3 |
if $self->is_blank |
231
|
0 |
3 |
if $$self{'transparent_color'} |
248
|
3 |
0 |
unless scalar @{$$self{'_repeated_images'};} |
250
|
0 |
0 |
$$self{'layout'} eq 'vertical' ? : |
252
|
0 |
0 |
$$self{'layout'} eq 'vertical' ? : |
256
|
0 |
0 |
$original_sprite_size % $max_image_size ? : |
262
|
0 |
0 |
unless (grep {$extented_sprite_size % $_;} @images_size) |
263
|
0 |
0 |
$meter eq 'width' ? : |
273
|
0 |
0 |
$$self{'layout'} eq 'vertical' ? : |