Branch Coverage

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


line true false branch
221 14 17 ref $_[0] && ref $_[0] ne 'PDLA::Type' ? :
222 9 9 ref $_[0] && ref $_[0] ne 'PDLA::Type' ? :
223 1 2 ref $_[0] && ref $_[0] ne 'PDLA::Type' ? :
226 20 149 scalar @_ ? :
232 12 12 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 1 if (ref $_[0] eq 'PDLA::Type')
375 0 1 ref $_[0] ? :
378 0 1 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 $PDLA::debug
508 2 1 if $wantarray
540 0 110 ref $_[0] && ref $_[0] ne 'PDLA::Type' ? :
543 113 2 scalar @_ ? :
614 0 9 ref $_[0] && ref $_[0] ne 'PDLA::Type' ? :
617 6 3 if ref $_[$#_] eq 'HASH'
618 6 3 defined $opt ? :
623 9 0 scalar @_ ? :
626 5 4 if defined $opt{'CENTRE'}
633 10 8 defined $pos[$i] ? :
639 2 7 $opt{'Squared'} ? :
668 0 1 if ($dummy->getndims <= $nth)
683 0 198 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 4 7 if ($this->getndims <= 1)
764 0 4 if ($this->getndims == 0) { }