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
277 0 0 0 $title =~ /^\d+$/ and $index =~ /^ASC|DESC$/
312 0 0 0 $type and $type eq 'DESC'
320 0 0 1 $type and $type eq 'DESC'
366 0 0 1 $type and $type eq 'DESC'
390 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/
547 5 0 6 exists $$worksheet[1]{'-headers'} and scalar @{$$worksheet[1]{'-headers'};} > 0
566 214 0 0 defined $formatref and defined $$formatref[$col]
597 14 0 0 defined $formatref && defined $$formatref[$col]

or 2 conditions

line l !l condition
17 1 2 $opts{-'worksheets'} || []
19 0 3 $opts{-'big'} || 0
20 0 3 $opts{-'filename'} || ''
285 2 0 $type ||= 'ASC'
357 1 0 $type ||= 'ASC'
400 0 2 $lines ||= 32000
415 0 1 $lines ||= 32000
429 1 2 $lines ||= 32000
513 6 0 $nr_of_lines || 32000

or 3 conditions

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