Branch Coverage

blib/lib/PDF/API2/Resource/XObject/Image/TIFF.pm
Criterion Covered Total %
branch 20 48 41.6


line true false branch
42 0 3 if ref $class
45 0 3 unless $self->is_obj($pdf)
83 1 2 if ($tag == $resetcode) { }
1 1 elsif ($tag == $endcode) { }
1 0 elsif ($tag < $resetcode) { }
0 0 elsif ($tag > $endcode) { }
102 0 1 if $nextcode == 1 << $bits
110 0 2 if ($tif->{'filter'}) { }
120 0 2 if (ref $tif->{'imageOffset'}) { }
142 0 0 if (ref $tif->{'imageOffset'}) { }
167 1 0 if ($mod > 0)
172 0 1 if (ref $tif->{'imageOffset'}) { }
180 0 0 if (length $buf > $max_raw_strip)
201 0 0 $tif->{'ccitt'} == 4 || $tif->{'g3Options'} & 1 ? :
204 0 0 $tif->{'whiteIsZero'} == 1 ? :
205 0 0 if (defined $tif->{'g3Options'} and $tif->{'g3Options'} & 4)
212 0 0 if (ref $tif->{'imageOffset'}) { }
228 0 3 if ($tif->{'colorSpace'} eq 'Indexed') { }
252 1 2 if ($tif->{'whiteIsZero'} == 1 and $tif->{'filter'} ne "CCITTFaxDecode")
257 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') { }
270 0 3 if ($tif->{'fillOrder'} == 2)
277 0 0 if ($b & 1)