Branch Coverage

blib/lib/SVG/Plot.pm
Criterion Covered Total %
branch 33 54 61.1


line true false branch
159 0 5 unless $points or $pointsets
162 5 0 unless ($grid)
170 1 4 if ($self->max_width)
172 0 1 if $max_plot_width <= 0
176 1 0 if $scale > $max_width_scale
180 0 5 if ($self->max_height)
182 0 0 if $max_plot_height <= 0
186 0 0 if $scale > $max_height_scale
192 4 1 unless $self->svg_options
198 0 5 if (my $map = $self->image)
209 5 0 if ($self->points)
219 5 0 unless $self->pointsets
245 0 5 unless my $points = $args{'points'}
246 0 5 unless scalar @$points
247 0 5 unless my $svg = $args{'svg'}
248 0 5 unless my $scale = $args{'scale'}
258 4 1 if ($point_size and $point_size eq 'AUTO')
270 1 3 if ($min_size and $point_size < $min_size)
273 1 3 if ($max_size and $point_size > $max_size)
294 0 17 if $self->debug
305 0 5 if (my $line = $args{'line'})
309 0 0 if ($line eq 'follow')
329 0 5 if ($pointsets)
346 5 12 if $$_[0] <= $lx
347 10 7 if $$_[1] <= $ly
348 15 2 if $$_[0] >= $hx
349 15 2 if $$_[1] >= $hy