Branch Coverage

blib/lib/GD/Graph/Data.pm
Criterion Covered Total %
branch 39 78 50.0


line true false branch
100 0 6 if @_
116 16 38 if ($nd > $self->num_sets)
153 0 0 unless defined $np and $np >= 0
170 0 0 unless defined $_[0] and $_[0] >= 1
188 0 2 unless defined $nd and $nd >= 1 and $nd <= $self->num_sets
190 0 2 unless defined $np and $np >= 0
208 0 0 unless defined $nd and $nd >= 1 and $nd <= $self->num_sets
210 0 0 unless defined $np and $np >= 0
214 0 0 $incl_vec ? :
231 1 17 unless defined $val
232 9 8 if not defined $min or $val < $min
233 13 4 if not defined $max or $val > $max
236 1 0 $nd == 0 ? :
1 5 unless defined $min and defined $max
268 0 5 unless defined $nd and $nd >= 1 and $nd <= $self->num_sets
289 0 3 unless defined $ds_min
290 2 1 if not defined $min or $ds_min < $min
291 1 2 if not defined $max or $ds_max > $max
294 0 1 unless defined $min and defined $max
307 0 12 unless defined $np and $np >= 0
372 3 14 unless @{$self;}
376 0 14 wantarray ? :
389 0 0 unless @{$self;}
405 0 3 unless defined $nd and $nd >= 1 and $nd <= $self->num_sets
408 0 3 unless @{$self;}
424 5 0 if ref $self
446 0 0 if $short == 0
448 0 0 if ($short > 0) { }
483 0 1 if @_ and @_ % 2
501 0 0 if $args{'preserve_undef'} and not defined $self->[$ds][$point] and not defined $self->[$i][$point]
529 0 0 if $wanted < 1 or $wanted > $self->num_sets
562 0 2 unless defined $data and ref $data eq 'ARRAY' || ref $data eq 'GD::Graph::Data'
571 0 8 unless ref $data_set eq 'ARRAY'
641 0 3 if @_ and @_ % 2
645 0 3 unless $args{'file'}
658 1 2 if (UNIVERSAL::isa($args{'file'}, 'GLOB')) { }
666 0 2 unless open $fh, $args{'file'}
673 7 11 if $line =~ /^#/ and not $args{'no_comment'}
675 0 11 unless @fields