| blib/lib/Data/TableReader/Decoder/CSV.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 20 | 37 | 54.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 54 | 0 | 0 | 14 | $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" | |
| 166 | 0 | 0 | 0 | defined $pos and $pos >= 0 |
| 0 | 0 | 0 | defined $pos and $pos >= 0 and seek $f->{'fh'}, 0, 2 | |
| 179 | 0 | 0 | 0 | defined $pos and $pos >= 0 |
| line | l | !l | condition |
|---|---|---|---|
| 24 | 0 | 12 | $self->_parser_args || {} |
| 55 | 0 | 14 | tell $fh || 0 |
| 59 | 6 | 0 | tell $fh || 0 |
| 81 | 6 | 7 | $enc || 'maybe utf8' |
| 83 | 6 | 7 | tell $fh || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 14 | 14 | 3 | 0 | $default_csv_module ||= Data::TableReader::Decoder::_first_sufficient_module("CSV parser", \@csv_probe_modules) |
| 120 | 2 | 2 | 10 | $buf eq "\377" or $buf eq "\376" |
| 4 | 4 | 6 | $buf eq "\377" or $buf eq "\376" or $buf eq "\357" |