Condition Coverage

blib/lib/PDF/Builder/Resource/XObject/Image/PNM.pm
Criterion Covered Total %
condition 8 45 17.7


and 3 conditions

line !l l&&!r l&&r condition
68 3 0 0 defined $opts{'-name'} and not defined $opts{'name'}
69 3 0 0 defined $opts{'-compress'} and not defined $opts{'compress'}
242 2 0 0 $count == 0 and !$qflag || $in_comment
284 0 0 0 $qflag and not $in_comment
391 0 0 0 $row == $h - 1 and $col == $w - 1
401 0 0 0 $sample ne 0 and $sample ne 1

or 3 conditions

line l !l&&r !l&&!r condition
79 0 3 0 $name || 'Nx' . pdfkey()
131 0 0 2 $info{'type'} == 1 or $info{'type'} == 4
0 0 2 $info{'type'} == 2 or $info{'type'} == 5
193 0 0 2 $max < 1 or $max > 65535
242 0 0 0 !$qflag || $in_comment
428 0 0 0 $max == 255 or $max == 65535
472 0 0 0 $max == 255 or $max == 65535
535 0 0 0 $max == 255 or $max == 65535
575 2 0 0 $max == 255 or $max == 65535