Branch Coverage

blib/lib/Spreadsheet/BasicRead.pm
Criterion Covered Total %
branch 30 68 44.1


line true false branch
43 1 0 if (@_ == 1)
57 0 0 if (defined $args{'log'} and $args{'log'} ne '')
63 0 0 if (defined $args{'skipBlankRows'})
65 0 0 $args{'skipBlankRows'} ? :
69 0 0 if (defined $args{'fileName'} and $args{'fileName'} ne '')
76 0 0 if (defined $args{'skipHeadings'})
82 0 0 if $args{'oldCell'}
95 0 1 if ($ssFileName =~ /\.xlsx$/i) { }
106 0 1 unless ($ssBook)
128 7 0 defined $$self{'ssBook'} ? :
137 2 1 defined $$self{'currentSheetNum'} ? :
146 4 0 defined $$self{'ssSheet'} ? :
157 0 3 unless $shtNo >= 0 and $shtNo <= $self->numSheets
162 2 1 if defined $$self{'ssSheet'}
163 2 1 if defined $$self{'ssSheet'}
182 0 3 unless defined $$self{'ssSheet'}
185 3 0 if (defined $$self{'ssSheet'} and $currentSheet < $self->numSheets)
191 2 1 if defined $$self{'ssSheet'}
205 2 0 if defined $$self{'ssBook'}
207 2 0 if defined $$self{'ssSheet'}
215 0 0 $$self{'oldCell'} ? :
0 21 unless defined $$self{'ssSheet'} and defined $$self{'ssSheet'}{'Cells'}[$r][$c]
221 0 21 if ($cell_value eq 'GENERAL')
234 0 0 $headingRow >= $$self{'ssSheet'}{'MinRow'} && $headingRow <= $$self{'ssSheet'}{'MaxRow'} ? :
244 0 4 unless defined $$self{'ssSheet'}
264 12 0 unless $data[$x] =~ /^$/
268 0 4 $$self{'skipHeadings'} || $$self{'skipBlankRows'} && $blank == 0 ? :
278 0 10 unless defined $$self{'ssSheet'}
283 3 7 if not defined $$self{'ssSheet'}{'MaxRow'} or $row > $$self{'ssSheet'}{'MaxRow'}
286 4 3 if $row <= 0
303 9 0 unless $data[$x] =~ /^$/
306 0 3 $$self{'skipBlankRows'} && $blank == 0 ? :
327 0 0 if (defined $$self{'log'})
343 0 0 if (defined $$self{'log'}) { }