Condition Coverage

blib/lib/Excel/Writer/XLSX/Workbook.pm
Criterion Covered Total %
condition 115 149 77.1


and 3 conditions

line !l l&&!r l&&r condition
162 55 837 0 not ref $self->{'_filename'} and $self->{'_filename'} eq ""
647 0 2 3 defined $_[1] and $_[1] =~ /^#(\w\w)(\w\w)(\w\w)/
771 0 1 0 defined $dir and not -d $dir
961 0 0 18 defined $name and defined $value
990 12 6 0 $type eq "text" and length $value > 255
1431 1172 0 34 $num_format =~ /^\d+$/ and not $num_format =~ /^0+\d/
1564 1164 4 5 $format->{'_pattern'} == 1 and $format->{'_bg_color'} ne 0
1168 2 3 $format->{'_pattern'} == 1 and $format->{'_bg_color'} ne 0 and $format->{'_fg_color'} ne 0
1573 7 1157 9 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} ne 0
1164 3 6 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} ne 0 and $format->{'_fg_color'} eq 0
1582 7 3 1163 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} eq 0
10 1150 13 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} eq 0 and $format->{'_fg_color'} ne 0
1657 4 1 2 $sheet->{'_repeat_cols'} and $sheet->{'_repeat_rows'}
2088 16 0 0 exists $seen_ranges{$range} and defined $seen_ranges{$range}
2136 28 0 0 $token =~ /^<r>/ and $token =~ m[</r>$]
2195 31 1141 1 $row_start != $row_end and $col_start != $col_end
2471 375 296 80 ($marker & 65520) == 65472 and $marker != 65476
671 0 80 ($marker & 65520) == 65472 and $marker != 65476 and $marker != 65484

or 2 conditions

line l !l condition
58 892 0 $_[0] || ''
59 10 882 $_[1] || {}
424 417 20 $arg{'embedded'} || 0
499 63 990 shift() || ''
500 20 1033 shift() || 0
652 5 0 $_[0] || 0
653 5 0 $_[1] || 0
654 3 2 $_[2] || 0
655 3 2 $_[3] || 0
1074 3 0 shift() || 'auto'

or 3 conditions

line l !l&&r !l&&!r condition
531 2 1 1043 $name =~ /^'/ or $name =~ /'$/
660 0 0 5 $index < 8 or $index > 64
666 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)
814 3 1 35 not $name =~ /^[\w\\][\w\\.]*$/ or $name =~ /^\d/
826 4 2 25 $name =~ /^[rcRC]$/ or $name =~ /^[rcRC]\d+[rcRC]\d+$/
880 0 0 3 $tab_ratio < 0 or $tab_ratio > 100
1394 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'}
1543 3 14 16 $format->{'_pattern'} or $format->{'_bg_color'}
14 0 16 $format->{'_pattern'} or $format->{'_bg_color'} or $format->{'_fg_color'}
1654 3 4 1037 $sheet->{'_repeat_cols'} or $sheet->{'_repeat_rows'}
1806 416 97 528 $chart_count or $image_count
97 10 518 $chart_count or $image_count or $shape_count
10 18 500 $chart_count or $image_count or $shape_count or $header_image_count
18 1 499 $chart_count or $image_count or $shape_count or $header_image_count or $footer_image_count
1 5 494 $chart_count or $image_count or $shape_count or $header_image_count or $footer_image_count or $has_background
1817 416 97 34 $chart_count or $image_count
513 10 24 $chart_count or $image_count or $shape_count
1969 58 22 961 $sheet->{'_has_vml'} or $sheet->{'_has_header_vml'}