Branch Coverage

blib/lib/SVG/TT/Graph/XY.pm
Criterion Covered Total %
branch 26 44 59.0


line true false branch
434 0 2 unless defined $conf->{'data'} and ref $conf->{'data'} eq 'ARRAY'
437 1 1 unless (defined $self->{'data'})
449 4 2 if (ref $conf->{'data'}[$i] eq 'ARRAY') { }
463 0 2 if ($self->{'config'}{'stacked'} and @{$self->{'data'};})
468 0 0 unless scalar @sorted == scalar @$prev
474 0 0 unless $sorted[$i][0] == $prev->[$i][0]
487 2 0 if defined $conf->{'title'}
501 1 1 if not defined $max_key_size or $max_key_size < length $dataset->{'title'}
504 6 0 if not defined $max_x or $max_x < $pair->[0]
505 1 5 if not defined $min_x or $min_x > $pair->[0]
506 2 4 if $pair->[1] ne '' and !defined($max_y) || $max_y < $pair->[1]
507 3 3 if $pair->[1] ne '' and !defined($min_y) || $min_y > $pair->[1]
510 2 4 if not defined $max_x_label_length or $max_x_label_length < length $x_label
521 0 1 $self->_is_valid_config('min_xscale_value') ? :
522 0 1 $self->_is_valid_config('max_xscale_value') ? :
526 1 0 $self->_is_valid_config('min_yscale_value') ? :
527 0 1 $self->_is_valid_config('max_yscale_value') ? :
532 0 1 if ($self->_is_valid_config('yscale_divisions')) { }
535 0 0 if ($division >= 1) { }
547 1 0 unless ($self->_is_valid_config('max_yscale_value'))
554 0 1 $self->_is_valid_config('y_label_format') ? :
555 0 1 $self->_is_valid_config('data_value_format') ? :