Branch Coverage

blib/lib/PDL/Basic.pm
Criterion Covered Total %
branch 57 92 61.9


line true false branch
221 107 33 ref $_[0] && ref $_[0] ne 'PDL::Type' ? :
222 11 17 ref $_[0] && ref $_[0] ne 'PDL::Type' ? :
223 1 2 ref $_[0] && ref $_[0] ne 'PDL::Type' ? :
226 36 332 scalar @_ ? :
232 20 15 scalar @_ ? :
238 2 3 scalar @_ ? :
245 0 1 if $dim <= 1
252 0 1 if $dim <= 1
259 0 1 if $dim <= 1
266 0 1 if $dim <= 1
269 0 1 if $xmin <= 0 or $xmax <= 0
277 0 1 if $dim <= 1
280 0 1 if $xmin <= 0 or $xmax <= 0
288 0 1 if $dim <= 1
291 0 1 if $xmin <= 0 or $xmax <= 0
371 0 44 if (ref $_[0] eq 'PDL::Type')
375 0 44 ref $_[0] ? :
378 0 44 if defined $type
434 0 2 if $#_ < 0
445 1 1 wantarray ? :
481 0 1 if @_ < 2
491 1 0 wantarray ? :
496 0 3 unless defined $min
497 0 3 unless defined $max
499 0 3 if $nelem == 0
501 0 0 $nelem > 10000 ? :
0 3 unless defined $step
502 0 3 if $step == 0
505 0 3 if $PDL::debug
508 2 1 if $wantarray
540 0 139 ref $_[0] && ref $_[0] ne 'PDL::Type' ? :
543 142 2 scalar @_ ? :
614 0 14 ref $_[0] && ref $_[0] ne 'PDL::Type' ? :
617 8 6 if ref $_[$#_] eq 'HASH'
618 8 6 defined $opt ? :
623 14 0 scalar @_ ? :
626 7 7 if defined $opt{'CENTRE'}
633 14 14 defined $pos[$i] ? :
639 2 12 $opt{'Squared'} ? :
668 0 1 if ($dummy->getndims <= $nth)
683 0 408 if ($dummy->getndims <= $nth)
709 0 0 if ($this->is_inplace) { }
715 0 0 int($coords[$_]) + $w->getdim($_) - 1 < $this->getdim($_) ? :
726 0 0 if (join(',', @{$from->dims;}) ne join(',', @{$to->dims;}))
763 6 7 if ($this->getndims <= 1)
764 0 6 if ($this->getndims == 0) { }