Condition Coverage

blib/lib/Spreadsheet/ParseExcel/Utility.pm
Criterion Covered Total %
condition 132 180 73.3


and 3 conditions

line !l l&&!r l&&r condition
243 2501 339 1345 $seen_dot || $char =~ /[#0\+\-\.\?eE\,\%]/ and $char =~ /[#0\+\-\?eE\,\%]/
276 0 4075 22 defined $double_quote and $double_quote
0 4031 44 defined $single_quote and $single_quote
3191 831 9 $seen_dot and $char eq "."
1946 722 0 $format_mode ne "date" and $char eq '-' || $char eq '(' || $char eq ')'
281 65 10 0 $format_mode ne "date" and substr($format, $pos, 2) eq "\201\242" || substr($format, $pos, 2) eq "\201\243" || substr($format, $pos, 2) eq "\242\244" || substr($format, $pos, 2) eq "\242\245"
349 0 0 0 $is_fraction and substr($format, $pos, 1) =~ /[0-9]/
456 626 15 393 substr($format, $pos, 2) eq "mm" and @placeholders
641 172 221 substr($format, $pos, 2) eq "mm" and @placeholders and $placeholders[-1][0] eq 'h' || $placeholders[-1][0] eq 'hh'
471 811 0 223 substr($format, $pos, 2) eq "ss" and @placeholders > 1
489 61 11 17 substr($format, $pos, 1) eq "m" and @placeholders
72 17 0 substr($format, $pos, 1) eq "m" and @placeholders and $placeholders[-1][0] eq 'h' || $placeholders[-1][0] eq 'hh'
504 89 0 0 substr($format, $pos, 1) eq "s" and @placeholders > 1
561 369 0 413 $format_mode eq "date" and $number =~ /$qrNUMBER/
251 0 118 $format_mode eq "number" and $number =~ /$qrNUMBER/
1073 294836 2874 95355 $iYear % 4 == 0 && ($iYear % 100 || $iYear % 400 == 0)
1170 620552 5928 200795 $iYear % 4 == 0 && ($iYear % 100 || $iYear % 400 == 0)
1178 2232 173 166 $iMon == 2 and $iYear % 4 == 0
1288 0 0 0 $1 and $2
1325 0 0 0 $1 and $2

or 3 conditions

line l !l&&r !l&&!r condition
104 58 44 6563 $double_quote or $single_quote
243 850 834 2501 $seen_dot || $char =~ /[#0\+\-\.\?eE\,\%]/
276 22 44 4031 defined $double_quote and $double_quote or defined $single_quote and $single_quote
44 9 4022 defined $double_quote and $double_quote or defined $single_quote and $single_quote or $seen_dot and $char eq "."
0 0 722 $char eq '-' || $char eq '(' || $char eq ')'
1354 0 2668 $char =~ /[#0\+\.\?eE\,\%]/ or $format_mode ne "date" and $char eq '-' || $char eq '(' || $char eq ')'
281 0 0 10 substr($format, $pos, 2) eq "\201\242" || substr($format, $pos, 2) eq "\201\243" || substr($format, $pos, 2) eq "\242\244" || substr($format, $pos, 2) eq "\242\245"
388 0 0 0 substr($format, $pos, 1) eq "(" or substr($format, $pos, 1) eq ")"
418 14 9 1371 substr($format, $pos, 4) eq "mmmm" or substr($format, $pos, 4) eq "dddd"
23 196 1175 substr($format, $pos, 4) eq "mmmm" or substr($format, $pos, 4) eq "dddd" or substr($format, $pos, 4) eq "yyyy"
205 4 1171 substr($format, $pos, 4) eq "mmmm" or substr($format, $pos, 4) eq "dddd" or substr($format, $pos, 4) eq "yyyy" or substr($format, $pos, 4) eq "ggge"
14 34 1123 substr($format, $pos, 3) eq "ddd" or substr($format, $pos, 3) eq "mmm"
48 0 1123 substr($format, $pos, 3) eq "ddd" or substr($format, $pos, 3) eq "mmm" or substr($format, $pos, 3) eq "yyy"
12 408 703 substr($format, $pos, 2) eq "yy" or substr($format, $pos, 2) eq "mm"
420 182 521 substr($format, $pos, 2) eq "yy" or substr($format, $pos, 2) eq "mm" or substr($format, $pos, 2) eq "dd"
590 205 316 substr($format, $pos, 2) eq "yy" or substr($format, $pos, 2) eq "mm" or substr($format, $pos, 2) eq "dd" or substr($format, $pos, 2) eq "hh"
387 223 93 substr($format, $pos, 2) eq "yy" or substr($format, $pos, 2) eq "mm" or substr($format, $pos, 2) eq "dd" or substr($format, $pos, 2) eq "hh" or substr($format, $pos, 2) eq "ss"
428 4 89 substr($format, $pos, 2) eq "yy" or substr($format, $pos, 2) eq "mm" or substr($format, $pos, 2) eq "dd" or substr($format, $pos, 2) eq "hh" or substr($format, $pos, 2) eq "ss" or substr($format, $pos, 2) eq "ge"
28 45 16 substr($format, $pos, 1) eq "m" or substr($format, $pos, 1) eq "d"
73 16 0 substr($format, $pos, 1) eq "m" or substr($format, $pos, 1) eq "d" or substr($format, $pos, 1) eq "h"
61 0 0 substr($format, $pos, 1) eq "m" or substr($format, $pos, 1) eq "d" or substr($format, $pos, 1) eq "h" or substr($format, $pos, 1) eq "s"
456 16 205 172 $placeholders[-1][0] eq 'h' || $placeholders[-1][0] eq 'hh'
474 0 223 0 $placeholders[-2][0] eq "m" or $placeholders[-2][0] eq "mm"
489 0 0 17 $placeholders[-1][0] eq 'h' || $placeholders[-1][0] eq 'hh'
507 0 0 0 $placeholders[-2][0] eq "m" or $placeholders[-2][0] eq "mm"
571 1 3 409 $number < $min_date or $number >= $max_date
785 2 0 464 $token eq "E" or $token eq "e"
846 0 0 265 $placeholder->[0] eq "\242\244" or $placeholder->[0] eq "\242\245"
0 0 265 $placeholder->[0] eq "\242\244" or $placeholder->[0] eq "\242\245" or $placeholder->[0] eq "\201\242"
0 0 265 $placeholder->[0] eq "\242\244" or $placeholder->[0] eq "\242\245" or $placeholder->[0] eq "\201\242" or $placeholder->[0] eq "\201\243"
0 0 265 $placeholder->[0] eq "(" or $placeholder->[0] eq ")"
1118 89 73 380 $iM == 1 or $iM == 3
162 58 322 $iM == 1 or $iM == 3 or $iM == 5
131 42 280 $iM == 1 or $iM == 3 or $iM == 5 or $iM == 7
100 34 246 $iM == 1 or $iM == 3 or $iM == 5 or $iM == 7 or $iM == 8
76 16 230 $iM == 1 or $iM == 3 or $iM == 5 or $iM == 7 or $iM == 8 or $iM == 10
50 0 230 $iM == 1 or $iM == 3 or $iM == 5 or $iM == 7 or $iM == 8 or $iM == 10 or $iM == 12
65 50 115 $iM == 4 or $iM == 6
115 26 89 $iM == 4 or $iM == 6 or $iM == 9
76 8 81 $iM == 4 or $iM == 6 or $iM == 9 or $iM == 11