Condition Coverage

blib/lib/Spreadsheet/Read.pm
Criterion Covered Total %
condition 153 220 69.5


and 3 conditions

line !l l&&!r l&&r condition
208 1 3 15693 defined $c and $c > 0
224 1 1 15493 defined $c and defined $r
2 3 15490 defined $c and defined $r and $c > 0
4 1 15489 defined $c and defined $r and $c > 0 and $r > 0
243 0 2 7 ref $sheet eq 'HASH' and exists $sheet->{'cell'}
244 0 0 7 exists $sheet->{'maxcol'} and exists $sheet->{'maxrow'}
246 1 1 4 $row > 0 and $row <= $sheet->{'maxrow'}
254 0 2 7 ref $sheet eq 'HASH' and exists $sheet->{'cell'}
255 0 0 7 exists $sheet->{'maxcol'} and exists $sheet->{'maxrow'}
257 1 1 4 $row > 0 and $row <= $sheet->{'maxrow'}
265 3 1 26 ref $sheet eq 'HASH' and exists $sheet->{'cell'}
266 14 7 5 exists $sheet->{'maxcol'} and exists $sheet->{'maxrow'}
277 1 1 21 $book and $sheet
280 5 0 16 $sheet =~ /^[0-9]+$/ and $sheet >= 1
5 1 15 $sheet =~ /^[0-9]+$/ and $sheet >= 1 and $sheet <= $book->[0]{'sheets'}
305 7 0 247 $ss->{'maxrow'} and $ss->{'maxcol'}
331 33 214 0 $oc and $mc < $ss->{'maxcol'} || $mr < $ss->{'maxrow'}
392 216 418 892 $p == 0 and not defined $bg
429 51 214 11 $io_fil and not -s $txt
430 245 15 5 $io_ref and eof $txt
432 29 120 84 $io_fil && $txt =~ /\.(csv)$/i
471 84 3 7 defined $opt{'quote'} and defined $opt{'sep'}
581 77 0 71 $io_fil && $txt =~ /\.(xlsx?)$/i && ($_parser = $1)
652 24 91 6 $opt{'clip'} and not defined $oWkS->{'Cells'}
718 0 1802 0 defined $val and my $enc = $oWkC->{'Code'}
756 230 132 8 defined $fmt and $fmt =~ m[^[dmy][-\\/dmy]*$]
760 208 41 99 defined $fmt and $fmt =~ /^0+\.0+%$/
765 0 1771 5 $FmT && exists $def_fmt{$FmT->{'FmtIdx'}}
891 0 0 0 not $txt =~ /^<\?xml/i and -f $txt
908 0 0 0 not $sxc and $txt =~ /^<\?xml/i
977 0 0 2 $book and ref $book eq 'ARRAY' || ref $book eq 'Spreadsheet::Read'
0 0 2 $book and ref $book eq 'ARRAY' || ref $book eq 'Spreadsheet::Read' and $book->[0]{'sheets'}
989 0 0 2 $p->{'type'} eq $c2->{'type'} and $p->{'parser'} eq $c2->{'parser'}
1026 27 0 28 @id == 2 and $id[0] =~ /^[0-9]+$/
27 0 28 @id == 2 and $id[0] =~ /^[0-9]+$/ and $id[1] =~ /^[0-9]+$/
1028 0 0 27 @id and $id[0]
0 0 27 @id and $id[0] and exists $$sheet{$id[0]}
1035 5 0 3 @id == 2 and $id[0] =~ /^[0-9]+$/
5 0 3 @id == 2 and $id[0] =~ /^[0-9]+$/ and $id[1] =~ /^[0-9]+$/
1036 0 0 5 @id and $id[0]
0 0 5 @id and $id[0] and exists $$sheet{$id[0]}
1082 0 2 2 defined $row and $row > 0
2 1 1 defined $row and $row > 0 and $row <= $sheet->{'maxrow'}
1090 0 2 2 defined $row and $row > 0
2 1 1 defined $row and $row > 0 and $row <= $sheet->{'maxrow'}
1097 0 2 2 defined $col and $col > 0
2 1 1 defined $col and $col > 0 and $col <= $sheet->{'maxcol'}
1105 0 2 2 defined $col and $col > 0
2 1 1 defined $col and $col > 0 and $col <= $sheet->{'maxcol'}

or 2 conditions

line l !l condition
178 10 2 ReadData(@_) || [{'parsers', [], 'error', undef, 'sheets', 0, 'sheet', {}}]
231 602 2 $_[0] or ''
627 75 0 $oBook->{'SheetCount'} || 0
698 0 110 $oWkS->{'RowHidden'} || []
699 0 110 $oWkS->{'ColHidden'} || []
797 14 1512 (defined $oWkC->{'Merged'} ? $oWkC->{'Merged'} : $oWkC->is_merged) || 0
3 1523 ($hiddenRows->[$r] || $hiddenCols->[$c] ? 1 : (defined $oWkC->{'Hidden'} ? $oWkC->{'Hidden'} : $FmT->{'Hidden'})) || 0
628 898 $FmT->{'Lock'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
301 84 128 15 $os or $oc
331 106 0 108 $mc < $ss->{'maxcol'} || $mr < $ss->{'maxrow'}
358 1 0 0 $ss->{'maxrow'} or $ss->{'maxcol'}
383 0 382 468 $clr == 0 or $clr == 32767
394 0 418 0 $bg < 8 or $bg > 63
427 20 225 31 $io_ref || $io_fil
539 1 0 28 $txt =~ /\A(\376\067\0\043 |\320\317\021\340\241\261\032\341 |\333\245-\0\0\0)/x or $txt =~ /\A.{2080}Microsoft Excel 5.0 Worksheet/
1 0 28 $txt =~ /\A(\376\067\0\043 |\320\317\021\340\241\261\032\341 |\333\245-\0\0\0)/x or $txt =~ /\A.{2080}Microsoft Excel 5.0 Worksheet/ or $txt =~ /\A\x09\x04\x06\x00\x00\x00\x10\x00/
648 0 0 72 $oBook->get_active_sheet || $oBook->{'ActiveSheet'} || $oBook->{'SelectedSheet'}
756 0 0 370 $FmT->{'FmtIdx'} == 14 or $FmT->{'FmtIdx'} == 15
0 0 370 $FmT->{'FmtIdx'} == 14 or $FmT->{'FmtIdx'} == 15 or $FmT->{'FmtIdx'} == 16
0 0 370 $FmT->{'FmtIdx'} == 14 or $FmT->{'FmtIdx'} == 15 or $FmT->{'FmtIdx'} == 16 or $FmT->{'FmtIdx'} == 17
0 0 370 $FmT->{'FmtIdx'} == 14 or $FmT->{'FmtIdx'} == 15 or $FmT->{'FmtIdx'} == 16 or $FmT->{'FmtIdx'} == 17 or $FmT->{'FmtIdx'} == 22
0 16 354 $FmT->{'FmtIdx'} == 14 or $FmT->{'FmtIdx'} == 15 or $FmT->{'FmtIdx'} == 16 or $FmT->{'FmtIdx'} == 17 or $FmT->{'FmtIdx'} == 22 or defined $fmt and $fmt =~ m[^[dmy][-\\/dmy]*$]
760 19 3 348 $FmT->{'FmtIdx'} == 9 or $FmT->{'FmtIdx'} == 10
22 160 188 $FmT->{'FmtIdx'} == 9 or $FmT->{'FmtIdx'} == 10 or defined $fmt and $fmt =~ /^0+\.0+%$/
866 0 2714 828 /.* \{(.*)}$/ or /"(.*)"/
882 0 7 26 $txt =~ /^<\?xml/ || -f $txt
977 0 2 0 ref $book eq 'ARRAY' || ref $book eq 'Spreadsheet::Read'