Branch Coverage

blib/lib/Imager/Simple.pm
Criterion Covered Total %
branch 0 64 0.0


line true false branch
53 0 0 if defined $_
94 0 0 unless ref $self
95 0 0 if ($ref) { }
97 0 0 if ($ref eq 'CODE') { }
0 0 elsif ($ref eq 'GLOB' or blessed $d and $d->can('read')) { }
0 0 elsif ($ref eq 'SCALAR') { }
112 0 0 if defined $type
113 0 0 unless @{$$self{'frames'};} = 'Imager'->read_multi(@args)
171 0 0 ref $_[-1] eq 'HASH' ? :
173 0 0 unless my(@frames) = @{$$self{'frames'};}
179 0 0 if defined $_
182 0 0 if defined $_
185 0 0 if defined $_
188 0 0 if defined($t = $$opt{$_})
191 0 0 if defined($t = $$opt{$_})
195 0 0 if ($i == 0)
196 0 0 if ($frame->tags('name', 'i_format') eq 'gif') { }
197 0 0 defined $width ? :
201 0 0 defined $height ? :
207 0 0 defined $width ? :
211 0 0 defined $height ? :
216 0 0 unless defined $factor_x
220 0 0 unless $out = $frame->scale(%args)
223 0 0 if ($frame->tags('name', 'i_format') eq 'gif')
234 0 0 if ($frame->tags('name', 'gif_local_map'))
280 0 0 unless defined $d
284 0 0 if ($ref) { }
286 0 0 if ($ref eq 'CODE') { }
0 0 elsif ($ref eq 'GLOB' or blessed $d and $d->can('read')) { }
0 0 elsif ($ref eq 'SCALAR') { }
309 0 0 unless 'Imager'->write_multi({$key, $d, 'type', $self->format, 'transp', 'threshold', 'tr_threshold', 50}, @{$self->frames;})
332 0 0 unless 'Imager'->write_multi({'data', \$data, 'type', $self->format, 'transp', 'threshold', 'tr_threshold', 50}, @{$self->frames;})