Branch Coverage

blib/lib/PostScript/Graph/Paper.pm
Criterion Covered Total %
branch 180 250 72.0


line true false branch
165 12 5 if (@_ == 1) { }
175 13 4 if (ref $$opt{'file'} eq 'PostScript::File') { }
178 1 3 defined $$opt{'file'} ? :
179 3 1 unless defined $$fileopts{'left'}
180 3 1 unless defined $$fileopts{'right'}
181 3 1 unless defined $$fileopts{'top'}
182 3 1 unless defined $$fileopts{'bottom'}
183 3 1 unless defined $$fileopts{'errors'}
192 11 6 if (defined $$o{'x'}{'labels'}) { }
197 1 16 if (defined $$o{'y'}{'labels'}) { }
204 17 0 unless $$opt{'layout'}{'no_drawing'}
488 2 15 unless defined $$opt{'layout'}
495 4 13 defined $$r{'left_edge'} ? :
496 1 16 defined $$r{'bottom_edge'} ? :
497 2 15 defined $$r{'right_edge'} ? :
498 2 15 defined $$r{'top_edge'} ? :
499 0 17 defined $$r{'top_margin'} ? :
500 0 17 defined $$r{'right_margin'} ? :
501 1 16 defined $$r{'bottom_edge'} ? :
502 0 17 defined $$r{'spacing'} ? :
503 1 16 defined $$r{'dots_per_inch'} ? :
505 0 17 defined $$r{'color'} ? :
506 0 17 defined $$r{'outline'} ? :
507 3 14 defined $$r{'background'} ? :
508 5 12 defined $$r{'heavy_color'} ? :
509 5 12 defined $$r{'mid_color'} ? :
510 0 17 defined $$r{'light_color'} ? :
511 0 17 defined $$r{'heavy_width'} ? :
512 0 17 defined $$r{'mid_width'} ? :
513 0 17 defined $$r{'light_width'} ? :
515 0 17 defined $$r{'font'} ? :
516 0 17 defined $$r{'font_size'} ? :
517 0 17 defined $$r{'font_color'} ? :
518 1 16 defined $$r{'heading_font'} ? :
519 1 16 defined $$r{'heading_font_size'} ? :
520 1 16 defined $$r{'heading_font_color'} ? :
521 3 14 defined $$r{'heading'} ? :
531 15 2 defined $$r{'key_width'} ? :
536 0 17 defined $$r{'heading_height'} ? :
770 0 0 if defined $ar
776 0 0 if defined $ar
782 6 28 unless defined $r
783 34 0 unless defined $$o{$axis}{'markmin'}
786 0 34 unless defined $r
788 0 34 defined $$r{'mark_min'} ? :
789 0 34 defined $$r{'mark_max'} ? :
790 0 34 defined $$r{'font'} ? :
791 0 34 defined $$r{'font_size'} ? :
792 0 34 defined $$r{'font_color'} ? :
795 12 22 defined $$r{'labels'} ? :
796 1 33 defined $$r{'offset'} ? :
797 12 22 $bar ? :
798 4 30 defined $$r{'rotate'} ? :
799 1 33 defined $$r{'center'} ? :
800 3 31 defined $$r{'show_lines'} ? :
810 12 22 if (defined $$sc{'labels'})
813 13 101 if $len > $maxlen
817 17 17 if ($axis eq 'x') { }
17 0 elsif ($axis eq 'y') { }
819 11 6 if (defined $$sc{'labels'} and $$sc{'flags'} & 1) { }
820 0 11 defined $$r{'glyph_ratio'} ? :
826 0 17 if (defined $$sc{'labels'} and $$sc{'flags'} & !1) { }
833 0 34 defined $$r{'width'} ? :
834 1 33 defined $$r{'height'} ? :
845 6 28 unless defined $r
848 0 34 if defined $$r{'label_gap'} and $$r{'label_gap'} <= 0
849 16 18 defined $$r{'low'} ? :
850 16 18 defined $$r{'high'} ? :
851 0 34 defined $$r{'label_gap'} ? :
852 6 28 defined $$r{'smallest'} ? :
853 16 18 defined $$r{'title'} ? :
854 0 34 defined $$r{'si_shift'} ? :
858 17 17 if ($x) { }
17 0 elsif ($y) { }
861 0 17 defined $$r{'draw_fn'} ? :
865 0 17 defined $$r{'draw_fn'} ? :
872 11 23 if ($x and $bar) { }
874 3 8 if ($show) { }
875 0 3 defined $$r{'heavy_color'} ? :
876 0 3 defined $$r{'mid_color'} ? :
881 0 11 defined $$r{'light_color'} ? :
884 0 23 defined $$r{'heavy_color'} ? :
885 0 23 defined $$r{'mid_color'} ? :
886 0 23 defined $$r{'light_color'} ? :
888 0 34 defined $$r{'heavy_width'} ? :
889 0 34 defined $$r{'mid_width'} ? :
890 0 34 defined $$r{'light_width'} ? :
899 0 12 unless defined $r
906 3 9 unless ($labels[$#labels] eq '()')
914 9 3 defined $$r{'sub_divisions'} ? :
916 0 12 defined $$r{'mark_mul'} ? :
918 9 3 $subdivs > 1 ? :
919 0 12 $$sc{'flags'} & $fl_offset ? :
942 6 16 unless defined $r
945 0 22 unless $$sc{'llo'} <= $$sc{'lhi'}
947 5 17 if ($$sc{'llo'} < 0 and $$sc{'lhi'} > 0) { }
951 5 0 if ($posrange > $negrange) { }
963 0 22 defined $$r{'labels_req'} ? :
965 0 22 if $$sc{'labsreq'} < 1
968 20 2 $sclrange > 0 ? :
978 98 12 if ($score < $best)
995 0 22 if $lhi == $llo
1011 38 29 $subdivs == 2 ? :
1013 0 22 if ($rem / 5 > 1) { }
12 10 elsif ($rem / 2 > 1) { }
1042 22 28 if ($nlabels >= $$sc{'labsreq'})
1043 13 9 if (abs $last - $$sc{'labsreq'} < abs $nlabels - $$sc{'labsreq'}) { }
1052 0 22 if $$sc{'ldepth'} < 0
1054 22 0 $#factor >= 0 ? :
1057 21 1 $$sc{'lhi'} != 0 ? :
1058 22 0 $$sc{'si'} ? :
1060 0 22 if ($si != 1)
1061 0 0 unless defined $$sc{'title'}
1064 0 0 $groups > 1 ? :
1079 271 103 if $count[$depth] < $factor[$depth]
1205 354 0 if (defined $$o{'x'}{'labels'}) { }
1212 354 0 if (defined $y) { }
1216 25 329 if ($top < $bottom)
1224 0 354 if $top < $gy0
1225 0 354 if $bottom < $gy0
1226 0 354 if $top > $gy1
1227 0 354 if $bottom > $gy1
1248 0 0 unless defined $x
1336 53 331 if defined $b
1565 17 0 unless $ps->has_function($name)