Branch Coverage

blib/lib/PostScript/Convert.pm
Criterion Covered Total %
branch 0 88 0.0


line true false branch
119 0 0 if @_ % 2
122 0 0 if openhandle $ps
123 0 0 if blessed $ps
124 0 0 if ref $ps
133 0 0 if $obj->isa('PostScript::File')
135 0 0 if $obj->can('get__PostScript_File')
149 0 0 unless $v >= 2
158 0 0 if defined $oldFN
162 0 0 if ($ps->get_eps and $ps->get_pagecount > 1) { }
168 0 0 unless $outFN =~ s/(\.\w+)$//
183 0 0 unless $outFN =~ s/\.\w+$/$ext/
200 0 0 unless seek $fh, 0, 0
213 0 0 unless $type eq 'SCALAR' or $type eq 'ARRAY'
221 0 0 if ($type eq 'ARRAY') { }
224 0 0 unless seek $fh, 0, 0
235 0 0 unless open my $in, '<:raw', $filename
249 0 0 unless $$opt{'include'}
254 0 0 $$opt{'unsafe'} ? :
261 0 0 unless defined $device and length $device
264 0 0 if (defined(my $size = $$opt{'paper_size'}))
265 0 0 unless (ref $size)
266 0 0 if ($paper_size{lc $size}) { }
0 0 elsif ($size =~ /\A(\d+(?:\.\d+)?)x(\d+(?:\.\d+)?)\Z/i) { }
280 0 0 if $$opt{'resolution'}
281 0 0 if $$opt{'format_param'}
282 0 0 if $$opt{'gs_param'}
283 0 0 if $$opt{'format_code'}
285 0 0 if $Debug
295 0 0 unless ($$opt{'format'})
298 0 0 unless defined $outFN and length $outFN
301 0 0 unless $outFN =~ /\.([^.\s]+)$/
302 0 0 unless $format{$$opt{'format'} = lc $1}
305 0 0 unless my $fmt = $format{$$opt{'format'}}
309 0 0 unless defined $$opt{'key'}
320 0 0 if defined $fn
324 0 0 unless defined $fn and length $fn
327 0 0 unless $ext
333 0 0 unless defined $fn and length $fn
345 0 0 unless open my $oldin, '<&STDIN'
346 0 0 unless open STDIN, '<&', $fh
348 0 0 unless open STDIN, '<&', $oldin
351 0 0 if ($?)
357 0 0 if $signal
358 0 0 if $core