Condition Coverage

blib/lib/Spreadsheet/WriteExcelXML/Worksheet.pm
Criterion Covered Total %
condition 157 230 68.2


and 3 conditions

line !l l&&!r l&&r condition
715 0 0 13 $row1 == 0 and $col1 == 0
0 10 3 $row1 == 0 and $col1 == 0 and $row2 == $self->{'_xls_rowmax'} - 1
10 2 1 $row1 == 0 and $col1 == 0 and $row2 == $self->{'_xls_rowmax'} - 1 and $col2 == $self->{'_xls_colmax'} - 1
870 1 11 2 $row1 == 0 and $row2 == $self->{'_xls_rowmax'} - 1
1 9 2 $col1 == 0 and $col2 == $self->{'_xls_colmax'} - 1
1131 244 0 0 $self->{'_leading_zeros'} and $token =~ /^0\d+$/
1787 3 0 1 $row1 == $row2 and $col1 == $col2
2115 296 165 52 $year % 4 == 0 and $year % 100
2135 200 3 292 $date_1904 == 0 and $days > 59
2321 19 5 31 exists $self->{'_set_cols'}{$col + 1} and join('|', @{$self->{'_set_cols'}{$col};}) eq join('|', @{$self->{'_set_cols'}{$col + 1};})
2488 0 0 0 $x != 0 and $y != 0
2489 0 0 0 $x != 0 and $y == 0
2490 0 0 0 $x == 0 and $y != 0
2491 0 0 0 $x == 0 and $y == 0
2690 10 9 0 $rwFirst == $rwLast and $colFirst == $colLast
2956 149 0 34 not $self->{'_table'}[$row] || $self->{'_table'}[$row + 1] and exists $self->{'_set_rows'}{$row}
0 10 24 not $self->{'_table'}[$row] || $self->{'_table'}[$row + 1] and exists $self->{'_set_rows'}{$row} and exists $self->{'_set_rows'}{$row + 1}
10 4 20 not $self->{'_table'}[$row] || $self->{'_table'}[$row + 1] and exists $self->{'_set_rows'}{$row} and exists $self->{'_set_rows'}{$row + 1} and join('|', @{$self->{'_set_rows'}{$row};}) eq join('|', @{$self->{'_set_rows'}{$row + 1};})
3026 219 16 19 exists $self->{'_merge'}{$row} and exists $self->{'_merge'}{$row}{$col}
3037 40 25 19 $m_row == 0 and $m_col == 0
3052 245 1 8 exists $self->{'_comment'}{$row} and exists $self->{'_comment'}{$row}{$col}
3138 7 0 0 $self->{'_leading_zeros'} and $data =~ /^0\d+$/
3586 71 0 2 $self->{'_fit_width'} == 1 and $self->{'_fit_height'} == 1

or 2 conditions

line l !l condition
431 1 1 $_[0] || 0
444 2 0 $_[0] || ''
452 1 1 $_[1] || 0.5
465 2 0 $_[0] || ''
474 1 1 $_[1] || 0.5
978 4 0 $_[0] || 1
979 2 2 $_[1] || 1
1020 0 0 $_[0] || 100
1041 1 0 $_[0] || 100
1498 0 0 $_[3] || 0
1579 5 192 $_[4] || 0
2059 204 0 $4 || 0
2300 0 24 $self->{'_set_cols'}{$col}[3] || 0
2456 0 0 $_[0] || 0
2457 0 0 $_[1] || 0
2940 0 163 $self->{'_set_rows'}{$row}[3] || 0

or 3 conditions

line l !l&&r !l&&!r condition
631 2 0 2 $_[1] || $_[0]
673 2 0 2 $_[1] || $_[0]
787 0 0 4 $col < $col_first or $col > $col_last
792 2 2 0 @tokens == 3 or @tokens == 7
1023 0 0 0 $scale < 10 or $scale > 400
1044 0 0 1 $scale < 10 or $scale > 400
1216 0 0 96 $error ||= $ret
1262 0 0 32 $error ||= $ret
2115 52 155 306 $year % 4 == 0 and $year % 100 or $year % 400 == 0
2120 6 0 507 $year < $epoch or $year > 9999
2121 4 2 501 $month < 1 or $month > 12
2122 2 4 495 $day < 1 or $day > $mdays[$month - 1]
2358 0 0 0 $_[2] || $rwFirst
2359 0 0 0 $_[3] || $colFirst
2617 14 4 55 keys %{$$self{'_names'};} or $self->{'_repeat_rows'}
4 2 53 keys %{$$self{'_names'};} or $self->{'_repeat_rows'} or $self->{'_repeat_cols'}
2623 4 2 14 $self->{'_repeat_rows'} or $self->{'_repeat_cols'}
2722 3 2 68 @{$self->{'_hbreaks'};} or @{$self->{'_vbreaks'};}
2934 41 142 2228194 $self->{'_set_rows'}{$row} or $self->{'_table'}[$row]
2943 11 0 152 $height or $autofit
2956 147 2 34 $self->{'_table'}[$row] || $self->{'_table'}[$row + 1]
3567 1 1 71 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1
2 1 70 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1 or $self->{'_vcenter'} == 1
2 2 68 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1 or $self->{'_vcenter'} == 1 or $self->{'_header'} ne ''
3 2 66 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1 or $self->{'_vcenter'} == 1 or $self->{'_header'} ne '' or $self->{'_footer'} ne ''
4 0 66 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1 or $self->{'_vcenter'} == 1 or $self->{'_header'} ne '' or $self->{'_footer'} ne '' or $self->{'_margin_head'} != 0.5
2 0 66 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1 or $self->{'_vcenter'} == 1 or $self->{'_header'} ne '' or $self->{'_footer'} ne '' or $self->{'_margin_head'} != 0.5 or $self->{'_margin_foot'} != 0.5
0 3 63 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1 or $self->{'_vcenter'} == 1 or $self->{'_header'} ne '' or $self->{'_footer'} ne '' or $self->{'_margin_head'} != 0.5 or $self->{'_margin_foot'} != 0.5 or $self->{'_margin_left'} != 0.75
3 1 62 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1 or $self->{'_vcenter'} == 1 or $self->{'_header'} ne '' or $self->{'_footer'} ne '' or $self->{'_margin_head'} != 0.5 or $self->{'_margin_foot'} != 0.5 or $self->{'_margin_left'} != 0.75 or $self->{'_margin_right'} != 0.75
4 2 60 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1 or $self->{'_vcenter'} == 1 or $self->{'_header'} ne '' or $self->{'_footer'} ne '' or $self->{'_margin_head'} != 0.5 or $self->{'_margin_foot'} != 0.5 or $self->{'_margin_left'} != 0.75 or $self->{'_margin_right'} != 0.75 or $self->{'_margin_top'} != 1
3 1 59 $self->{'_orientation'} == 0 or $self->{'_hcenter'} == 1 or $self->{'_vcenter'} == 1 or $self->{'_header'} ne '' or $self->{'_footer'} ne '' or $self->{'_margin_head'} != 0.5 or $self->{'_margin_foot'} != 0.5 or $self->{'_margin_left'} != 0.75 or $self->{'_margin_right'} != 0.75 or $self->{'_margin_top'} != 1 or $self->{'_margin_bottom'} != 1
3593 2 0 71 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1
2 0 71 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1
0 0 71 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1 or $self->{'_black_white'} == 1
0 0 71 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1 or $self->{'_black_white'} == 1 or $self->{'_draft_quality'} == 1
0 0 71 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1 or $self->{'_black_white'} == 1 or $self->{'_draft_quality'} == 1 or $self->{'_print_comments'} == 1
0 1 70 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1 or $self->{'_black_white'} == 1 or $self->{'_draft_quality'} == 1 or $self->{'_print_comments'} == 1 or $self->{'_paper_size'} != 0
1 1 69 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1 or $self->{'_black_white'} == 1 or $self->{'_draft_quality'} == 1 or $self->{'_print_comments'} == 1 or $self->{'_paper_size'} != 0 or $self->{'_print_scale'} != 100
2 2 67 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1 or $self->{'_black_white'} == 1 or $self->{'_draft_quality'} == 1 or $self->{'_print_comments'} == 1 or $self->{'_paper_size'} != 0 or $self->{'_print_scale'} != 100 or $self->{'_print_gridlines'} == 1
3 1 66 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1 or $self->{'_black_white'} == 1 or $self->{'_draft_quality'} == 1 or $self->{'_print_comments'} == 1 or $self->{'_paper_size'} != 0 or $self->{'_print_scale'} != 100 or $self->{'_print_gridlines'} == 1 or $self->{'_print_headers'} == 1
3 3 63 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1 or $self->{'_black_white'} == 1 or $self->{'_draft_quality'} == 1 or $self->{'_print_comments'} == 1 or $self->{'_paper_size'} != 0 or $self->{'_print_scale'} != 100 or $self->{'_print_gridlines'} == 1 or $self->{'_print_headers'} == 1 or @{$self->{'_hbreaks'};} > 0
4 2 61 $self->{'_fit_width'} > 1 or $self->{'_fit_height'} > 1 or $self->{'_page_order'} == 1 or $self->{'_black_white'} == 1 or $self->{'_draft_quality'} == 1 or $self->{'_print_comments'} == 1 or $self->{'_paper_size'} != 0 or $self->{'_print_scale'} != 100 or $self->{'_print_gridlines'} == 1 or $self->{'_print_headers'} == 1 or @{$self->{'_hbreaks'};} > 0 or @{$self->{'_vbreaks'};} > 0
3612 12 14 47 $print_changed or $setup_changed