Branch Coverage

blib/lib/PDL/Basic.pm
Criterion Covered Total %
branch 49 64 76.5


line true false branch
119 2 688 if not $keep_type and $dummy->get_datatype < PDL::Core::float()->enum
121 4 686 if $dummy->getndims <= $nth
122 530 156 0 == $nth ? :
164 0 50 unless UNIVERSAL::isa($pdl, "PDL")
166 2 48 if $dimlength < 1
172 53 8 if (@pdl_inds < 2) { }
189 29 1 $dimlength > 1 ? :
233 0 19 if $min <= 0 or $max <= 0
237 17 1 $dimlength > 1 ? :
317 8 65 if (my($type_ind) = grep((ref $_[$_] eq "PDL::Type"), 0 .. $#_))
320 11 62 ref $_[0] ? :
321 8 65 defined $type ? :
393 0 4 unless @_
403 1 2 wantarray ? :
407 0 1 if @_ < 2
413 1 0 wantarray ? :
419 0 5 if $nelem == 0
422 0 0 $nelem > 10000 ? :
423 0 5 if $step == 0
425 0 5 if $PDL::debug
427 3 2 unless $wantarray
537 9 10 ref $_[-1] eq 'HASH' ? :
538 9 10 defined $opt ? :
545 8 11 if (defined $opt{'CENTRE'})
547 0 8 unless $pos->getndims == 1
548 0 8 if $pos->dim(0) > $r->getndims
562 2 17 $opt{'Squared'} ? :
604 4 0 $coords[$_] + $wdims_m1[$_] < $thisdims[$_] ? :
615 0 0 if ((my $fd = join(",", @{$from->dims;})) ne (my $td = join(",", @{$to->dims;})))
651 13 1 $ndims > 0 ? :
184 14 if ($ndims > 1) { }
676 1 76 $conj && !$r->type->real ? :