Condition Coverage

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


and 2 conditions

line l !l condition
3086 0 680 $axis_ids and scalar @$axis_ids
3190 0 62 $axis_ids and scalar @$axis_ids
3291 0 32 $axis_ids and scalar @$axis_ids

and 3 conditions

line !l l&&!r l&&r condition
187 881 62 0 $self->{'_requires_category'} and not exists $arg{'categories'}
717 505 1131 781 $arg{'major_gridlines'} and $arg{'major_gridlines'}{'visible'}
723 2408 0 9 $arg{'minor_gridlines'} and $arg{'minor_gridlines'}{'visible'}
974 0 61 177 defined $color and $color =~ /^#[0-9a-fA-F]{6}$/
1388 11 0 932 not $marker and ref $marker ne 'HASH'
1476 13 0 930 not $trendline and ref $trendline ne 'HASH'
1549 14 0 1872 not $args and ref $args ne 'HASH'
1663 65 0 896 not $labels and ref $labels ne 'HASH'
2459 299 4 4 $second_chart and $second_chart->{'_is_secondary'}
3591 68 5 230 not $self->{'_cat_has_num_fmt'} and $default_format
3993 346 0 4 defined $legend->{'_delete_series'} and ref $legend->{'_delete_series'} eq 'ARRAY'
4367 36 0 17 $font and exists $font->{'_rotation'}
4399 21 112 18 not defined $rot and $is_y_axis
4542 99 46 6 $font and $font->{'_color'}
4621 36 14 3 $font and $font->{'_color'}
4677 9 0 7 $font and exists $font->{'_rotation'}
5331 9 5706 3 defined $token and not $token =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/
6113 0 8 0 defined $token and not $token =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/

or 2 conditions

line l !l condition
815 28 24 $args->{'baseline'} || 0
1810 16 15 $arg{'position'} || 'right'
3672 17 684 shift() || 'nextTo'
3710 16 676 shift() || 'autoZero'
3761 3 299 shift() || 'ctr'
3953 2 1 shift() || 'days'
3970 1 2 shift() || 'days'
3988 26 324 $legend->{'_position'} || 'right'

or 3 conditions

line l !l&&r !l&&!r condition
265 1 12 930 $x2_axis or $y2_axis
473 1 1 4 $style_id < 0 or $style_id > 48
1295 0 0 13 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
1914 0 0 32 $value < 0 or $value > 1
2979 1 300 0 $x_axis->{'_position'} || $position
3032 222 75 4 $self->{'_show_crosses'} or $x_axis->{'_visible'}
3035 295 1 1 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq 'max'
3083 62 618 0 $args{'position'} || $self->{'_val_axis_position'}
3089 13 337 0 $y_axis->{'_position'} || $position
3145 335 13 2 not defined $x_axis->{'_crossing'} or $x_axis->{'_crossing'} eq 'max'
3187 62 0 0 $args{'position'} || $self->{'_val_axis_position'}
3193 1 31 0 $x_axis->{'_position'} || $position
3249 30 1 1 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq 'max'
3296 0 17 0 $x_axis->{'_position'} || $position
3351 4 12 1 $self->{'_show_crosses'} or $x_axis->{'_visible'}
3354 16 0 0 not defined $y_axis->{'_crossing'} or $y_axis->{'_crossing'} eq 'max'
3898 3 379 0 shift() || $self->{'_cross_between'}
4544 8 2 141 @latin_attributes or $has_color
4627 3 0 50 @latin_attributes or $has_color
4705 47 212 680 shift() || $self->{'_default_marker'}
4771 127 23 2983 $series->{'_line'}{'_defined'} or $series->{'_fill'}{'_defined'}
23 58 2925 $series->{'_line'}{'_defined'} or $series->{'_fill'}{'_defined'} or $series->{'_pattern'}
58 13 2912 $series->{'_line'}{'_defined'} or $series->{'_fill'}{'_defined'} or $series->{'_pattern'} or $series->{'_gradient'}
6186 1 0 2 $format->{'_line'}{'_defined'} or $format->{'_fill'}{'_defined'}
6212 1 0 2 $format->{'_line'}{'_defined'} or $format->{'_fill'}{'_defined'}