Condition Coverage

blib/lib/PDL/IO/CSV.pm
Criterion Covered Total %
condition 16 88 18.1


and 2 conditions

line l !l condition
73 0 0 $c_pack[$cols] eq 'q' and 0
126 0 0 $pck{$type} eq 'q' and 0
587 0 0 $c_pack[$_] eq 'q' and 0
616 2 0 $c_pack eq 'q' and 0

and 3 conditions

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 2 $O->{'header'} and $O->{'header'} eq 'auto'
307 0 0 0 $headerline->[$_] and $headerline->[$_] ne ''
414 0 0 2 &blessed($c_pdl) and $c_pdl->isa('PDL')
439 0 0 0 &blessed($_[-1]) && $_[-1]->isa('PDL')
486 4 0 0 defined $coli and ref $coli ne 'ARRAY'
516 4 0 0 $O->{'decimal_comma'} and $C->{'sep_char'} eq ','
539 0 0 0 $_ < 0 || $_ > $colcount and croak("FATAL: invalid column '${_}' (column count=$colcount)")
541 0 0 2 $cols and $cols > 0
0 0 2 $cols and $cols > 0 and $cols <= $colcount
610 0 0 0 $_ < 0 || $_ > $colcount and croak("FATAL: invalid column '${_}' (column count=$colcount)")
612 0 0 2 $cols and $cols > 0
0 0 2 $cols and $cols > 0 and $cols <= $colcount

or 2 conditions

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 4 $O->{'fetch_chunk'} ||= 40000
494 0 4 $O->{'reshape_inc'} ||= 80000

or 3 conditions

line l !l&&r !l&&!r condition
455 0 0 0 ref $O->{'header'} eq 'ARRAY' or $O->{'header'} eq 'auto'
495 0 4 0 $O->{'type'} ||= $fn eq '1D' ? 'auto' : double()
496 1 1 2 $O->{'header'} ||= $fn eq '1D' ? 'auto' : 0
539 0 0 0 $_ < 0 || $_ > $colcount
560 0 2 0 not defined $c_type[$_] or $c_type[$_] eq 'auto'
610 0 0 0 $_ < 0 || $_ > $colcount