Branch Coverage

blib/lib/Chart/Graph/XrtUtils.pm
Criterion Covered Total %
branch 7 86 8.1


line true false branch
83 0 0 unless (-x $$converter)
84 0 0 unless ($$converter = _get_path($$converter))
106 0 0 if (_set_converterpaths(\$Chart::Graph::XrtUtils::convert)) { }
107 0 0 if (_exec_convert($Chart::Graph::XrtUtils::convert, $FORMAT, $plot_file, $output_file)) { }
116 0 0 if ($FORMAT eq 'GIF') { }
0 0 elsif ($FORMAT eq 'JPG') { }
0 0 elsif ($FORMAT eq 'PNG') { }
144 0 0 if (_set_converterpaths(\$xwdtopbm, \$pbmtotarget)) { }
145 0 0 if (_exec_netpbm($xwdtopbm, $pbmtotarget, $xwd_file, $target_file)) { }
171 6 0 if (defined $xrtver)
172 2 4 if ($xrtver eq 'xrt2d')
173 2 0 unless ($Chart::Graph::xrt2d = _get_path('xrt2d'))
178 4 0 if ($xrtver eq 'xrt3d')
179 4 0 unless ($Chart::Graph::xrt3d = _get_path('xrt3d'))
185 0 0 unless (defined $Chart::Graph::XrtUtils::xwdtopnm)
186 0 0 unless ($Chart::Graph::XrtUtils::xwdtopnm = _get_path('xwdtopnm'))
191 0 0 unless (defined $Chart::Graph::XrtUtils::xvfb)
192 0 0 unless ($Chart::Graph::XrtUtils::xvfb = _get_path('Xvfb'))
213 1 0 unless (defined $ENV{'LD_LIBRARY_PATH'})
222 0 0 if ($i eq $libpath)
265 0 0 unless (open DATAHDL, $data_filename)
277 0 0 unless (close DATAHDL)
313 0 0 unless (defined $ticks_ref)
323 0 0 if ($cnt ne $tick_cnt)
343 0 0 if ($Chart::Graph::use_xvfb) { }
355 0 0 unless (_chk_status($status))
359 0 0 if ($Chart::Graph::use_xvfb)
379 0 0 if ($Chart::Graph::use_xvfb) { }
391 0 0 unless (_chk_status($status))
395 0 0 if ($Chart::Graph::use_xvfb)
415 0 0 if ($Chart::Graph::debug) { }
423 0 0 unless (_chk_status($status))
450 0 0 if ($Chart::Graph::debug) { }
458 0 0 unless (_chk_status($status))
490 0 0 if ($try_count > 10)
494 0 0 if $Chart::Graph::debug
498 0 0 if $Chart::Graph::debug
514 0 0 if (not defined($childpid = fork)) { }
0 0 elsif ($childpid == 0) { }
520 0 0 if ($Chart::Graph::debug) { }
521 0 0 unless (exec "$Chart::Graph::XrtUtils::xvfb :$port")
526 0 0 unless (exec "$Chart::Graph::XrtUtils::xvfb :$port 2> /dev/null")
550 0 0 unless (defined $childpid)