Branch Coverage

blib/lib/PDF/API2/Resource/XObject/Image/GIF.pm
Criterion Covered Total %
branch 18 42 42.8


line true false branch
93 0 6 if $nextcode == 1 << $bits and $bits < 12
94 2 4 if ($tag == $resetcode) { }
2 2 elsif ($tag == $endcode) { }
2 0 elsif ($tag < $resetcode) { }
0 0 elsif ($tag > $endcode) { }
122 0 3 if ref $class
125 0 3 unless $self->is_obj($pdf)
131 1 2 if (ref $file) { }
135 1 1 unless open $fh, "<", $file
141 0 2 unless ($buf =~ /^GIF[0-9][0-9][a-z]/)
148 2 0 if ($flags & 128)
162 2 0 if ($sep == 44) { }
0 0 elsif ($sep == 59) { }
170 0 2 if ($flags & 128)
180 0 2 if ($flags & 64)
197 0 2 if $interlaced
217 0 0 if ($sep == 33 and $tag == 249) { }
0 0 elsif ($sep == 33 and $tag == 254) { }
0 0 elsif ($sep == 33 and $tag == 1) { }
0 0 elsif ($sep == 33) { }
219 0 0 if ($cFlags & 1 and not $opts{'-notrans'})