Condition Coverage

blib/lib/Image/ExifTool/WritePostScript.pl
Criterion Covered Total %
condition 30 87 34.4


and 3 conditions

line !l l&&!r l&&r condition
116 1 0 1 $dirName eq "XMP" and $len
328 0 0 0 $raf->Read($buff, 6) == 6 and $buff eq "obe-PS"
340 0 0 0 $raf->Seek($psStart, 0) and $raf->Read($data, 4) == 4
0 0 0 $raf->Seek($psStart, 0) and $raf->Read($data, 4) == 4 and $data eq "%!PS"
363 0 0 0 $raf->Seek($base, 0) and $raf->Read($buff, $len) == $len
376 0 0 0 $raf->Seek($base, 0) and $raf->Read($buff, $len) == $len
393 0 0 1 $/ and $raf->ReadLine($buff)
398 0 0 1 $data =~ /^%!PS-Adobe-3\.(\d+)\b/ and $1 < 2
424 3 2 0 defined $xmpHint and $data =~ /^%ADO_ContainsXMP:? ?(.+?)[\x0d\x0a]*$/s
443 29 0 0 $data =~ /^<\?xpacket begin=.{7,13}W5M0MpCehiHzreSzNTczkc9d/ and $editDirs->{'XMP'}
473 5 0 2 $mode and $editDirs->{$mode}
488 4 1 0 $tag eq "Creator" and $val =~ /^Adobe Illustrator/
534 3 1 1 %$newTags and !($data =~ /^%\S/) || $data =~ /^%(%EndComments|%Page:|%PlateFile:|%BeginObject:|.*BeginLayer)/
552 1 2 0 $editDirs->{$dir} and not $doneDir{$dir}
600 1 0 0 $dos and not $err
606 0 0 0 seek $outfile, 8, 0 and print $outfile &Set32u($pos - $psNewStart)
0 0 0 seek $outfile, 8, 0 and print $outfile &Set32u($pos - $psNewStart) and seek $outfile, $pos, 0
622 1 2 0 $editDirs->{$dir} and not $doneDir{$dir}
3 0 0 $editDirs->{$dir} and not $doneDir{$dir} and not $et->{'DEL_GROUP'}{$dir}

or 2 conditions

line l !l condition
85 1 0 &Write($outfile, "%begin_xml_code$/") or $success = 0
87 1 0 &Write($outfile, "%end_xml_code$/") or $success = 0
300 1 0 &Write($outfile, "%ADO_ContainsXMP: MainFirst$/") or $success = 0
434 0 0 &Write($outfile, $data) or $err = 1
462 0 0 &WriteNewTags($et, $outfile, $newTags) or $err = 1
588 0 0 &Write($outfile, @lines) or $err = 1

or 3 conditions

line l !l&&r !l&&!r condition
156 0 0 0 $create or $dirName ne "XMP"
172 1 0 0 $dirName eq "Photoshop" or $dirName eq "ICC_Profile"
422 109 83 0 @lines or &GetNextLine($raf, \@lines)
534 0 1 1 !($data =~ /^%\S/) || $data =~ /^%(%EndComments|%Page:|%PlateFile:|%BeginObject:|.*BeginLayer)/
543 0 1 4 $data =~ /^%(%Page:|%PlateFile:|%BeginObject:|.*BeginLayer)/ or not $data =~ /^(%.*|\s*)$/s
558 0 0 0 $addDirs->{$dir} or $dir eq "XMP"