Condition Coverage

lib/PDL/IO/Misc.pd
Criterion Covered Total %
condition 47 97 48.4


and 2 conditions

line l !l condition
622 1 31 defined $_ and scalar @{$_->[1];}

and 3 conditions

line !l l&&!r l&&r condition
372 4 4 4 defined $_[-1] and ref $_[-1] eq "HASH"
383 11 1 12 $options->{$pattern} and ref $options->{$pattern} ne "Regexp"
425 11 0 1 defined $x and $x ne ""
426 11 0 1 defined $y and $y ne ""
433 1 0 11 $index_start >= 0 and $index_end < 0
0 0 1 $index_end >= 0 and $index_start < 0
0 0 0 $index_end >= $index_start and $index_start >= 0
0 0 0 $index_start > $index_end and $index_end >= 0
494 55 0 0 defined $line_end and $line_num > $line_end
495 0 55 0 defined $line_start and $line_num < $line_start
496 5 42 8 $options->{'EXCLUDE'} and $fhline =~ /$options->{'EXCLUDE'}/
497 38 3 6 $options->{'INCLUDE'} and not $fhline =~ /$options->{'INCLUDE'}/
515 9 0 2 scalar @explicit_cols == 1 and ref $explicit_cols[0] eq "ARRAY"
533 18 2 0 ref $col eq "ARRAY" and not scalar @$col
553 2 18 0 ref $col ne "ARRAY" and defined $is_perl_col[$col]
612 41 0 0 defined $line_end and $line_num == $line_end
647 1 0 10 $line_rev == 0 and $index_start >= 0
1 0 10 $line_rev == 0 and $index_start >= 0 and $index_end >= -1
668 0 1 0 defined $line_start and defined $line_end
838 0 0 4 !(UNIVERSAL::isa($file, 'PDL') || UNIVERSAL::isa($file, 'ARRAY')) && _is_io_handle($file)
894 12 0 0 @d and not $i
975 0 0 0 @d and not $i

or 2 conditions

line l !l condition
345 10 0 open $fh, $_[0] or die "File $_[0] not found\n"
427 0 12 $c || 1
1049 0 0 open $fh, $_[0] or die "File $_[0] not found\n"
1063 0 1 $_[1] || {}

or 3 conditions

line l !l&&r !l&&!r condition
176 7 0 10 defined fileno $h || defined $reftype && $reftype eq 'GLOB'
394 0 12 0 $options->{'CHUNKSIZE'} || $defchunksize
829 2 1 1 ref \$_[0] eq "SCALAR" or $format_string
848 0 0 0 $file =~ /^\|/ or $file =~ /^\>/
868 0 0 8 $_->dim(0) != $n or $_->getndims > 2
960 0 0 0 $_->nelem != $n or $_->getndims != 1
1189 0 0 0 $im->getdim(0) != $nx or $im->getdim(1) != $ny