Branch Coverage

blib/lib/PDF/API3/Compat/API2/Util.pm
Criterion Covered Total %
branch 12 170 7.0


line true false branch
96 1 1 if (-f "$dir/PDF/API3/Compat/API2/Resource/unipaper.txt")
102 1 25 if $line =~ /^#/
126 1 1 if (-f "$dir/PDF/API3/Compat/API2/Resource/uniglyph.txt")
132 1 5508 if $line =~ /^#/
162 1 1 if (-f "$dir/PDF/API3/Compat/API2/Resource/unicolor.txt")
168 1 682 if $line =~ /^#/
228 0 0 if ($n) { }
236 0 0 if abs $f < 1e-16
238 0 0 if (abs $f - int($f) < 10 ** (-$mxd)) { }
0 0 elsif ($ad > 0) { }
259 0 0 $n > $_ ? :
265 0 0 $n < $_ ? :
295 0 0 if ($s == 0)
308 0 0 if ($i < 1) { }
0 0 elsif ($i < 2) { }
0 0 elsif ($i < 3) { }
0 0 elsif ($i < 4) { }
0 0 elsif ($i < 5) { }
339 0 0 if ($s == 0)
352 0 0 $_ > 1 ? :
0 0 $_ < 0 ? :
367 0 0 $_ > 1 ? :
0 0 $_ < 0 ? :
376 0 0 if ($h < 60) { }
0 0 elsif ($h < 180) { }
0 0 elsif ($h < 240) { }
398 0 0 if ($delta > 1e-09) { }
406 0 0 if ($r == $max) { }
0 0 elsif ($g == $max) { }
414 0 0 if ($h < 0)
427 0 0 if ($delta < 1e-11) { }
430 0 0 if ($l <= 0.5) { }
441 0 0 if ($l <= 0.5) { }
447 0 0 if ($s < 1e-13) { }
462 0 0 if ($ab > 0.45) { }
478 0 0 if (length $name < 5) { }
0 0 elsif (length $name < 8) { }
0 0 elsif (length $name < 11) { }
500 0 0 if (length $name < 6) { }
0 0 elsif (length $name < 10) { }
0 0 elsif (length $name < 14) { }
526 0 0 if (length $name < 5) { }
0 0 elsif (length $name < 8) { }
0 0 elsif (length $name < 11) { }
548 0 0 if (length $name < 5) { }
0 0 elsif (length $name < 8) { }
0 0 elsif (length $name < 11) { }
570 0 0 unless (ref $name)
574 0 0 if ($name =~ /^[a-z]/) { }
0 0 elsif ($name =~ /^#/) { }
0 0 elsif ($name =~ /^%/) { }
0 0 elsif ($name =~ /^!/) { }
0 0 elsif ($name =~ /^&/) { }
585 0 0 unless $name
590 0 0 unless (ref $name)
594 0 0 if ($name =~ /^[a-z]/) { }
0 0 elsif ($name =~ /^#/) { }
0 0 elsif ($name =~ /^%/) { }
0 0 elsif ($name =~ /^!/) { }
0 0 elsif ($name =~ /^&/) { }
605 0 0 unless $name
610 0 0 unless (ref $name)
614 0 0 if ($name =~ /^[a-z]/) { }
0 0 elsif ($name =~ /^\$/) { }
0 0 elsif ($name =~ /^#/) { }
0 0 elsif ($name =~ /^!/) { }
0 0 elsif ($name =~ /^&/) { }
639 0 0 unless $name
651 0 0 if (defined $filter)
655 0 0 unless (ref($filter) =~ /Array$/)
676 0 0 if (defined $filter)
679 0 0 unless (ref($filter) =~ /Array$/)
702 0 0 if ($e =~ /^uni([0-9A-F]{4})$/)
716 0 0 if defined $n2u{$name}
728 0 0 if (defined $x2) { }
0 0 elsif (defined $y1) { }
0 0 elsif (defined $PaperSizes{lc $x1}) { }
0 0 elsif ($x1 =~ /^[\d\.]+$/) { }
764 0 0 if $n eq 'apos'
765 0 0 if $n eq 'amp'
766 0 0 if $n eq 'quot'
767 0 0 if $n eq 'gt'
768 0 0 if $n eq 'lt'
769 0 0 if $n eq '.notdef'
770 0 0 if $n2u{$n} < 32