Branch Coverage

blib/lib/PDF/API3/Compat/API2/Content.pm
Criterion Covered Total %
branch 0 286 0.0


line true false branch
100 0 0 if ($$self{-'docompress'} == 1 and $$self{'Filter'})
118 0 0 if (scalar @_ > 0)
120 0 0 $$self{' poststream'} =~ /\s$/o ? :
127 0 0 if (scalar @_ > 0)
129 0 0 $$self{' stream'} =~ /\s$/o ? :
148 0 0 unless (defined $$self{' apiistext'} and $$self{' apiistext'} == 1)
168 0 0 unless (defined $$self{' apiistext'} and $$self{' apiistext'} == 1)
193 0 0 if (defined $obj) { }
258 0 0 if (scalar @a < 1) { }
264 0 0 if ($a[0] =~ /^\-/) { }
267 0 0 unless ref $a{-'pattern'}
353 0 0 if (defined $a)
355 0 0 if (defined $$self{' apiistext'} and $$self{' apiistext'} == 1) { }
366 0 0 if (defined $$self{' apiistext'} and $$self{' apiistext'} == 1) { }
464 0 0 unless defined $opt{$o}
465 0 0 if ($o eq '-translate') { }
0 0 elsif ($o eq '-rotate') { }
0 0 elsif ($o eq '-scale') { }
0 0 elsif ($o eq '-skew') { }
0 0 elsif ($o eq '-matrix') { }
502 0 0 if ($opt{-'point'})
517 0 0 if ($opt{-'translate'}) { }
522 0 0 if ($opt{-'rotate'}) { }
527 0 0 if ($opt{-'scale'}) { }
532 0 0 if ($opt{-'skew'}) { }
567 0 0 if ($clr[0] =~ /^[a-z\#\!]+/) { }
0 0 elsif ($clr[0] =~ /^[\%]+/) { }
0 0 elsif ($clr[0] =~ /^[\$\&]/) { }
0 0 elsif (scalar @clr == 1 and ref $clr[0]) { }
0 0 elsif (scalar @clr == 1) { }
0 0 elsif (scalar @clr > 1 and ref $clr[0]) { }
0 0 elsif (scalar @clr == 2) { }
0 0 elsif (scalar @clr == 3) { }
0 0 elsif (scalar @clr == 4) { }
571 0 0 $sf ? :
575 0 0 $sf ? :
579 0 0 unless (defined $self->resource('ColorSpace', 'LabS'))
587 0 0 $sf ? :
0 0 $sf ? :
590 0 0 $sf ? :
0 0 $sf ? :
593 0 0 $sf ? :
598 0 0 $sf ? :
0 0 $sf ? :
602 0 0 $sf ? :
0 0 $sf ? :
605 0 0 $sf ? :
608 0 0 $sf ? :
617 0 0 if (ref($clrs[0]) =~ /^PDF::API3::Compat::API2::Resource::ColorSpace/) { }
0 0 elsif (ref($clrs[0]) =~ /^PDF::API3::Compat::API2::Resource::Pattern/) { }
630 0 0 if (scalar @_)
641 0 0 if (ref($clrs[0]) =~ /^PDF::API3::Compat::API2::Resource::ColorSpace/) { }
0 0 elsif (ref($clrs[0]) =~ /^PDF::API3::Compat::API2::Resource::Pattern/) { }
654 0 0 if (scalar @_)
686 0 0 if (defined $$self{' apiistext'} and $$self{' apiistext'} == 1) { }
716 0 0 if (defined $$self{' apiistext'} and $$self{' apiistext'} == 1) { }
735 0 0 if (defined $$self{' apiistext'} and $$self{' apiistext'} == 1) { }
754 0 0 if (defined $$self{' apiistext'} and $$self{' apiistext'} == 1) { }
781 0 0 if (defined $$self{' apiistext'} and $$self{' apiistext'} == 1) { }
820 0 0 if (abs $beta - $alpha > 30) { }
867 0 0 if $move
930 0 0 if $x < 0 and $y > 0
931 0 0 if $x < 0 and $y < 0
935 0 0 if $spf > 0
941 0 0 if $larc > 0
947 0 0 if ($spf > 0)
962 0 0 if $move
971 0 0 if (scalar @points == 0) { }
1077 0 0 !shift(@_) ? :
1103 0 0 !shift(@_) ? :
1114 0 0 !shift(@_) ? :
1139 0 0 if (defined $$img{'Metadata'})
1144 0 0 if (not defined $w) { }
0 0 elsif (not defined $h) { }
1160 0 0 if (defined $$img{'Metadata'})
1181 0 0 if (not defined $s) { }
1239 0 0 if (not defined $$self{' apiistext'} or $$self{' apiistext'} != 1)
1275 0 0 if (scalar @_) { }
1280 0 0 unless $state{$k}
1283 0 0 if ($state{'font'} and $state{'fontsize'})
1287 0 0 if ($state{'textmatrix'})
1295 0 0 if ($state{'fillcolor'})
1299 0 0 if ($state{'strokecolor'})
1328 0 0 if (scalar @_) { }
1333 0 0 unless $state{$k}
1334 0 0 if ($$self{" $k"} ne $state{$k})
1339 0 0 if ($state{'font'} and $state{'fontsize'})
1341 0 0 if ($$self{' font'} ne $state{'font'} or $$self{' fontsize'} ne $state{'fontsize'})
1346 0 0 if ($state{'fillcolor'})
1350 0 0 if ($state{'strokecolor'})
1420 0 0 $opt{-'skew'} ? :
1424 0 0 $opt{-'scale'} ? :
1430 0 0 $opt{-'translate'} ? :
1464 0 0 if ($font->isvirtual == 1) { }
1488 0 0 if ($font->isvirtual == 1) { }
1515 0 0 if (defined $para)
1534 0 0 if (defined $para)
1554 0 0 if (defined $para)
1574 0 0 if (defined $para)
1594 0 0 if (defined $para)
1614 0 0 if (defined $para)
1631 0 0 if (defined $para) { }
1678 0 0 if (scalar @opts > 1) { }
1683 0 0 unless defined $opts{$k}
1742 0 0 if (ref $underline eq 'ARRAY') { }
1750 0 0 if @underline % 2
1763 0 0 if (ref $thickness)
1768 0 0 if ($distance eq 'auto')
1772 0 0 if ($thickness eq 'auto')
1795 0 0 if ($$self{' fontset'} == 0)
1800 0 0 if (defined $opt{-'indent'})
1807 0 0 if (defined $opt{-'indent'}) { }
1823 0 0 if (defined $opt{-'underline'})
1879 0 0 if $self->advancewidth("@line") > $width
1881 0 0 if (not $over and scalar @line > 1 and $self->advancewidth("@line") > $width)
1949 0 0 if ($ret or $w >= $width)
2008 0 0 if ($height -= $lead) < 0
2009 0 0 if ($opts{-'align'} =~ /^j/i) { }
0 0 elsif ($opts{-'align'} =~ /^r/i) { }
0 0 elsif ($opts{-'align'} =~ /^c/i) { }
2028 0 0 if (wantarray)
2052 0 0 if (length $overflow > 0)
2058 0 0 if length $para > 0
2061 0 0 if (wantarray)
2074 0 0 if ($$self{' apiistext'} == 1)
2110 0 0 if $opts{-'rotate'}
2113 0 0 if ($wastext)
2122 0 0 ref $opts{-'color'} ? :
0 0 if $opts{-'color'}
2123 0 0 ref $opts{-'strokecolor'} ? :
0 0 if $opts{-'strokecolor'}
2127 0 0 if $opts{-'charspace'}
2128 0 0 if $opts{-'hspace'}
2129 0 0 if $opts{-'wordspace'}
2130 0 0 if $opts{-'render'}
2132 0 0 if ($opts{-'right'} or $opts{-'align'} =~ /^r/i) { }
0 0 elsif ($opts{-'center'} or $opts{-'align'} =~ /^c/i) { }
2148 0 0 if ($wastext)
2158 0 0 if ($$self{' apipage'}) { }
2169 0 0 if ref($dict) =~ /Objind$/
2172 0 0 if ref($$dict{$type}) =~ /Objind$/
2173 0 0 if (not defined $obj) { }
2179 0 0 if ($force) { }