Condition Coverage

blib/lib/Data/TableReader.pm
Criterion Covered Total %
condition 37 88 42.0


and 2 conditions

line l !l condition
558 0 14 ++$eof and return undef

and 3 conditions

line !l l&&!r l&&r condition
34 0 13 1 ref $i and ref $i eq 'Spreadsheet::ParseExcel::Worksheet'
35 0 13 0 ref $i and ref $i eq 'GLOB' || ref($i)->can('read')
87 0 0 14 defined $list and ref $list eq 'ARRAY'
95 33 0 0 defined $args{'isa'} and not defined $args{'type'}
149 0 0 1 ref $input and ref($input)->can('get_cell')
151 0 0 0 ref $input and ref($input)->can('worksheets')
187 0 0 0 defined $input and !ref($input) || ref($input) =~ /path|file/i
209 0 0 0 $comma_count > $eol_count and $comma_count > $tab_count
210 0 0 0 $tab_count > $eol_count and $tab_count > $comma_count
213 0 0 0 $probably_csv and $probably_csv > $probably_tsv
214 0 0 0 $probably_tsv and $probably_tsv > $probably_csv
244 13 0 1 not $self->_find_table_in_dataset($data_iter, $stash) || defined $stash->{'fatal'} and $data_iter->next_dataset
412 3 4 0 $found{$match[0]} and not $match[0]->array
558 0 14 36 !$eof && &$data_iter(\@row_slice)
569 8 6 83 defined $row->[$_] && length $row->[$_]

or 2 conditions

line l !l condition
76 13 1 $self->_file_handle || ''
243 13 0 $stash ||= {}
267 0 0 $stash->{'fatal'} || q[Can't locate valid header]
339 0 0 $stash->{'context'} || ''
343 0 0 $stash->{'context'} || ''
349 22 0 $stash->{'context'} || ''
355 9 13 $stash->{'free_fields'} ||= [(sort {$a->required ? -1 : ($b->required ? 1 : 0);} grep({not $_->follows_list;} @$fields))]
358 9 13 $stash->{'follows_fields'} ||= [grep({$_->follows_list;} @$fields)]
527 22 16 $trimmer{$t} ||= [$t, []]
545 9 1 $trimmer{$t} ||= [$t, []]

or 3 conditions

line l !l&&r !l&&!r condition
35 4 0 9 ref $i eq 'GLOB' || ref($i)->can('read')
47 9 0 0 $decoder_ref eq 'HASH' or $decoder_ref eq 'ARRAY'
125 0 0 2 $level eq 'warn' or $level eq 'error'
131 1 0 10 $level eq 'warn' or $level eq 'error'
187 0 0 0 !ref($input) || ref($input) =~ /path|file/i
244 13 0 1 $self->_find_table_in_dataset($data_iter, $stash) || defined $stash->{'fatal'}
572 0 2 0 $first_blank ||= $data_iter->position