Condition Coverage

blib/lib/Excel/Writer/XLSX/Chart.pm
Criterion Covered Total %
condition 120 157 76.4


and 2 conditions

line l !l condition
3211 0 726 $axis_ids and scalar @$axis_ids
3315 0 62 $axis_ids and scalar @$axis_ids
3416 0 32 $axis_ids and scalar @$axis_ids

and 3 conditions

line !l l&&!r l&&r condition
187 951 62 0 $self->{'_requires_category'} and not exists $arg{'categories'}
717 529 1179 917 $arg{'major_gridlines'} and $arg{'major_gridlines'}{'visible'}
723 2616 0 9 $arg{'minor_gridlines'} and $arg{'minor_gridlines'}{'visible'}
974 0 80 187 defined $color and $color =~ /^#[0-9a-fA-F]{6}$/
1388 11 0 1002 not $marker and ref $marker ne 'HASH'
1476 13 0 1000 not $trendline and ref $trendline ne 'HASH'
1549 14 0 2012 not $args and ref $args ne 'HASH'
1663 87 0 944 not $labels and ref $labels ne 'HASH'
1757 9 7 6 $property{'value'} and $property{'value'} =~ /^=[^!]+!\$/
2584 322 4 4 $second_chart and $second_chart->{'_is_secondary'}
3716 68 5 253 not $self->{'_cat_has_num_fmt'} and $default_format
4118 369 0 4 defined $legend->{'_delete_series'} and ref $legend->{'_delete_series'} eq 'ARRAY'
4494 42 0 18 $font and exists $font->{'_rotation'}
4526 21 129 18 not defined $rot and $is_y_axis
4672 104 48 11 $font and $font->{'_color'}
4751 42 14 4 $font and $font->{'_color'}
4807 11 0 13 $font and exists $font->{'_rotation'}
5455 9 6056 3 defined $token and not $token =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/
5716 18 0 4 defined $label->{'delete'} and $label->{'delete'}
6384 0 8 0 defined $token and not $token =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/

or 2 conditions

line l !l condition
815 36 24 $args->{'baseline'} || 0
1913 16 15 $arg{'position'} || 'right'
3797 17 730 shift() || 'nextTo'
3835 16 722 shift() || 'autoZero'
3886 3 322 shift() || 'ctr'
4078 2 1 shift() || 'days'
4095 1 2 shift() || 'days'
4113 26 347 $legend->{'_position'} || 'right'

or 3 conditions

line l !l&&r !l&&!r condition
265 1 12 1000 $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 3207 $element->{'_line'}{'_defined'} || $element->{'_fill'}{'_defined'} || $element->{'_pattern'} || $element->{'_gradient'}
3104 1 323 0 $x_axis->{'_position'} || $position
3157 245 75 4 $self->{'_show_crosses'} or $x_axis->{'_visible'}
3160 318 1 1 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq 'max'
3208 62 664 0 $args{'position'} || $self->{'_val_axis_position'}
3214 13 360 0 $y_axis->{'_position'} || $position
3270 358 13 2 not defined $x_axis->{'_crossing'} or $x_axis->{'_crossing'} eq 'max'
3312 62 0 0 $args{'position'} || $self->{'_val_axis_position'}
3318 1 31 0 $x_axis->{'_position'} || $position
3374 30 1 1 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq 'max'
3421 0 17 0 $x_axis->{'_position'} || $position
3476 4 12 1 $self->{'_show_crosses'} or $x_axis->{'_visible'}
3479 16 0 0 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq 'max'
4023 3 402 0 shift() || $self->{'_cross_between'}
4674 9 7 147 @latin_attributes or $has_color
4757 3 1 56 @latin_attributes or $has_color
4835 47 218 744 shift() || $self->{'_default_marker'}
6457 1 0 2 $format->{'_line'}{'_defined'} or $format->{'_fill'}{'_defined'}
6483 1 0 2 $format->{'_line'}{'_defined'} or $format->{'_fill'}{'_defined'}