Branch Coverage

blib/lib/PDF/Builder/Resource/XObject/Image/TIFF.pm
Criterion Covered Total %
branch 18 44 40.9


line true false branch
49 0 4 if (defined $opts{'-nouseGT'} and not defined $opts{'nouseGT'})
50 0 4 if (defined $opts{'-name'} and not defined $opts{'name'})
51 0 4 if (defined $opts{'-compress'} and not defined $opts{'compress'})
54 0 4 if (exists $opts{'name'})
77 0 3 if ref $class
80 0 3 unless $self->is_obj($pdf)
115 0 2 if ($tif->{'filter'}) { }
124 0 2 if (ref $tif->{'imageOffset'}) { }
146 0 0 if (ref $tif->{'imageOffset'}) { }
177 0 1 if (defined $tif->{'Predictor'} and $tif->{'Predictor'} > 1)
181 0 1 if (ref $tif->{'imageOffset'}) { }
208 0 0 $tif->{'ccitt'} == 4 || ($tif->{'g3Options'} || 0) & 1 ? :
212 0 0 ($tif->{'whiteIsZero'} || 0) == 0 ? :
213 0 0 if (defined $tif->{'g3Options'} and $tif->{'g3Options'} & 4)
220 0 0 if (ref $tif->{'imageOffset'}) { }
235 0 3 if ($tif->{'colorSpace'} eq 'Indexed') { }
261 1 2 if (($tif->{'whiteIsZero'} || 0) == 1 and ($tif->{'filter'} || '') ne "CCITTFaxDecode")
267 0 3 if (defined $tif->{'filter'} and $tif->{'filter'} eq 'CCITTFaxDecode') { }
1 2 elsif (defined $tif->{'filter'} and $tif->{'filter'} eq 'LZWDecode') { }
0 2 elsif (defined $tif->{'filter'} and $tif->{'filter'} eq 'FlateDecode') { }
290 0 3 if ($tif->{'fillOrder'} == 2)
297 0 0 if ($b & 1)