Condition Coverage

blib/lib/Excel/Writer/XLSX/Workbook.pm
Criterion Covered Total %
condition 112 146 76.7


and 3 conditions

line !l l&&!r l&&r condition
160 55 794 0 not ref $self->{'_filename'} and $self->{'_filename'} eq ''
642 0 2 3 defined $_[1] and $_[1] =~ /^#(\w\w)(\w\w)(\w\w)/
766 0 1 0 defined $dir and not -d $dir
956 0 0 18 defined $name and defined $value
985 12 6 0 $type eq 'text' and length $value > 255
1408 1119 0 34 $num_format =~ /^\d+$/ and not $num_format =~ /^0+\d/
1541 1111 4 5 $format->{'_pattern'} == 1 and $format->{'_bg_color'} ne '0'
1115 2 3 $format->{'_pattern'} == 1 and $format->{'_bg_color'} ne '0' and $format->{'_fg_color'} ne '0'
1550 5 1106 9 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} ne '0'
1111 3 6 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} ne '0' and $format->{'_fg_color'} eq '0'
1559 5 3 1112 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} eq '0'
8 1099 13 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} eq '0' and $format->{'_fg_color'} ne '0'
1634 4 1 2 $sheet->{'_repeat_cols'} and $sheet->{'_repeat_rows'}
2024 16 0 0 exists $seen_ranges{$range} and defined $seen_ranges{$range}
2072 27 0 0 $token =~ /^/ and $token =~ m[$]
2131 28 1117 1 $row_start != $row_end and $col_start != $col_end
2400 316 240 66 ($marker & 65520) == 65472 and $marker != 65476
556 0 66 ($marker & 65520) == 65472 and $marker != 65476 and $marker != 65484

or 2 conditions

line l !l condition
58 849 0 $_[0] || ''
59 10 839 $_[1] || {}
419 409 20 $arg{'embedded'} || 0
494 63 945 shift() || ''
495 20 988 shift() || 0
647 5 0 $_[0] || 0
648 5 0 $_[1] || 0
649 3 2 $_[2] || 0
650 3 2 $_[3] || 0
1055 3 0 shift() || 'auto'

or 3 conditions

line l !l&&r !l&&!r condition
526 2 1 998 $name =~ /^'/ or $name =~ /'$/
655 0 0 5 $index < 8 or $index > 64
661 0 0 5 $red < 0 or $red > 255
0 0 5 $green < 0 or $green > 255
0 0 5 $red < 0 or $red > 255 or ($green < 0 or $green > 255)
0 0 5 $blue < 0 or $blue > 255
0 0 5 $red < 0 or $red > 255 or ($green < 0 or $green > 255) or ($blue < 0 or $blue > 255)
809 3 1 35 not $name =~ /^[\w\\][\w\\.]*$/ or $name =~ /^\d/
821 4 2 25 $name =~ /^[rcRC]$/ or $name =~ /^[rcRC]\d+[rcRC]\d+$/
875 0 0 3 $tab_ratio < 0 or $tab_ratio > 100
1371 7 2 24 $format->{'_color'} or $format->{'_bold'}
2 0 24 $format->{'_color'} or $format->{'_bold'} or $format->{'_italic'}
0 1 23 $format->{'_color'} or $format->{'_bold'} or $format->{'_italic'} or $format->{'_underline'}
1 1 22 $format->{'_color'} or $format->{'_bold'} or $format->{'_italic'} or $format->{'_underline'} or $format->{'_font_strikeout'}
1520 3 14 16 $format->{'_pattern'} or $format->{'_bg_color'}
14 0 16 $format->{'_pattern'} or $format->{'_bg_color'} or $format->{'_fg_color'}
1631 3 4 992 $sheet->{'_repeat_cols'} or $sheet->{'_repeat_rows'}
1781 408 85 503 $chart_count or $image_count
85 10 493 $chart_count or $image_count or $shape_count
10 18 475 $chart_count or $image_count or $shape_count or $header_image_count
18 1 474 $chart_count or $image_count or $shape_count or $header_image_count or $footer_image_count
1791 408 85 29 $chart_count or $image_count
493 10 19 $chart_count or $image_count or $shape_count
1923 57 21 918 $sheet->{'_has_vml'} or $sheet->{'_has_header_vml'}