Branch Coverage

blib/lib/PDL/Slices.pm
Criterion Covered Total %
branch 35 46 76.0


line true false branch
452 29 39 ref $ind && UNIVERSAL::isa($ind, 'PDL') && $ind->type eq 'indx' ? :
453 33 35 defined $sz ? :
457 4 64 if ($index->isempty)
460 0 4 if defined $size
465 0 64 unless $index->ndims
469 30 34 if (defined $bound)
470 1 29 if (ref $bound eq 'ARRAY') { }
1 55 elsif (not $bound =~ /^[0123ftepx]+$/ and $bound =~ /^([0123ftepx])/i) { }
473 0 2 unless $el =~ /^([0123fFtTeEpPmM])/
812 0 4 if ($#_ == 2) { }
883 2 3 @_ == 2 ? :
885 3 2 $c->ndims < 2 ? :
1056 0 13 if ($pdl->getndims < scalar @newDimOrder)
1065 0 48 if ($dim < 0 or $dim > $#newDimOrder)
1264 0 0 if &blessed($ind[0]) and $ind[0]->isa('PDL')
1630 0 28 if $no_indexes > $noDims
1639 29 3 unless not ref $index and $index eq 'X'
1702 4 26 ref $idx eq 'ARRAY' ? :
1705 0 30 if $x > 1
1895 5 3359 if (&blessed($others[$i]) and $others[$i]->isa('PDL'))
1897 0 5 if ($idx->ndims > 1)
1902 3 2 if ($nlm > 1) { }
1 1 elsif ($nlm) { }