Condition Coverage

blib/lib/Spreadsheet/SimpleExcel.pm
Criterion Covered Total %
condition 25 54 46.3


and 3 conditions

line !l l&&!r l&&r condition
280 0 0 0 $title =~ /^\d+$/ and $index =~ /^ASC|DESC$/
315 0 0 0 $type and $type eq 'DESC'
323 0 0 1 $type and $type eq 'DESC'
369 0 0 1 $type and $type eq 'DESC'
393 6 0 5 exists $$worksheet[1]{'sortstring'} and defined $$worksheet[1]{'sortstring'}
6 1 4 exists $$worksheet[1]{'sortstring'} and defined $$worksheet[1]{'sortstring'} and $$worksheet[1]{'sortstring'} =~ /\w/
550 5 0 6 exists $$worksheet[1]{'-headers'} and scalar @{$$worksheet[1]{'-headers'};} > 0
569 214 0 0 defined $formatref and defined $$formatref[$col]
600 14 0 0 defined $formatref && defined $$formatref[$col]

or 2 conditions

line l !l condition
20 1 2 $opts{-'worksheets'} || []
22 0 3 $opts{-'big'} || 0
23 0 3 $opts{-'filename'} || ''
288 2 0 $type ||= 'ASC'
360 1 0 $type ||= 'ASC'
403 0 2 $lines ||= 32000
418 0 1 $lines ||= 32000
432 1 2 $lines ||= 32000
516 6 0 $nr_of_lines || 32000

or 3 conditions

line l !l&&r !l&&!r condition
135 1 0 0 $title ||= $self->_last_sheet
246 0 0 1 $index =~ /[^\d]/ or $index > $#array
309 1 0 0 defined $index or $index =~ /\D/