Condition Coverage

blib/lib/PDF/Reuse.pm
Criterion Covered Total %
condition 84 550 15.2


and 3 conditions

line !l l&&!r l&&r condition
296 8 1 0 $utfil_ref and $utfil_ref eq "Apache2::RequestRec"
8 0 1 $utfil_ref and $utfil_ref eq "IO::String"
388 0 9 0 defined $stream and length $stream > 0
410 9 0 0 $runfil and not $noLogg
436 0 0 7 $xPos =~ /\-?[\d\.]+/o and defined $xPos
439 0 0 7 $yPos =~ /\-?[\d\.]+/o and defined $yPos
644 0 0 0 defined $refNr and $refNr eq 0
692 0 0 1 $effect eq "print" and $form{$fSource}[8]
0 0 1 $effect eq "print" and $form{$fSource}[8] and $refNr
729 1 0 0 $effect ne "print" and $effect ne "add"
843 9 0 0 $compress and length $stream > 99
845 0 0 0 length $output > 25 and length $output < length $stream
1016 9 0 0 %links and $links{'-1'}
0 0 0 %links and $links{'-1'} and @{$links{'-1'};}
9 0 0 %links and $links{$tSida}
0 0 0 %links and $links{$tSida} and @{$links{$tSida};}
1346 0 0 0 not $ttfont and $font{$selector}
1405 0 0 0 $font{$name}[6] and $font{$name}[6]->filename eq $selector
3489 0 0 0 defined $refNr and $refNr eq 0
3522 0 0 0 $effect eq "print" and $refNr
3568 0 0 0 defined $lx and $lx =~ /^[\d\-\.]+$/o
3570 0 0 0 defined $ly and $ly =~ /^[\d\-\.]+$/o
3572 0 0 0 defined $ux and $ux =~ /^[\d\-\.]+$/o
3574 0 0 0 defined $uy and $uy =~ /^[\d\-\.]+$/o
3622 0 0 0 $xPos and $yPos
3755 0 0 0 defined $refNr and $refNr eq 0
3803 0 0 1 $effect eq "print" and $form{$fSource}[8]
0 0 1 $effect eq "print" and $form{$fSource}[8] and $refNr
3804 0 0 1 not defined $interActive and $sidnr == 1
0 1 0 not defined $interActive and $sidnr == 1 and %{$intAct{$fSource}[0];}
3844 1 0 0 $effect ne "print" and $effect ne "add"
4024 0 0 0 $_ eq "Gs0" and not defined $defGState
4208 0 0 0 $runfil and $checkId
0 0 0 $runfil and $checkId and $checkId ne $checkIdOld
4307 0 0 0 -e $dir and -d $dir
4375 0 0 2 $tempRoot and not $Root
4438 0 0 0 exists $param{'Root'} and $param{'Root'} =~ /^$ws*(\d+)/o
4448 0 0 0 exists $param{'Length'} and $param{'Length'} =~ /(\d+)/o
4469 0 0 0 $_ != 0 and $i > 0
0 0 0 $_ != 0 and $i > 0 and $i < $upTo
4553 0 2 6 defined $c and $c ne "\n"
2 0 6 defined $c and $c ne "\n" and $c ne "\r"
4586 0 2 14 defined $c and $c ne "\n"
2 0 14 defined $c and $c ne "\n" and $c ne "\r"
4604 6 2 2 not $root and $buf =~ m[\/Root$ws+(\d+)$ws+\d+$ws+R]so
4610 0 10 0 not $xref and $buf =~ m[\/Prev$ws+(\d+)\D]so
4619 6 0 2 $inrad =~ /trailer/o and not $root
6 2 0 $inrad =~ /trailer/o and not $root and $inrad =~ m[\/Root\s+(\d+)\s{1,2}\d+\s{1,2}R]so
4639 12 0 2 $noId and $noEnd
4796 2 0 0 $ldir and $checkId
0 0 0 $ldir and $checkId and $checkId ne $checkidOld
5101 0 0 2 not exists $font{$Font} and $action
5145 6 0 0 defined $$robj->[0][2] and not exists $$ref->[0]{$$robj->[0][2]}
5236 0 0 0 defined $$robj->[0][2] and not exists $$ref->[0]{$$robj->[0][2]}
5371 0 0 0 defined $old{$key} and $objekt[$old{$key}]
5405 0 0 0 defined $old{$key} and $objekt[$old{$key}]
5427 0 0 0 $typ and $typ eq "Font"
6062 0 0 0 $ldir and $checkId
0 0 0 $ldir and $checkId and $checkId ne $checkIdOld
6081 0 0 0 not $interActive || $to and $from == 1
6148 0 0 0 $li > -1 and $sidAcc < $sidor
6250 0 0 0 defined $stream and length $stream > 0
6260 0 0 0 $compress and length $stream > 99
6262 0 0 0 length $output > 25 and length $output < length $stream
6296 0 0 0 $from and $to
6305 0 0 0 not $resources =~ m[\/]so and $i < 10
6488 0 0 0 $sidObjNr and not defined $objekt[$sidObjNr]
6508 0 0 0 %links and $links{'-1'}
0 0 0 %links and $links{'-1'} and @{$links{'-1'};}
0 0 0 %links and $links{$tSida}
0 0 0 %links and $links{$tSida} and @{$links{$tSida};}
6720 0 0 0 $_ ne $key and exists $nyaFunk{$_}
6743 0 0 0 scalar @inits and $duplicateInits
6878 0 0 0 $compress and length $kod > 99
7006 0 0 0 $pos and $pos < 15000000

or 2 conditions

line l !l condition
218 0 0 shift() || 12
256 9 0 $param || '-'
426 0 7 shift() || 'left'
427 0 7 shift() || '0'
580 0 1 $param->{'page'} || 1
581 0 1 $param->{'adjust'} || ''
582 0 1 $param->{'effect'} || 'print'
583 0 1 $param->{'tolerant'} || ''
584 0 1 $param->{'x'} || 0
585 0 1 $param->{'y'} || 0
586 0 1 $param->{'rotate'} || 0
587 0 1 $param->{'size'} || 1
588 0 1 $param->{'xsize'} || 1
589 0 1 $param->{'ysize'} || 1
593 0 0 shift() || 1
594 0 0 shift() || ''
595 0 0 shift() || 'print'
596 0 0 shift() || ''
597 0 0 shift() || 0
598 0 0 shift() || 0
599 0 0 shift() || 0
600 0 0 shift() || 1
601 0 0 shift() || 1
602 0 0 shift() || 1
770 1 7 shift() || ''
1067 0 9 scalar %fields or scalar @jsfiler
1076 0 9 scalar @inits or scalar %fields
1126 61 0 $objekt[$i] // 0
1450 0 0 $self->{' objects'}{$obj->uid} || (return)
3120 0 0 $param->{'page'} || -1
3121 0 0 $param->{'x'} || 100
3122 0 0 $param->{'y'} || 100
3123 0 0 $param->{'width'} || 75
3124 0 0 $param->{'height'} || 15
3126 0 0 $param->{'s'} || 'URI'
3129 0 0 $param || -1
3130 0 0 shift() || 100
3131 0 0 shift() || 100
3132 0 0 shift() || 75
3133 0 0 shift() || 15
3135 0 0 shift() || 'URI'
3448 0 0 $param->{'page'} || 1
3449 0 0 $param->{'imageNo'} || 1
3450 0 0 $param->{'effect'} || 'print'
3451 0 0 $param->{'adjust'} || ''
3452 0 0 $param->{'x'} || 0
3453 0 0 $param->{'y'} || 0
3454 0 0 $param->{'rotate'} || 0
3455 0 0 $param->{'size'} || 1
3456 0 0 $param->{'xsize'} || 1
3457 0 0 $param->{'ysize'} || 1
3461 0 0 shift() || 1
3462 0 0 shift() || 1
3463 0 0 shift() || 'print'
3464 0 0 shift() || ''
3465 0 0 shift() || 0
3466 0 0 shift() || 0
3467 0 0 shift() || 0
3468 0 0 shift() || 1
3469 0 0 shift() || 1
3470 0 0 shift() || 1
3641 0 0 shift() || 1
3675 0 0 $param->{'first'} || 1
3676 0 0 $param->{'last'} || ''
3680 0 0 shift() || 1
3681 0 0 shift() || ''
3710 0 0 $param->{'page'} || 1
3711 0 0 $param->{'adjust'} || ''
3712 0 0 $param->{'effect'} || 'print'
3713 0 0 $param->{'tolerant'} || ''
3714 0 0 $param->{'x'} || 0
3715 0 0 $param->{'y'} || 0
3716 0 0 $param->{'rotate'} || 0
3717 0 0 $param->{'size'} || 1
3718 0 0 $param->{'xsize'} || 1
3719 0 0 $param->{'ysize'} || 1
3723 0 1 shift() || 1
3724 0 1 shift() || ''
3725 0 1 shift() || 'print'
3726 0 1 shift() || ''
3727 0 1 shift() || 0
3728 0 1 shift() || 0
3729 0 1 shift() || 0
3730 0 1 shift() || 1
3731 0 1 shift() || 1
3732 0 1 shift() || 1
3900 0 0 shift() || 0
3901 0 0 shift() || 0
3902 0 0 shift() || 0
3903 0 0 shift() || 0
3904 0 0 shift() || 1
4232 0 0 shift() || ''
4432 0 0 $2 || ' '
4452 0 0 &inflateInit() || die("Cannot create an inflation stream\n")
4743 0 0 $2 || ' '
4747 0 0 &inflateInit() || die("Cannot create an inflation stream\n")
5604 0 0 $intAct{$fSource}[1] or scalar @jsfiler
0 0 $intAct{$fSource}[1] or scalar @jsfiler or scalar @inits
0 0 $intAct{$fSource}[1] or scalar @jsfiler or scalar @inits or scalar %fields
6033 0 0 shift() || 1
6034 0 0 shift() || 0
6088 0 0 scalar %fields or scalar @jsfiler
0 0 scalar %fields or scalar @jsfiler or scalar @inits
6989 0 0 $pos || 'undef'
6990 0 0 $objNr || 'undef'
6991 0 0 $utfil || 'undef'
6993 0 0 $runfil || 'undef'

or 3 conditions

line l !l&&r !l&&!r condition
244 0 0 0 $key eq "hidetoolbar" or $key eq "hidemenubar"
0 0 0 $key eq "hidetoolbar" or $key eq "hidemenubar" or $key eq "hidewindowui"
0 0 0 $key eq "hidetoolbar" or $key eq "hidemenubar" or $key eq "hidewindowui" or $key eq "fitwindow"
0 0 0 $key eq "hidetoolbar" or $key eq "hidemenubar" or $key eq "hidewindowui" or $key eq "fitwindow" or $key eq "centerwindow"
277 0 0 0 $dirdel || errLog("Couldn't create dir $dirdel, $!")
285 0 0 0 $dirdel || errLog("Couldn't create dir $dirdel, $!")
296 0 0 9 $utfil_ref and $utfil_ref eq "Apache2::RequestRec" or $utfil_ref eq "Apache::RequestRec"
464 0 0 7 wantarray or $align ne "left"
697 0 0 1 $x or $y
0 0 1 $x or $y or $rotate
0 0 1 $x or $y or $rotate or $size != 1
0 0 1 $x or $y or $rotate or $size != 1 or $xsize != 1
0 0 1 $x or $y or $rotate or $size != 1 or $xsize != 1 or $ysize != 1
1016 0 0 9 @annots or %links and $links{'-1'} and @{$links{'-1'};}
0 0 9 @annots or %links and $links{'-1'} and @{$links{'-1'};} or %links and $links{$tSida} and @{$links{$tSida};}
1294 0 0 0 shift() || $fontSize
1355 0 0 0 $docProxy ||= "PDF::Reuse::DocProxy"->new("next_obj", sub { ++$objNr; } , "prObj", \&PDF::Reuse::prObj)
1401 0 0 0 shift() || $aktuellFont[2]
1405 0 0 0 $font{$name}[1] eq $selector or $font{$name}[6] and $font{$name}[6]->filename eq $selector
1526 0 0 0 $self->{'fontname'} ||= $self->find_name
3094 0 0 0 $Names or $AARoot
0 0 0 $Names or $AARoot or $AcroForm
3587 0 0 0 $interAktivSida or $interActive
3686 0 0 0 $Names or $AARoot
0 0 0 $Names or $AARoot or $AcroForm
3813 0 0 1 $x or $y
0 0 1 $x or $y or $rotate
0 0 1 $x or $y or $rotate or $size != 1
0 0 1 $x or $y or $rotate or $size != 1 or $xsize != 1
0 0 1 $x or $y or $rotate or $size != 1 or $xsize != 1 or $ysize != 1
4220 0 0 0 $interAktivSida or $interActive
4247 0 0 0 $interAktivSida or $interActive
4304 0 0 0 $dir || errLog("Couldn't create directory $dir, $!")
4927 0 0 2 $bryt1 > $sidnr or $bryt2 > $sidnr
6081 0 0 0 $interActive || $to
6508 0 0 0 %links and $links{'-1'} and @{$links{'-1'};} or %links and $links{$tSida} and @{$links{$tSida};}
6595 0 0 0 $c eq "<" or $c eq ">"