Condition Coverage

blib/lib/Chart/Base.pm
Criterion Covered Total %
condition 83 129 64.3


and 3 conditions

line !l l&&!r l&&r condition
110 0 0 0 $$self{'dataref'} and $#{$$self{'dataref'};} != $#data
131 56 160 0 $$self{'dataref'} and $#{$$self{'dataref'}[0];} != $#data
477 0 0 1 $$self{'imagemap'} =~ /^true$/i and $$self{'imagemap_data'}
785 61 1 4 $$self{'xy_plot'} =~ /^true$/i and $self->isa('Chart::Lines') || $self->isa('Chart::Points') || $self->isa('Chart::LinesPoints') || $self->isa('Chart::Split') || $self->isa('Chart::ErrorBars')
1104 10360 71 0 wantarray && @_ > 1
1114 0 0 88 @rgb == 3 and grep((!/^\d+$/ || $_ > 255), @rgb) == 0
1502 64 66 326 $$self{'f_y_tick'} == \&_default_f_tick and $prec_test == 0
64 0 66 $$self{'f_y_tick'} == \&_default_f_tick and $prec_test == 1
1594 45 9 0 $minF and int $min * $divisor != $min * $divisor
1595 39 15 0 $maxF and int $max * $divisor != $max * $divisor
1661 4 0 0 $minF and int $min * $divisor != $min * $divisor
1662 4 0 0 $maxF and int $max * $divisor != $max * $divisor
1793 21 39 0 $$self{'grey_background'} =~ /^true$/i and $self->isa('Chart::Direction')
1820 23 7 0 $#{$$self{'legend_labels'};} >= 0 and scalar @{$$self{'legend_labels'};} != $$self{'num_datasets'}
2359 47 1 4 $$self{'xy_plot'} =~ /^true$/i and $self->isa('Chart::Lines') || $self->isa('Chart::Points') || $self->isa('Chart::LinesPoints') || $self->isa('Chart::Split') || $self->isa('Chart::ErrorBars')

or 2 conditions

line l !l condition
499 41 35 shift @_ || 400
500 41 35 shift @_ || 300
2739 53 0 shift @_ || 'left'
2949 0 26 shift @_ || 'x_grid_lines'
2963 0 35 shift @_ || 'y_grid_lines'
2986 0 23 shift @_ || 'y2_grid_lines'

or 3 conditions

line l !l&&r !l&&!r condition
57 0 76 0 ref $proto || $proto
785 1 0 4 $self->isa('Chart::Lines') || $self->isa('Chart::Points')
1 1 3 $self->isa('Chart::Lines') || $self->isa('Chart::Points') || $self->isa('Chart::LinesPoints')
2 0 3 $self->isa('Chart::Lines') || $self->isa('Chart::Points') || $self->isa('Chart::LinesPoints') || $self->isa('Chart::Split')
2 2 1 $self->isa('Chart::Lines') || $self->isa('Chart::Points') || $self->isa('Chart::LinesPoints') || $self->isa('Chart::Split') || $self->isa('Chart::ErrorBars')
1083 137 370 61 $$self{'colors'}{$role} || $$self{'colors_default_spec'}{$role}
507 61 0 $$self{'colors'}{$role} || $$self{'colors_default_spec'}{$role} || $$self{'colors_default_spec'}{$$self{'colors_default_role'}{$role}}
1114 0 0 264 !/^\d+$/ || $_ > 255
1578 0 0 0 not defined $divisor or $divisor == 0
1645 0 0 0 not defined $divisor or $divisor == 0
1702 170 19 111 0 == $fracN || $roundUP * $fracN < 0
2359 1 0 4 $self->isa('Chart::Lines') || $self->isa('Chart::Points')
1 1 3 $self->isa('Chart::Lines') || $self->isa('Chart::Points') || $self->isa('Chart::LinesPoints')
2 0 3 $self->isa('Chart::Lines') || $self->isa('Chart::Points') || $self->isa('Chart::LinesPoints') || $self->isa('Chart::Split')
2 2 1 $self->isa('Chart::Lines') || $self->isa('Chart::Points') || $self->isa('Chart::LinesPoints') || $self->isa('Chart::Split') || $self->isa('Chart::ErrorBars')
2478 18 0 13 $$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i
2704 21 46 48 $$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i
2714 0 0 0 $$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i
2724 132 0 128 $$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i
2794 4 0 40 $$self{'grid_lines'} =~ /^true$/i or $$self{'y2_grid_lines'} =~ /^true$/i
2839 51 17 6 $$self{'grid_lines'} =~ /^true$/i or $$self{'y_grid_lines'} =~ /^true$/i
2865 51 0 23 $$self{'grid_lines'} =~ /^true$/i or $$self{'y2_grid_lines'} =~ /^true$/i
2909 111 89 130 $$self{'grid_lines'} =~ /^true$/i or $$self{'y_grid_lines'} =~ /^true$/i
3027 0 0 9280 not length $type or not grep {$type eq $_;} 'line', 'point'