Branch Coverage

blib/lib/PostScript/Graph/Style.pm
Criterion Covered Total %
branch 168 210 80.0


line true false branch
237 0 234 if $$o{'none'}
239 226 8 if (defined $list)
241 216 10 if ($#$old == $#$list) { }
243 0 691 if ($$list[$i] ne $$old[$i])
253 220 14 if ($$o{'initialized'}) { }
267 10 4 if (defined $list)
268 10 0 unless defined $$o{'auto'}
277 28 0 if $ch and defined $$o{$ch}
279 4 10 if (@{$$o{'choices'};} == 0)
285 44 0 if (defined $$o{$key})
320 24 727 if ($key eq 'color' or $key eq 'gray') { }
321 14 10 if (ref $value eq 'ARRAY') { }
331 727 0 if defined $$r{$key} and defined $value
344 220 0 if (@{$$o{'count'};}) { }
347 219 68 if ($$o{'count'}[$i] < $$o{'max'}[$i]) { }
352 67 1 if ($i < $#{$$o{'choices'};}) { }
369 1 0 if (exists $$o{$key} and ref $aref eq 'ARRAY')
481 9 188 unless defined $PostScript::Graph::Sequence::default_seq
521 234 0 if (@_ == 1) { }
529 0 234 if ($$o{'none'}) { }
533 37 197 defined $$opt{'sequence'} ? :
540 10 224 defined $$opt{'changes_only'} ? :
541 0 234 defined $$opt{'bgnd_outline'} ? :
542 0 234 defined $$opt{'use_color'} ? :
543 234 0 $$o{'color'} ? :
546 4 230 defined $$opt{'color'} ? :
547 0 234 defined $$opt{'width'} ? :
548 0 234 defined $$opt{'dashes'} ? :
552 20 214 if ($li)
553 14 6 defined $$li{'width'} ? :
554 0 20 defined $$li{'dashes'} ? :
555 2 18 defined $$li{'outer_color'} ? :
556 2 18 defined $$li{'outer_width'} ? :
557 3 17 defined $$li{'outer_dashes'} ? :
559 0 20 defined $$li{'color'} ? :
560 2 18 defined $$li{'inner_color'} ? :
561 2 18 defined $$li{'inner_width'} ? :
562 3 17 defined $$li{'inner_dashes'} ? :
568 204 30 if ($bl)
569 0 204 defined $$bl{'width'} ? :
570 0 204 defined $$bl{'dashes'} ? :
571 0 204 defined $$bl{'outer_color'} ? :
572 0 204 defined $$bl{'outer_width'} ? :
573 0 204 defined $$li{'outer_dashes'} ? :
575 2 202 defined $$bl{'color'} ? :
576 0 204 defined $$bl{'inner_color'} ? :
577 0 204 defined $$bl{'inner_width'} ? :
578 0 204 defined $$li{'inner_dashes'} ? :
584 16 218 if ($pp)
585 0 16 defined $$pp{'width'} ? :
586 0 16 defined $$bl{'dashes'} ? :
587 3 13 defined $$pp{'size'} ? :
588 0 16 defined $$pp{'x_offset'} ? :
589 0 16 defined $$pp{'y_offset'} ? :
590 3 13 defined $$pp{'shape'} ? :
592 2 14 defined $$pp{'outer_color'} ? :
593 3 13 defined $$pp{'outer_width'} ? :
594 0 16 defined $$pp{'outer_dashes'} ? :
596 0 16 defined $$pp{'color'} ? :
597 3 13 defined $$pp{'inner_color'} ? :
598 2 14 defined $$pp{'inner_width'} ? :
599 0 16 defined $$pp{'inner_dashes'} ? :
810 787 41 if ($$o{'rel'} and $prev)
811 787 0 defined $$o{$name} ? :
812 787 0 defined $$prev{$name} ? :
813 781 6 if $new eq $old
825 13 3 if ($$o{'rel'} and $prev)
828 12 1 if $new eq $old
837 1496 64 if ($$o{'rel'} and $prev)
840 861 635 if $new eq $old and $old ne ''
857 20 364 if $$o{'use_line'}
858 20 364 if $$o{'use_line'}
859 20 364 if $$o{'use_line'}
860 20 364 if $$o{'use_line'}
861 20 364 if $$o{'use_line'}
862 20 364 if $$o{'use_line'}
863 16 368 if $$o{'use_point'}
864 16 368 if $$o{'use_point'}
865 16 368 if $$o{'use_point'}
866 16 368 if $$o{'use_point'}
867 16 368 if $$o{'use_point'}
868 16 368 if $$o{'use_point'}
869 16 368 if $$o{'use_point'}
870 16 368 if $$o{'use_point'}
871 16 368 if $$o{'use_point'}
872 16 368 if $$o{'use_point'}
873 354 30 if $$o{'use_bar'}
874 354 30 if $$o{'use_bar'}
875 354 30 if $$o{'use_bar'}
876 354 30 if $$o{'use_bar'}
877 354 30 if $$o{'use_bar'}
878 354 30 if $$o{'use_bar'}
899 370 0 unless defined $same
901 370 0 unless ($same)
902 53 317 if (ref $col eq 'ARRAY') { }
910 14 356 if $$o{'use_line'} and $$o{'locolor'} < 0
911 14 356 if $$o{'use_point'} and $$o{'pocolor'} < 0
912 204 166 if $$o{'use_bar'} and $$o{'bocolor'} < 0
930 4 0 $$o{'seq'} ? :
931 4 0 $$o{'id'} ? :
932 0 4 $$o{'label'} ? :
933 4 0 $$o{'use_line'} ? :
934 0 4 $$o{'use_point'} ? :
935 0 4 $$o{'use_bar'} ? :
1115 14 370 unless $ps->has_function($name)