Branch Coverage

blib/lib/PDF/Image/GIF.pm
Criterion Covered Total %
branch 43 88 48.8


line true false branch
73 0 0 if (exists $hash{$prefix . $c}) { }
92 0 0 if ($num == 513 or $num == 1025 or $num == 2049)
97 0 0 if ($num == 4097)
142 0 0 if ($bits > 0)
204 0 0 if ($c2 == 256)
213 0 0 if ($c2 == 257)
218 0 0 if ($c1 < $num) { }
228 0 0 if ($c2 < $num) { }
0 0 elsif ($c2 == $num) { }
243 0 0 if ($num == 512 or $num == 1024 or $num == 2048)
248 0 0 if defined $table[$c1]
308 1 1 if ($count)
334 0 1 if ($label eq "\cA") { }
0 1 elsif (ord $label == 255) { }
0 1 elsif (ord $label == 254) { }
1 0 elsif (ord $label == 249) { }
340 1 0 if ($c and 1)
348 1 0 if ($res == 0)
374 0 1 unless (defined $fh)
377 0 1 if ($s ne $PDF_STRING_GIF)
384 0 1 if ($s ne $PDF_STRING_87a and $s ne $PDF_STRING_89a)
395 1 0 if ($flags & $LOCALCOLORMAP)
396 0 1 unless ($self->ReadColorMap($fh))
403 0 1 if ($ar != 0)
411 0 2 if ($c eq ';')
417 1 1 if ($c eq '!')
423 0 1 if ($c ne ',')
433 0 1 if ($flags and $INTERLACE)
437 0 1 if ($flags & $LOCALCOLORMAP)
438 0 0 unless ($self->ReadColorMap($fh))
447 0 1 if ($self->{'bpc'} != 8)
453 1 0 if ($imageCount == 1)
488 0 1 unless (defined $fh)
502 1 95 unless ($n_bytes)
515 94 24079 if ($n_bytes == 0)
531 0 4 if ($flag13 and $code != 256 and $code != 257)
536 14980 2245 if ($o_bits > 0)
542 9099 8126 if ($w_bits >= 8)
547 14980 2245 if ($o_bits > 0)
552 5 17220 if ($code == 256)
559 1 17224 if ($code == 257)
563 19 17205 if ($t_size == 1 << $c_size)
564 4 15 if (++$c_size > 12) { }
575 0 1 if ($self->{'private'}{'interlaced'})