Condition Coverage

blib/lib/Data/TableReader/Decoder/CSV.pm
Criterion Covered Total %
condition 21 37 56.7


and 3 conditions

line !l l&&!r l&&r condition
54 0 0 18 $self->autodetect_encoding and not defined $self->_fh_start_pos
122 2 0 2 $buf eq "\357\273" and read $fh, $buf, 1, 2
2 0 2 $buf eq "\357\273" and read $fh, $buf, 1, 2 and $buf eq "\357\273\277"
162 0 0 0 defined $pos and $pos >= 0
0 0 0 defined $pos and $pos >= 0 and seek $f->{'fh'}, 0, 2
175 0 0 4 defined $pos and $pos >= 0

or 2 conditions

line l !l condition
24 0 16 $self->_parser_args || {}
55 0 18 tell $fh || 0
59 6 0 tell $fh || 0
81 6 11 $enc || 'maybe utf8'
83 6 11 tell $fh || 0

or 3 conditions

line l !l&&r !l&&!r condition
14 17 4 0 $default_csv_module ||= Data::TableReader::Decoder::_first_sufficient_module('CSV parser', \@csv_probe_modules)
120 2 2 14 $buf eq "\377" or $buf eq "\376"
4 4 10 $buf eq "\377" or $buf eq "\376" or $buf eq "\357"