Condition Coverage

blib/lib/Excel/Writer/XLSX/Chart.pm
Criterion Covered Total %
condition 129 169 76.3


and 2 conditions

line l !l condition
3213 0 742 $axis_ids and scalar @$axis_ids
3319 0 62 $axis_ids and scalar @$axis_ids
3422 0 32 $axis_ids and scalar @$axis_ids

and 3 conditions

line !l l&&!r l&&r condition
187 975 62 0 $self->{'_requires_category'} and not exists $arg{'categories'}
717 537 1198 936 $arg{'major_gridlines'} and $arg{'major_gridlines'}{'visible'}
723 2662 0 9 $arg{'minor_gridlines'} and $arg{'minor_gridlines'}{'visible'}
974 0 82 187 defined $color and $color =~ /^#[0-9a-fA-F]{6}$/
1388 11 0 1026 not $marker and ref $marker ne "HASH"
1476 13 0 1024 not $trendline and ref $trendline ne "HASH"
1549 14 0 2060 not $args and ref $args ne "HASH"
1663 92 0 963 not $labels and ref $labels ne "HASH"
1757 10 9 8 $property{'value'} and $property{'value'} =~ /^=[^!]+!\$/
2584 330 4 4 $second_chart and $second_chart->{'_is_secondary'}
3724 68 5 261 not $self->{'_cat_has_num_fmt'} and $default_format
4126 377 0 4 defined $legend->{'_delete_series'} and ref $legend->{'_delete_series'} eq "ARRAY"
4502 44 0 21 $font and exists $font->{'_rotation'}
4534 25 132 18 not defined $rot and $is_y_axis
4680 104 52 12 $font and $font->{'_color'}
4759 44 17 4 $font and $font->{'_color'}
4815 11 0 15 $font and exists $font->{'_rotation'}
5463 9 6176 3 defined $token and not $token =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/
5724 23 0 4 defined $label->{'delete'} and $label->{'delete'}
6400 0 8 0 defined $token and not $token =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/

or 2 conditions

line l !l condition
815 41 24 $args->{'baseline'} || 0
1913 16 15 $arg{'position'} || 'right'
3805 17 746 shift() || 'nextTo'
3843 18 736 shift() || 'autoZero'
3894 3 330 shift() || 'ctr'
4086 2 1 shift() || 'days'
4103 1 2 shift() || 'days'
4121 26 355 $legend->{'_position'} || 'right'

or 3 conditions

line l !l&&r !l&&!r condition
265 1 12 1024 $x2_axis or $y2_axis
473 1 1 4 $style_id < 0 or $style_id > 48
1295 0 0 14 not $args->{'colors'} or ref $args->{'colors'} ne "ARRAY"
1318 0 0 5 $pos < 0 or $pos > 100
1348 0 0 2 $angle < 0 or $angle > "359.9"
2017 0 0 32 $value < 0 or $value > 1
2108 58 13 3293 $element->{'_line'}{'_defined'} || $element->{'_fill'}{'_defined'} || $element->{'_pattern'} || $element->{'_gradient'}
3104 1 331 0 $x_axis->{'_position'} || $position
3157 253 75 4 $self->{'_show_crosses'} or $x_axis->{'_visible'}
3160 325 1 2 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq "max"
326 1 1 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq "max" or $y_axis->{'_crossing'} eq "min"
3210 62 680 0 $args{'position'} || $self->{'_val_axis_position'}
3216 13 368 0 $y_axis->{'_position'} || $position
3272 365 13 3 not defined $x_axis->{'_crossing'} or $x_axis->{'_crossing'} eq "max"
378 1 2 not defined $x_axis->{'_crossing'} or $x_axis->{'_crossing'} eq "max" or $x_axis->{'_crossing'} eq "min"
3316 62 0 0 $args{'position'} || $self->{'_val_axis_position'}
3322 1 31 0 $x_axis->{'_position'} || $position
3378 30 1 1 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq "max"
31 0 1 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq "max" or $y_axis->{'_crossing'} eq "min"
3427 0 17 0 $x_axis->{'_position'} || $position
3482 4 12 1 $self->{'_show_crosses'} or $x_axis->{'_visible'}
3485 16 0 0 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq "max"
16 0 0 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq "max" or $y_axis->{'_crossing'} eq "min"
4031 3 410 0 shift() || $self->{'_cross_between'}
4682 9 8 151 @latin_attributes or $has_color
4765 3 1 61 @latin_attributes or $has_color
4843 47 227 759 shift() || $self->{'_default_marker'}
6473 1 0 2 $format->{'_line'}{'_defined'} or $format->{'_fill'}{'_defined'}
6499 1 0 2 $format->{'_line'}{'_defined'} or $format->{'_fill'}{'_defined'}