Branch Coverage

blib/lib/Image/JpegMinimal.pm
Criterion Covered Total %
branch 1 24 4.1


line true false branch
105 1 0 unless $Imager::formats{'jpeg'}
117 0 0 unless 'Imager'->new('file', $file)
131 0 0 if (my $orientation = $imager->tags('name', 'exif_orientation'))
147 0 0 unless $imager = $imager->scale('xpixels', $xmax, 'ypixels', $ymax, 'type', 'min')
170 0 0 if ($header eq "\377\332") { }
0 0 elsif ($header eq "\377\330") { }
0 0 elsif ($header eq "\377\331") { }
209 0 0 if $_->{'type'} ne "\377\332"
214 0 0 unless $_->{'type'} eq "\377\332"
242 0 0 if $self->{'header'}{$orientation} ne $self->btoa($min_header)
270 0 0 if ($w < $h) { }
292 0 0 if (2 != scalar values %{$$self{'header'};})