Branch Coverage

blib/lib/PSGRAPH.pm
Criterion Covered Total %
branch 21 384 5.4


line true false branch
44 1 0 if defined $Data
53 2 0 if defined $Graphic
62 1 0 if defined $LabelandColor
73 1 0 if (defined $self->getSubtype)
74 0 1 if ($graphic eq '2Dpie') { }
0 1 elsif ($graphic eq '2Dbar') { }
0 1 elsif ($graphic eq '2Dcolumn') { }
75 0 0 if (defined $subtype and $subtype == 1 or not defined $subtype) { }
0 0 elsif ($subtype == 2) { }
0 0 elsif ($subtype == 3) { }
0 0 elsif ($subtype == 4) { }
0 0 elsif ($subtype == 5) { }
89 0 0 if (defined $subtype and $subtype == 1 or not defined $subtype) { }
95 0 0 if (defined $subtype and $subtype == 1 or not defined $subtype) { }
111 1 0 if defined $Subtype
120 1 0 if defined $hscale
129 1 0 if defined $vscale
138 0 0 if defined $initialdegree
147 0 0 if defined $gexport
156 0 0 if defined $legend
165 1 0 if defined $columnwidth
174 1 0 if defined $format
183 1 0 if defined $headertype
192 1 0 if defined $axistype
201 1 0 if defined $valuetype
210 1 0 if defined $valuetype
219 1 0 if defined $backgroundcolor
228 1 0 if defined $headercolor
237 0 0 if defined $explodeoffset
250 0 0 if (defined $self->getSubtype) { }
251 0 0 if (defined $self->getHscale) { }
252 0 0 if (defined $self->getVscale) { }
253 0 0 if (defined $self->getGexport) { }
254 0 0 if (defined $self->getLegend) { }
255 0 0 if (defined $self->getColumnwidth) { }
256 0 0 if (defined $self->getFormat) { }
257 0 0 if (defined $self->getHeadertype) { }
258 0 0 if (defined $self->getAxistype) { }
259 0 0 if (defined $self->getValuetype) { }
260 0 0 if (defined $self->getBackgroundcolor) { }
261 0 0 if (defined $self->getHeadercolor) { }
262 0 0 if (defined $self->getExplodeoffset) { }
263 0 0 if (defined $self->getInitialdegree) { }
267 0 1 if ($$self{'Graphic'} eq '2Dpie') { }
0 1 elsif ($$self{'Graphic'} eq '2Dcolumn') { }
0 1 elsif ($$self{'Graphic'} eq '2Dbar') { }
270 0 0 if (defined $$self{'Data'} and defined $$self{'LabelandColor'}) { }
271 0 0 unless (defined $$self{'Hscale'})
272 0 0 unless (defined $$self{'Vscale'})
273 0 0 unless (defined $$self{'Gexport'})
274 0 0 unless (defined $$self{'Valuetype'})
275 0 0 unless (defined $$self{'Explodeoffset'})
276 0 0 unless (defined $$self{'Initialdegree'})
277 0 0 if (defined $$self{'Subtype'} and $$self{'Subtype'} == 1 or not defined $$self{'Subtype'}) { }
0 0 elsif (defined $$self{'Subtype'} and $$self{'Subtype'} == 2) { }
0 0 elsif (defined $$self{'Subtype'} and $$self{'Subtype'} == 3 || $$self{'Subtype'} == 4) { }
0 0 elsif (defined $$self{'Subtype'} and $$self{'Subtype'} == 5) { }
282 0 0 unless (defined $$self{'Legend'})
284 0 0 if ($leg eq 'right' or $leg eq 'left' or $leg eq 'bottom') { }
285 0 0 if ($$self{'Subtype'} == 3) { }
0 0 elsif ($$self{'Subtype'} == 4) { }
307 0 0 unless open LC, $$self{'LabelandColor'}
312 0 0 if ($lc[5] != $currentsection)
314 0 0 if (length $sectionends > 0)
321 0 0 unless open TRANS, "<$transdata"
322 0 0 unless open TRANSPLUS, ">$transdata1"
336 0 0 if ($ii == $jj)
337 0 0 if (length $sectionmiddle > 0)
342 0 0 if ($thissection == $salength - 1)
359 0 0 if (defined $$self{'Data'} and defined $$self{'LabelandColor'}) { }
360 0 0 unless (defined $$self{'Hscale'})
361 0 0 unless (defined $$self{'Vscale'})
362 0 0 unless (defined $$self{'Gexport'})
363 0 0 unless (defined $$self{'Columnwidth'})
364 0 0 unless (defined $$self{'Format'})
365 0 0 unless (defined $$self{'Headertype'})
366 0 0 unless (defined $$self{'Valuetype'})
367 0 0 unless (defined $$self{'Axistype'})
368 0 0 unless (defined $$self{'Backgroundcolor'})
369 0 0 unless (defined $$self{'Headercolor'})
370 0 0 if (defined $$self{'Subtype'} and $$self{'Subtype'} == 1 or not defined $$self{'Subtype'})
377 0 0 if (defined $$self{'Data'} and defined $$self{'LabelandColor'}) { }
378 0 0 unless (defined $$self{'Hscale'})
379 0 0 unless (defined $$self{'Vscale'})
380 0 0 unless (defined $$self{'Gexport'})
381 0 0 unless (defined $$self{'Columnwidth'})
382 0 0 unless (defined $$self{'Format'})
383 0 0 unless (defined $$self{'Headertype'})
384 0 0 unless (defined $$self{'Valuetype'})
385 0 0 unless (defined $$self{'Valuecolor'})
386 0 0 unless (defined $$self{'Axistype'})
387 0 0 unless (defined $$self{'Backgroundcolor'})
388 0 0 unless (defined $$self{'Headercolor'})
389 0 0 if (defined $$self{'Subtype'} and $$self{'Subtype'} == 1 or not defined $$self{'Subtype'})
403 0 0 unless open DATA, './' . $data
404 0 0 unless open TRANS, ">$trans"
405 0 0 unless open DATA1, '+>data1'
419 0 0 if ($drow1 eq '') { }
434 0 0 if ($sum[$b] > $lvalue)
445 0 0 if ($c != $largest)
447 0 0 if ($d[$c] > 0)
448 0 0 if ($d[$c] < 3.6)
463 0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if ($labelx > $labelmax)
0 0 unless open PIECHARTDATA, "<$data"
0 0 unless open PIE, ">$filewithdir"
0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if (eval $thisslice > 0)
0 0 if (length $gexport > 0)
467 0 0 unless open PIECHARTDATA, "<$data"
0 0 unless open PIE, ">$filewithdir"
0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if (100 * eval($thisslice) / 36 % 10 >= 5)
0 0 if ($percent1num == 0)
0 0 if ($wholepercent == 101)
0 0 if (eval $thisslice > 0)
0 0 if (length $gexport > 0)
470 0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if ($labelx > $labelmax)
0 0 if ($legend eq 'right') { }
0 0 elsif ($legend eq 'left') { }
0 0 elsif ($legend eq 'bottom') { }
0 0 unless open PIECHARTDATA, "<$data"
0 0 unless open PIE, ">$filewithdir"
0 0 if ($legend eq 'right' or $legend eq 'left') { }
0 0 elsif ($legend eq 'bottom') { }
0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if ($legend eq 'bottom') { }
0 0 elsif ($legend eq 'right') { }
0 0 elsif ($legend eq 'left') { }
0 0 if (eval $thisslice > 0)
0 0 if (length $gexport > 0)
473 0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if ($labelx > $labelmax)
0 0 if ($legend eq 'right') { }
0 0 elsif ($legend eq 'left') { }
0 0 elsif ($legend eq 'bottom') { }
0 0 unless open PIECHARTDATA, "<$data"
0 0 unless open PIE, ">$filewithdir"
0 0 if ($legend eq 'right' or $legend eq 'left') { }
0 0 elsif ($legend eq 'bottom') { }
0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if (100 * eval($thisslice) / 36 % 10 >= 5)
0 0 if ($percent1num == 0)
0 0 if ($wholepercent == 101)
0 0 if ($legend eq 'bottom') { }
0 0 elsif ($legend eq 'right') { }
0 0 elsif ($legend eq 'left') { }
0 0 if (eval $thisslice > 0)
0 0 if (length $gexport > 0)
476 0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if ($labelx > $labelmax)
0 0 unless open PIECHARTDATA, "<$data"
0 0 unless open PIE, ">$filewithdir"
0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if ($slicecounter < $sectionarray[$sectioncnt]) { }
0 0 if (eval $thisslice > 0)
0 0 if (length $gexport > 0)
480 0 0 unless open COLCHARTDATA, "<$data"
0 0 unless open COL, ">$filewithdir"
0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if ($cols[$i] > $maxval)
0 0 if ($maxval < 10) { }
0 0 elsif ($maxval < 100) { }
0 0 elsif ($maxval < 1000) { }
0 0 elsif ($maxval < 10000) { }
0 0 elsif ($maxval < 100000) { }
0 0 if ($maxval % $roundto == 0) { }
0 0 if (length $label > 15) { }
0 0 if (length $gexport > 0)
483 0 0 unless open BARCHARTDATA, "<$data"
0 0 if ($cols[$i] > $maxval)
0 0 if ($maxval < 10) { }
0 0 elsif ($maxval < 100) { }
0 0 elsif ($maxval < 1000) { }
0 0 elsif ($maxval < 10000) { }
0 0 elsif ($maxval < 100000) { }
0 0 if ($maxval % $roundto == 0) { }
0 0 unless open BAR, ">$filewithdir"
0 0 unless open LABELANDCOLOR, "<$labelandcolor"
0 0 if (length $label > 15) { }
0 0 if (length $gexport > 0)
485 0 0 if ($number < 1000) { }
0 0 if ($number < 10000) { }
0 0 if ($number < 100000) { }
0 0 if ($number < 1000000) { }
0 0 if ($format eq 'money')
0 0 if ($format eq 'money') { }
0 0 elsif (substr($format, 0, 1) eq 'd') { }
0 0 if ($scale == 1) { }
497 0 0 if $constname eq 'constant'
499 0 0 if ($error)