blib/lib/PDL/IO/CSV.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 88 | 23.8 |
line | l | !l | condition |
---|---|---|---|
73 | 0 | 0 | $c_pack[$cols] eq 'q' and 0 |
126 | 0 | 0 | $pck{$type} eq 'q' and 0 |
589 | 29 | 1 | $c_pack[$_] eq 'q' and 0 |
618 | 7 | 0 | $c_pack eq 'q' and 0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
64 | 0 | 0 | 0 | &blessed($_[0]) and $_[0]->isa('PDL') |
76 | 0 | 0 | 0 | $bad2empty and $c_pdl[$cols]->check_badflag |
94 | 0 | 0 | 0 | $bad2empty and $c_bad[$c] |
132 | 0 | 0 | 0 | $O->{'bad2empty'} and $p->check_badflag |
175 | 0 | 0 | 5 | $O->{'header'} and $O->{'header'} eq 'auto' |
307 | 0 | 0 | 0 | $headerline->[$_] and $headerline->[$_] ne '' |
414 | 0 | 0 | 7 | &blessed($c_pdl) and $c_pdl->isa('PDL') |
439 | 0 | 0 | 0 | &blessed($_[-1]) && $_[-1]->isa('PDL') |
486 | 13 | 0 | 0 | defined $coli and ref $coli ne 'ARRAY' |
518 | 13 | 0 | 0 | $O->{'decimal_comma'} and $C->{'sep_char'} eq ',' |
541 | 0 | 0 | 0 | $_ < 0 || $_ > $colcount and croak("FATAL: invalid column '${_}' (column count=$colcount)") |
543 | 0 | 0 | 6 | $cols and $cols > 0 |
0 | 0 | 6 | $cols and $cols > 0 and $cols <= $colcount | |
612 | 0 | 0 | 0 | $_ < 0 || $_ > $colcount and croak("FATAL: invalid column '${_}' (column count=$colcount)") |
614 | 0 | 0 | 7 | $cols and $cols > 0 |
0 | 0 | 7 | $cols and $cols > 0 and $cols <= $colcount |
line | l | !l | condition |
---|---|---|---|
434 | 0 | 0 | $O->{'fetch_chunk'} ||= '?' |
0 | 0 | $O->{'reshape_inc'} ||= '?' | |
0 | 0 | $O->{'empty2bad'} ||= '?' | |
0 | 0 | $O->{'text2bad'} ||= '?' | |
0 | 0 | $C->{'sep_char'} ||= '?' | |
493 | 0 | 13 | $O->{'fetch_chunk'} ||= 40000 |
494 | 0 | 13 | $O->{'reshape_inc'} ||= 80000 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
455 | 0 | 0 | 0 | ref $O->{'header'} eq 'ARRAY' or $O->{'header'} eq 'auto' |
495 | 6 | 7 | 0 | $O->{'type'} ||= $fn eq '1D' ? 'auto' : double() |
496 | 2 | 5 | 6 | $O->{'header'} ||= $fn eq '1D' ? 'auto' : 0 |
541 | 0 | 0 | 0 | $_ < 0 || $_ > $colcount |
562 | 1 | 15 | 14 | not defined $c_type[$_] or $c_type[$_] eq 'auto' |
612 | 0 | 0 | 0 | $_ < 0 || $_ > $colcount |