Branch Coverage

blib/lib/PDF/Builder/Resource/XObject/Image/GIF.pm
Criterion Covered Total %
branch 24 56 42.8


line true false branch
146 0 6 if $nextcode == 1 << $bits and $bits < 12
147 2 4 if ($tag == $resetcode) { }
2 2 elsif ($tag == $endcode) { }
2 0 elsif ($tag < $resetcode) { }
0 0 elsif ($tag > $endcode) { }
185 0 3 if (defined $opts{'-notrans'} and not defined $opts{'notrans'})
186 0 3 if (defined $opts{'-name'} and not defined $opts{'name'})
187 0 3 if (defined $opts{'-multi'} and not defined $opts{'multi'})
188 0 3 if (defined $opts{'-compress'} and not defined $opts{'compress'})
191 0 3 if (exists $opts{'name'})
198 0 3 if ref $class
201 0 3 unless $self->is_obj($pdf)
207 1 2 if (ref $file) { }
210 1 1 unless open $fh, "<", $file
220 0 2 unless ($buf =~ /^GIF[0-9][0-9][a-b]/)
236 2 0 if ($flags & 128)
252 2 0 if ($sep == 44) { }
0 0 elsif ($sep == 59) { }
0 0 elsif ($sep == 33) { }
269 0 2 if ($flags & 128)
279 0 2 if ($flags & 64)
299 0 2 if $interlaced
303 2 0 unless ($opts{'multi'})
314 0 0 if ($tag == 249) { }
0 0 elsif ($tag == 254) { }
0 0 elsif ($tag == 1) { }
0 0 elsif ($tag == 255) { }
326 0 0 if ($cFlags & 1 and not $opts{'notrans'})