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
279 0 0 0 $title =~ /^\d+$/ and $index =~ /^ASC|DESC$/
314 0 0 0 $type and $type eq 'DESC'
322 0 0 1 $type and $type eq 'DESC'
368 0 0 1 $type and $type eq 'DESC'
392 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/
549 5 0 6 exists $$worksheet[1]{'-headers'} and scalar @{$$worksheet[1]{'-headers'};} > 0
568 214 0 0 defined $formatref and defined $$formatref[$col]
599 14 0 0 defined $formatref && defined $$formatref[$col]

or 2 conditions

line l !l condition
19 1 2 $opts{-'worksheets'} || []
21 0 3 $opts{-'big'} || 0
22 0 3 $opts{-'filename'} || ''
287 2 0 $type ||= 'ASC'
359 1 0 $type ||= 'ASC'
402 0 2 $lines ||= 32000
417 0 1 $lines ||= 32000
431 1 2 $lines ||= 32000
515 6 0 $nr_of_lines || 32000

or 3 conditions

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