Branch Coverage

blib/lib/GD/SVG.pm
Criterion Covered Total %
branch 3 116 2.5


line true false branch
102 0 0 if ref $self and $$self{'debug'} > 0
196 0 0 if $$self{'debug'} > 0
278 0 1 $debug ? :
289 0 0 if @_
340 1 1 defined $$self{'colors_added'} ? :
391 0 0 if ($index) { }
487 0 0 if defined $id
488 0 0 if defined $style
498 0 0 if ($group) { }
0 0 elsif (@{$$this{'img'};} > 1) { }
510 0 0 unless 'GD::Group'->can('new')
539 0 0 if ($color_index eq 'gdStyled' or $color_index eq 'gdBrushed') { }
567 0 0 if ($color_index eq 'gdStyled' or $color_index eq 'gdBrushed') { }
576 0 0 if $x1 > $x2
577 0 0 if $y1 > $y2
612 0 0 if $p->isa('GD::Polyline')
618 0 0 $close ? :
619 0 0 if ($color_index eq 'gdStyled' or $color_index eq 'gdBrushed') { }
626 0 0 if ($poly->can('_fetch_vertices')) { }
660 0 0 if ($color_index eq 'gdStyled' or $color_index eq 'gdBrushed') { }
696 0 0 if ($color_index eq 'gdStyled' or $color_index eq 'gdBrushed') { }
703 0 0 if ($start == 0 and $end == 360 or $end == 360 and $start == 0) { }
746 0 0 abs $start - $end > 180 ? :
754 0 0 if ($color_index eq 'gdStyled' or $color_index eq 'gdBrushed') { }
765 0 0 if ($fill_style == 2 or $fill_style == 4 or $fill_style == 6) { }
772 0 0 if ($start == 0 and $end == 360 or $start == 360 and $end == 0) { }
0 0 elsif ($end - $start > 180 and $fill_style == 0 || $fill_style == 4) { }
792 0 0 if ($fill_style == 4 or $fill_style == 6)
799 0 0 if ($fill_style == 2 or $fill_style == 6)
805 0 0 if ($fill_style == 3)
812 0 0 if ($fill_style == 0 or $fill_style == 4)
854 0 0 if ($source->isa('GD::Image') or $source->isa('GD::Simple'))
872 0 0 unless ($x and $y)
874 0 0 if (@points)
880 0 0 unless ($x and $y)
882 0 0 if (@d)
891 0 0 if ($x >= $topx and $y >= $topy and ($x <= $bottomx and $y <= $bottomy))
901 0 0 if ($type eq 'text' or $type eq 'rect') { }
0 0 elsif ($type eq 'circle' or $type eq 'ellipse') { }
0 0 elsif ($type eq 'line') { }
0 0 elsif ($type eq 'polygon') { }
0 0 elsif ($type eq 'path') { }
958 0 0 unless eval 'use MIME::Base64; 1'
962 0 0 $source->isa('GD::Simple') ? :
1093 0 0 $fill ? :
1094 0 0 defined $fill ? :
1095 0 0 if ((my $color_opacity = $self->_get_opacity($color)) > 0) { }
1107 0 0 if ($$self{'dasharray'})
1117 0 0 unless length $index > 0
1118 0 0 if $index =~ /rgb/
1119 0 0 if $index eq 'none'
1127 0 0 unless length $index > 0
1128 0 0 if $index =~ /rgb/
1129 0 0 if $index eq 'none'
1149 0 0 if ($type eq 'gdStyled') { }
1156 0 0 if (not $prev) { }
0 0 elsif ($prev and $prev eq $_) { }
0 0 elsif ($prev and $prev ne $_) { }