Branch Coverage

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


line true false branch
144 0 6 if $nextcode == 1 << $bits and $bits < 12
145 2 4 if ($tag == $resetcode) { }
2 2 elsif ($tag == $endcode) { }
2 0 elsif ($tag < $resetcode) { }
0 0 elsif ($tag > $endcode) { }
168 0 3 if (defined $opts{'-notrans'} and not defined $opts{'notrans'})
169 0 3 if (defined $opts{'-name'} and not defined $opts{'name'})
170 0 3 if (defined $opts{'-multi'} and not defined $opts{'multi'})
171 0 3 if (defined $opts{'-compress'} and not defined $opts{'compress'})
174 0 3 if (exists $opts{'name'})
181 0 3 if ref $class
184 0 3 unless $self->is_obj($pdf)
190 1 2 if (ref $file) { }
193 1 1 unless open $fh, "<", $file
203 0 2 unless ($buf =~ /^GIF[0-9][0-9][a-b]/)
219 2 0 if ($flags & 128)
235 2 0 if ($sep == 44) { }
0 0 elsif ($sep == 59) { }
0 0 elsif ($sep == 33) { }
252 0 2 if ($flags & 128)
262 0 2 if ($flags & 64)
282 0 2 if $interlaced
286 2 0 unless ($opts{'multi'})
297 0 0 if ($tag == 249) { }
0 0 elsif ($tag == 254) { }
0 0 elsif ($tag == 1) { }
0 0 elsif ($tag == 255) { }
309 0 0 if ($cFlags & 1 and not $opts{'notrans'})