Branch Coverage

blib/lib/PostScript/Graph/XY.pm
Criterion Covered Total %
branch 99 150 66.0


line true false branch
139 0 3 if (@_ == 1) { }
145 1 2 unless defined $$o{'opt'}{'file'}
146 1 2 unless defined $$o{'opt'}{'layout'}
147 1 2 unless defined $$o{'opt'}{'x_axis'}
148 1 2 unless defined $$o{'opt'}{'y_axis'}
149 2 1 unless defined $$o{'opt'}{'style'}
150 3 0 unless defined $$o{'opt'}{'key'}
151 3 0 unless defined $$o{'opt'}{'chart'}
154 0 3 defined $$ch{'show_points'} ? :
155 0 3 defined $$ch{'show_lines'} ? :
156 0 3 defined $$ch{'show_key'} ? :
157 0 3 defined $$ch{'data'} ? :
159 3 0 unless defined $$o{'opt'}{'style'}{'sequence'}
160 0 3 if $$o{'data'}
212 16 15 if (/ARRAY/)
213 14 1 if (/HASH/)
214 0 1 if (/PostScript::Graph::Style/)
218 0 16 unless defined $data
219 5 11 unless defined $$o{'ylabel'}
222 2 14 unless defined $opts
223 1 15 unless defined $$opts{'line'}
224 2 14 unless defined $$opts{'point'}
225 16 0 unless defined $style
241 13 3 unless ($$first[0][1] =~ /$number/)
246 2 14 unless defined $$o{'ylabel'}
253 70 0 if ($x =~ /$number/)
254 16 54 if not defined $xmin or $x < $xmin
255 70 0 if not defined $xmax or $x > $xmax
257 70 0 if ($y =~ /$number/)
258 21 49 if not defined $ymin or $y < $ymin
259 65 5 if not defined $ymax or $y > $ymax
328 0 1 unless open INFILE, '<', $filename
332 5 1 if ($ok)
334 5 0 if @row
391 0 16 unless ref $data eq 'ARRAY'
394 84 0 if (ref $row eq 'ARRAY')
397 28 115 unless defined $res[$i]
415 0 3 if (@_)
416 0 0 if (ref $_[0] eq 'ARRAY') { }
426 0 3 unless defined $$oo{'x_axis'}
428 0 3 unless defined $$oo{'y_axis'}
442 3 13 if $size > $maxsize
443 0 16 if $lw / 2 > $lwidth
444 4 12 if not defined $xmin or $$line{'xmin'} < $xmin
445 4 12 if not defined $xmax or $$line{'xmax'} > $xmax
446 6 10 if not defined $ymin or $$line{'ymin'} < $ymin
447 12 4 if not defined $ymax or $$line{'ymax'} > $ymax
448 3 13 unless defined $$ox{'title'}
449 2 14 unless defined $$oy{'title'}
451 5 11 if $len > $maxlen
460 0 3 unless defined $$oo{'file'}
462 3 0 unless defined $$of{'left'}
463 3 0 unless defined $$of{'right'}
464 3 0 unless defined $$of{'top'}
465 3 0 unless defined $$of{'bottom'}
466 1 2 unless defined $$of{'errors'}
467 0 3 ref $of eq 'PostScript::File' ? :
471 0 3 unless defined $$oo{'layout'}
474 0 3 defined $$oc{'bottom_edge'} ? :
475 0 3 defined $$oc{'top_edge'} ? :
476 0 3 defined $$oc{'spacing'} ? :
480 3 0 if ($$o{'key'})
481 0 3 unless defined $$oo{'key'}
483 0 3 if (defined $$ok{'max_height'}) { }
484 0 0 if $$ok{'max_height'} > $height
489 0 3 defined $$ok{'text_size'} ? :
499 3 0 $$o{'key'} ? :
504 3 0 if $$o{'key'}
530 16 0 if ($$o{'points'} and $$o{'lines'})
536 0 16 if ($$o{'points'} and not $$o{'lines'})
542 0 16 if (not $$o{'points'} and $$o{'lines'})
548 0 0 unless ($$o{'points'} or $$o{'lines'})
557 16 0 if ($cmd)
559 16 0 if $$o{'key'}
705 3 0 unless $ps->has_function($name)