Branch Coverage

blib/lib/PDF/Builder/Resource/XObject/Image/GIF.pm
Criterion Covered Total %
branch 19 46 41.3


line true false branch
137 0 6 if $nextcode == 1 << $bits and $bits < 12
138 2 4 if ($tag == $resetcode) { }
2 2 elsif ($tag == $endcode) { }
2 0 elsif ($tag < $resetcode) { }
0 0 elsif ($tag > $endcode) { }
165 0 3 if ref $class
168 0 3 unless $self->is_obj($pdf)
174 1 2 if (ref $file) { }
177 1 1 unless open $fh, '<', $file
187 0 2 unless $buf =~ /^GIF[0-9][0-9][a-b]/
199 2 0 if ($flags & 128)
212 2 0 if ($sep == 44) { }
0 0 elsif ($sep == 59) { }
0 0 elsif ($sep == 33) { }
229 0 2 if ($flags & 128)
236 0 2 if ($flags & 64)
256 0 2 if $inter
260 2 0 unless ($opts{'-multi'})
271 0 0 if ($tag == 249) { }
0 0 elsif ($tag == 254) { }
0 0 elsif ($tag == 1) { }
0 0 elsif ($tag == 255) { }
283 0 0 if ($cFlags & 1 and not $opts{'-notrans'})