Condition Coverage

blib/lib/PDF/API2.pm
Criterion Covered Total %
condition 49 206 23.7


and 3 conditions

line !l l&&!r l&&r condition
238 1 0 0 $self->{'partial_save'} and not $file
571 0 0 1 $month >= 1 and $month <= 12
574 0 0 1 $day >= 1 and $day <= 31
586 0 1 0 $od eq "Z" and defined $oh
637 1 166 0 defined $value and not length $value
1266 5 0 0 $rotate = $page->find_prop("Rotate") and not $page->{' opened'}
1269 0 0 0 $rotate != 0 and not $self->default("nounrotate")
1301 2 0 3 defined $page->{'Contents'} and not $page->{' opened'}
1375 0 0 1 ref $s_pdf and $s_pdf->isa("PDF::API2")
1420 1 0 0 exists $s_page->{'Annots'} and $s_page->{'Annots'}
0 0 0 exists $s_page->{'Annots'} and $s_page->{'Annots'} and $self->{'copyannots'}
1478 0 0 0 $AcroForm and $t_a->{'Subtype'}->val eq "Widget"
1530 0 0 4 ref $s_pdf and $s_pdf->isa("PDF::API2")
1767 0 0 8 $options{'style'} and $options{'style'} =~ /^([rad])/i
2290 0 0 3 $bytes_read and $bytes_read == 8

or 2 conditions

line l !l condition
142 164 0 eval { do { $VERSION } } || 'Development Version'
191 16 0 $self->{'pdf'}{' version'} ||= "1.3"
689 1 0 $opt{$k} || 'NONE'
920 169 0 shift() // "single_page"
994 169 0 shift() // "none"
1158 0 16 $pdf->{' apipagecount'} ||= 0
1200 2 140 shift() || 0
1245 6 0 shift() || 0
1371 1 0 $s_idx ||= 0
1372 0 1 $t_idx ||= 0
1398 0 1 $self->{'apiimportcache'} || {}
1399 0 1 $self->{'apiimportcache'}{$s_pdf} || {}
1528 4 0 $s_idx ||= 0
1545 1 3 $self->{'apiimportcache'} ||= {}
1546 1 3 $self->{'apiimportcache'}{$s_pdf} ||= {}
1721 8 0 shift() // {}
1740 6 2 $options{'style'} //= "D"
1774 1 0 $options{'prefix'} // ""
1778 1 0 $options{'start'} // ""
1981 0 0 $options{'embed'} //= 1
2146 0 0 $opts{'embed'} //= 1
2148 0 0 $opts{'embed'} //= 1
2237 0 3 $options{'format'} // ""
2461 0 0 $options{'bar_width'} //= "1.8"
2462 0 0 $options{'bar_extend'} //= 0
2473 0 0 $options{'bar_width'} //= 1
2474 0 0 $options{'bar_extend'} //= 0
2485 0 0 $options{'bar_width'} //= 1
2486 0 0 $options{'bar_height'} //= 40
2487 0 0 $options{'bar_extend'} //= 0
2494 0 0 $options{'bar_width'} //= 1
2495 0 0 $options{'bar_height'} //= "64.8"
2509 0 0 $options{'font_size'} //= 10
2837 0 0 $root->{'Names'}{$cat}{'-vals'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
110 164 0 0 $self->{'pages'}{'Resources'} ||= PDFDict()
119 0 0 27 $options{'compress'} //= delete $options{'-compress'}
131 0 0 0 $options{'file'} //= $options{'-file'}
206 0 0 2 $options{'compress'} //= delete $options{'-compress'}
639 1 0 166 $field eq "CreationDate" or $field eq "ModDate"
699 0 0 3 unpack("n", $opt{$k}) == 65534 or unpack("n", $opt{$k}) == 65279
1759 0 8 0 $self->{'catalog'}{'PageLabels'} //= PDFDict()
1760 0 8 0 $self->{'catalog'}{'PageLabels'}{'Nums'} //= PDFArray()
1976 0 0 0 $format //= $name =~ /\.[ot]tf$/i ? "truetype" : ($name =~ /\.pf[ab]$/i ? "type1" : ($name =~ /\.bdf$/i ? "bitmap" : ""))
2243 0 3 0 $format ||= _detect_image_format($file)
2246 0 0 0 $format ||= $file =~ /\.jpe?g$/i ? "jpeg" : ($file =~ /\.png$/i ? "png" : ($file =~ /\.gif$/i ? "gif" : ($file =~ /\.tiff?$/i ? "tiff" : ($file =~ /\.p[bgp]m$/i ? "pnm" : ""))))
2323 0 2 1 $opts{'-compress'} //= $self->{'forcecompress'}
2460 0 0 0 $format eq "code128" or $format eq "ean128"
0 0 0 $format eq "code128" or $format eq "ean128" or $format eq "code39"
2463 0 0 0 $options{'quiet_zone'} //= 10 * $options{'bar_width'}
2465 0 0 0 $options{'font_size'} //= 9 * $options{'bar_width'}
2470 0 0 0 $options{'bar_height'} //= &max(18, $length * "0.15")
2475 0 0 0 $options{'quiet_zone'} //= 11 * $options{'bar_width'}
2477 0 0 0 $options{'font_size'} //= 10 * $options{'bar_width'}
2482 0 0 0 $options{'bar_height'} //= &max(36, $length * "0.15")
2488 0 0 0 $options{'quiet_zone'} //= 10 * $options{'bar_width'}
2490 0 0 0 $options{'font_size'} //= 9 * $options{'bar_width'}
2496 0 0 0 $options{'quiet_zone'} //= 11 * $options{'bar_width'}
2498 0 0 0 $options{'bar_extend'} //= 5 * $options{'bar_width'}
2501 0 0 0 $options{'font_size'} //= 10 * $options{'bar_width'}
2511 0 0 0 $options{'bar_extend'} or $options{'font_size'}
2512 0 0 0 $options{'font'} //= $self->font("Helvetica")
2835 0 0 0 $root->{'Names'} ||= PDFDict()
2836 0 0 0 $root->{'Names'}{$cat} ||= PDFDict()
2838 0 0 0 $root->{'Names'}{$cat}{'Limits'} ||= PDFArray()
2839 0 0 0 $root->{'Names'}{$cat}{'Names'} ||= PDFArray()