Branch Coverage

blib/lib/SVG/Template/Graph.pm
Criterion Covered Total %
branch 8 140 5.7


line true false branch
245 0 18 if $$self{'_IDCACHE_'}{$id}
249 0 18 unless ($tg)
279 6 11 unless ref $text eq 'ARRAY'
281 0 17 unless scalar @$text
291 0 28 unless $to->tspan(%args)->cdata($line)
382 0 0 unless (defined $$self{'_config_'}{'xmin_p'})
384 0 0 if (ref $id eq 'ARRAY') { }
0 0 elsif (ref $id eq 'HASH') { }
453 0 0 if (not $o or ($o eq 'x' or $o eq 'y'))
457 0 0 if $o eq 'x'
465 0 0 if $o eq 'y'
492 0 0 unless ($insert_anchor_id)
499 0 0 unless ref $struct eq 'ARRAY'
511 0 0 unless $self->getTracePointMap($ti, 'path', $trace, $insert_anchor_id)
543 0 0 unless $$p{'barGraph'}
553 0 0 unless ref $$self{'map'} eq 'Transform::Canvas'
558 0 0 unless $self->drawGridLines($ti, $$p{'format'})
561 0 0 if $$p{'lineGraph'}
563 0 0 if $args{'closed'}
565 0 0 if ($$p{'barGraph'})
566 0 0 ref $$p{'data'}{'x_val'} ? :
570 0 0 ref $$p{'data'}{'y_val'} ? :
578 0 0 if $$p{'format'}{'x_axis'}
580 0 0 if $$p{'format'}{'y_axis'}
584 0 0 if defined $$p{'format'}{'x_title'}
586 0 0 if defined $$p{'format'}{'y_title'}
588 0 0 if defined $$p{'title'}
607 0 0 unless $type eq 'polyline' or $type eq 'polygon' or $type eq 'scatter'
612 0 0 if lc $args{'closed'} eq 'true'
614 0 0 if $args{'closed'}
665 0 0 $barSpace ? :
686 0 0 if ($height < 0)
738 0 0 unless ref $f eq 'HASH'
743 0 0 if (defined $$f{'labels'})
810 0 0 unless $o eq 'x' or $o eq 'y'
811 0 0 unless ref $$self{'grid'}{"${o}_p"} eq 'ARRAY'
815 0 0 unless ref $anchor eq 'HASH'
816 0 0 unless ref $f eq 'HASH'
818 0 0 if $$self{'grid'}{"${o}_c"} =~ /\D+/
828 0 0 unless defined $$self{'grid'}{"${o}_p"}[$i]
856 0 0 defined $$self{'grid'}{"${o}_p"} ? :
864 0 0 $o eq 'y' ? :
869 0 0 $o eq 'y' ? :
0 0 $o eq 'y' ? :
0 0 $o eq 'y' ? :
0 0 $o eq 'y' ? :
894 0 0 unless defined $tick
907 0 0 if ($$tick[0])
909 0 0 $o eq 'y' ? :
0 0 $o eq 'y' ? :
0 0 $o eq 'y' ? :
0 0 $o eq 'y' ? :
918 0 0 if ($$tick[1])
920 0 0 $o eq 'y' ? :
0 0 $o eq 'y' ? :
0 0 $o eq 'y' ? :
0 0 $o eq 'y' ? :
945 0 0 defined $$args{'grid'}{"${o}_u"} ? :
951 0 0 defined $$self{'grid'}{"${o}_l"} ? :
957 0 0 $o eq 'y' ? :
1008 0 0 unless $o eq 'y'
1012 0 0 unless defined $$l{"${o}_ticks"}{'style'}
1023 0 0 defined $$l{"${o}_ticks"}{'style'}{$one} ? :
1027 0 0 defined $$l{"${o}_ticks"}{'style'}{$two} ? :
1058 0 0 if defined $name
1156 0 0 if ($format eq 'time') { }
0 0 elsif ($format eq 'printf') { }
0 0 elsif ($format eq 'sprintf') { }
1182 0 17 unless (defined $myid)
1187 17 0 unless ($$self{'_IDMap_'}{$myid})