blib/lib/Image/Select.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 7 | 30 | 23.3 |
line | true | false | branch |
---|---|---|---|
45 | 3 | 1 | if (defined $self->{'type'}) |
50 | 1 | 2 | unless (defined $self->{'path_to_images'} and -d $self->{'path_to_images'}) |
71 | 0 | 2 | unless (@{$self->{'_images_to_select'};}) |
86 | 0 | 0 | if ($self->{'_images_index'} > $#{$$self{'_images_to_select'};}) |
87 | 0 | 0 | if ($self->{'loop'}) { } |
94 | 0 | 0 | unless (-r $file) |
98 | 0 | 0 | unless ($ret) |
106 | 0 | 0 | if (not defined $self->{'type'}) { } |
113 | 0 | 0 | if ($suffix eq 'jpg') |
128 | 0 | 0 | unless ($new_i) |
134 | 0 | 0 | if ($self->{'debug'}) |
141 | 0 | 0 | unless ($ret) |
152 | 0 | 0 | if ($width and $height) |
162 | 0 | 0 | if ($type) |
174 | 1 | 2 | if (&none(sub { $type eq $_; } , 'bmp', 'gif', 'jpeg', 'png', 'pnm', 'raw', 'sgi', 'tga', 'tiff')) |