Branch Coverage

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


line true false branch
58 0 4 if (defined $opts{'-nouseGT'} and not defined $opts{'nouseGT'})
59 0 4 if (defined $opts{'-name'} and not defined $opts{'name'})
60 0 4 if (defined $opts{'-compress'} and not defined $opts{'compress'})
63 0 4 if (exists $opts{'name'})
86 0 3 if ref $class
89 0 3 unless $self->is_obj($pdf)
130 0 2 if ($tif->{'filter'}) { }
139 0 2 if (ref $tif->{'imageOffset'}) { }
161 0 0 if (ref $tif->{'imageOffset'}) { }
192 0 1 if (defined $tif->{'Predictor'} and $tif->{'Predictor'} > 1)
196 0 1 if (ref $tif->{'imageOffset'}) { }
223 0 0 $tif->{'ccitt'} == 4 || ($tif->{'g3Options'} || 0) & 1 ? :
227 0 0 ($tif->{'whiteIsZero'} || 0) == 0 ? :
228 0 0 if (defined $tif->{'g3Options'} and $tif->{'g3Options'} & 4)
235 0 0 if (ref $tif->{'imageOffset'}) { }
250 0 3 if ($tif->{'colorSpace'} eq 'Indexed') { }
276 1 2 if (($tif->{'whiteIsZero'} || 0) == 1 and ($tif->{'filter'} || '') ne "CCITTFaxDecode")
282 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') { }
305 0 3 if ($tif->{'fillOrder'} == 2)
312 0 0 if ($b & 1)