Condition Coverage

blib/lib/PDF/API3/Compat/API2/Basic/PDF/File.pm
Criterion Covered Total %
condition 0 84 0.0


and 3 conditions

line !l l&&!r l&&r condition
483 0 0 0 defined $$self{' newroot'} && $$self{' newroot'} ne ''
502 0 0 0 $^O eq 'MacOS' and not ref $$self{' fname'}
561 0 0 0 $str =~ s/^stream(?:(?:\015\012)|\012|\015)//o and $$res{'Length'}->val != 0
588 0 0 0 defined $$res{'Type'} and defined $types{$$res{'Type'}->val}
788 0 0 0 defined $$self{' free'} and scalar @{$$self{' free'};} > 0
809 0 0 0 defined $i and $i != 0
1014 0 0 0 $obj->isa('PDF::API3::Compat::API2::Basic::PDF::Dict') and $$obj{'Linearized'}
1113 0 0 0 not $$str =~ /$cr/o || $fh->eof and length $$str < 16000
1216 0 0 0 $xnum-- > 0 and $buf =~ s/^0*([0-9]*)$ws_char+0*([0-9]+)$ws_char+([nf])$cr//o
1232 0 0 0 defined $$tdict{'Prev'} and $$tdict{'Prev'}->val != 0
1316 0 0 0 defined $freelist[$k] and defined $xref
0 0 0 defined $freelist[$k] and defined $xref and "$freelist[$k]" eq "$xref"

or 2 conditions

line l !l condition
290 0 0 'IO::File'->new(($update ? '+' : '') . "<$fname") || (return undef)
399 0 0 $$self{' version'} || 4
459 0 0 'IO::File'->new(">$fname") || die("Unable to open $fname for writing")
464 0 0 $$self{' version'} || '2'
748 0 0 $self->read_objnum($$objind{' objnum'}, $$objind{' objgen'}, %opts) || (return undef)
765 0 0 $self->locate_obj($num, $gen) || (return undef)

or 3 conditions

line l !l&&r !l&&!r condition
489 0 0 0 $$self{'Size'} || PDFNum(1)
821 0 0 0 $self->test_obj($i, $ng) || $self->add_obj('PDF::API3::Compat::API2::Basic::PDF::Objind'->new, $i, $ng)
990 0 0 0 $nl < $minl or $mini == 0
1007 0 0 0 not $res or $res->is_obj($out)
1073 0 0 0 $str =~ /endstream/o or $fh->eof
1080 0 0 0 $str =~ /$cr/o or $fh->eof
1089 0 0 0 $str =~ /$cr/o or $fh->eof
1106 0 0 0 $$str =~ /endstream/o or $fh->eof
1113 0 0 0 $$str =~ /$cr/o || $fh->eof
1123 0 0 0 $$str =~ /$cr/o or $fh->eof
1305 0 0 0 $i > $#xreflist or $$self{' objects'}{$xreflist[$i]->uid}[0] != $j + 1
1371 0 0 0 $$self{'Size'} || PDFNum(1)