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
159 55 754 0 not ref $self->{'_filename'} and $self->{'_filename'} eq ''
646 0 2 3 defined $_[1] and $_[1] =~ /^#(\w\w)(\w\w)(\w\w)/
770 0 1 0 defined $dir and not -d $dir
960 0 0 18 defined $name and defined $value
989 12 6 0 $type eq 'text' and length $value > 255
1412 1110 0 34 $num_format =~ /^\d+$/ and not $num_format =~ /^0+\d/
1545 1102 4 5 $format->{'_pattern'} == 1 and $format->{'_bg_color'} ne '0'
1106 2 3 $format->{'_pattern'} == 1 and $format->{'_bg_color'} ne '0' and $format->{'_fg_color'} ne '0'
1554 5 1097 9 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} ne '0'
1102 3 6 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} ne '0' and $format->{'_fg_color'} eq '0'
1563 5 3 1103 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} eq '0'
8 1090 13 $format->{'_pattern'} <= 1 and $format->{'_bg_color'} eq '0' and $format->{'_fg_color'} ne '0'
1638 4 1 2 $sheet->{'_repeat_cols'} and $sheet->{'_repeat_rows'}
2039 16 0 0 exists $seen_ranges{$range} and defined $seen_ranges{$range}
2087 25 0 0 $token =~ /^/ and $token =~ m[$]
2146 20 1047 1 $row_start != $row_end and $col_start != $col_end
2415 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 809 0 $_[0] || ''
59 10 799 $_[1] || {}
418 385 20 $arg{'embedded'} || 0
493 66 906 shift() || ''
494 20 952 shift() || 0
651 5 0 $_[0] || 0
652 5 0 $_[1] || 0
653 3 2 $_[2] || 0
654 3 2 $_[3] || 0
1059 3 0 shift() || 'auto'

or 3 conditions

line l !l&&r !l&&!r condition
525 2 1 962 $name =~ /^'/ or $name =~ /'$/
659 0 0 5 $index < 8 or $index > 64
665 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)
813 3 1 35 not $name =~ /^[\w\\][\w\\.]*$/ or $name =~ /^\d/
825 4 2 25 $name =~ /^[rcRC]$/ or $name =~ /^[rcRC]\d+[rcRC]\d+$/
879 0 0 3 $tab_ratio < 0 or $tab_ratio > 100
1375 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'}
1524 3 14 16 $format->{'_pattern'} or $format->{'_bg_color'}
14 0 16 $format->{'_pattern'} or $format->{'_bg_color'} or $format->{'_fg_color'}
1635 3 4 952 $sheet->{'_repeat_cols'} or $sheet->{'_repeat_rows'}
1785 384 75 497 $chart_count or $image_count
75 10 487 $chart_count or $image_count or $shape_count
10 18 469 $chart_count or $image_count or $shape_count or $header_image_count
18 1 468 $chart_count or $image_count or $shape_count or $header_image_count or $footer_image_count
1795 384 75 29 $chart_count or $image_count
459 10 19 $chart_count or $image_count or $shape_count
1927 53 21 882 $sheet->{'_has_vml'} or $sheet->{'_has_header_vml'}