Branch Coverage

blib/lib/PDL/Stats/GLM.pm
Criterion Covered Total %
branch 138 260 53.0


line true false branch
649 2 103 if $ivs->getndims == 1
652 12 93 if $opt{'CONST'}
666 0 105 if ($SLATEC) { }
676 1 104 if $coeff->getndims == 1 and $y->getndims > 1
680 101 4 unless wantarray
687 3 1 $opt{'CONST'} ? :
692 3 1 $opt{'CONST'} ? :
697 0 4 if $CDF
699 28 0 if ref $ret{$_} eq 'PDL'
766 1 0 if $ivs0->getndims == 1
781 0 1 if $CDF
783 3 2 if ref $ret{$_} eq 'PDL'
890 4 0 if ref $_[-1] eq 'HASH'
894 0 4 if ref $ivs_raw[0] eq 'ARRAY' and @{$ivs_raw[0];} != $y->nelem
897 0 10 if ref $_ eq 'PDL' and $_->squeeze->ndims > 1
908 1 3 unless $opt{'IVNM'} and @{$opt{'IVNM'};}
916 7 3 ref $_ eq 'PDL' ? :
926 1 3 if ($opt{'V'} and $y->nelem < $pdl_ivs_raw[0]->nelem)
953 0 4 if $CDF
961 21 1 if (@G) { }
979 0 22 if $CDF
991 0 4 if $opt{'PLOT'}
999 0 0 if ref $ivs_ref->[0][0] eq 'ARRAY' and @{$ivs_ref->[0][0];} != $n
1008 0 28 $e->getndims == 1 ? :
1080 28 32 if $m->getndims == 1
1082 28 32 if $se->getndims == 1
1095 0 16 if $num == 0 or $num > @$arr
1100 16 32 unless @pick
1105 16 16 if $i < 0
1227 8 0 if ref $_[-1] eq 'HASH'
1232 0 18 if ref $_ eq 'PDL' and $_->squeeze->ndims > 1
1244 1 7 unless $opt{'IVNM'} and @{$opt{'IVNM'};}
1251 25 1 ref $_ eq 'PDL' ? :
1264 3 5 if ($sj_bad->nelem)
1266 0 3 if $opt{'V'}
1288 32 14 if defined $_
1297 46 38 $k > $#$ivs_ref ? :
1298 46 38 $k > $#$ivs_ref ? :
1300 14 70 if (not defined $full[$k]) { }
58 12 elsif (ref $full[$k]) { }
1305 4 10 ref $full[-1] ? :
1314 884 58 if $_ != $k
1317 0 58 unless @G
1323 4 54 if ($k == $#full) { }
1337 4 8 if ($k == $#full) { }
1354 0 38 if $CDF
1358 228 62 if ref $ret{$_} eq 'PDL'
1373 0 8 if $opt{'PLOT'}
1423 24 14 if ($qr) { }
1425 22 22 /$qr/ ? :
1431 2 4 defined $ie_subj ? :
6 32 unless @wn
1434 32 6 @wn ? :
1437 38 91 if ($idv->[$i] eq $err)
1444 14 24 if (@wn == @$raw_ivs - @{$opt->{'BTWN'};}) { }
2 22 elsif (not @wn and $_ > $ie_subj) { }
6 16 elsif ($_ > $ie) { }
1452 4 4 @{$opt->{'BTWN'};} ? :
1470 31 7 $icollapsed->nelem ? :
1548 44 36 if (ref $var_ref eq 'PDL')
1550 0 44 if $var_ref->getndims > 1
1564 1 79 if ($var->badflag)
1570 61 19 wantarray ? :
1598 0 1 if ($var_e->sum == 0)
1599 0 0 wantarray ? :
1610 0 1 wantarray ? :
1721 0 4 if $y->getndims > 1
1724 4 0 if $ivs->getndims == 1
1730 2 2 if $opt{'CONST'}
1735 0 4 if $ymean == 0
1743 0 4 if ($SLATEC) { }
1759 0 4 if $opt{'PLOT'}
1761 2 2 unless wantarray
1765 2 0 $opt{'CONST'} ? :
1770 2 0 $opt{'CONST'} ? :
1775 0 2 if $CDF
1777 2 0 $coeff->dims ? :
1780 2 0 if $opt{'CONST'}
1783 2 0 if ($ivs->dim(1) > 1) { }
1788 2 0 if $opt{'CONST'}
1803 0 2 if $CDF
1806 20 0 if ref $ret{$_} eq 'PDL'
1815 3 5 if ($y->check_badflag or $ivs->check_badflag)
1874 0 1 if $y->getndims > 1
1877 1 0 ref $_ eq 'PDL' ? :
2 1 ref $_ eq 'PDL' && $_->ndims > 1 ? :
1947 0 1 if $CDF
2027 0 0 if $ivs->getndims == 1
2028 0 0 if $self->dim(0) != $ivs->dim(0)
2050 0 0 unless wantarray
2063 0 0 if $CDF
2067 0 0 if ($ivs->dim(1) > 1) { }
2093 0 0 if $CDF
2098 0 0 if ref $ret{$_} eq 'PDL'
2210 2 1 $opt{'CORR'} ? :
2214 0 3 if ($SLATEC) { }
2231 2 1 if ($opt{'CORR'}) { }
2240 0 3 if $opt{'PLOT'}
2314 1 0 wantarray ? :
2354 0 0 if ref $_[-1] eq 'HASH'
2357 0 0 unless ($PGPLOT)
2362 0 0 if ($self->ndims > 4)
2386 0 0 if defined $se
2389 0 0 if $opt{'AUTO'}
2397 0 0 unless (defined $w)
2402 0 0 defined $se ? :
2412 0 0 if $self->dim($iD[2]) > 1
2413 0 0 if $self->dim($iD[3]) > 1
2417 0 0 unless $opt{'WIN'}
2421 0 0 if $self->dim($iD[1]) > 1
2428 0 0 if defined $se
2434 0 0 if ($self->dim($iD[1]) > 1)
2443 0 0 unless $opt{'WIN'}
2475 0 0 unless ($PGPLOT)
2479 0 0 if ref $_[-1] eq 'HASH'
2497 0 0 unless ($win)
2509 0 0 unless $opt{'WIN'}
2545 0 0 unless ($PGPLOT)
2549 0 0 if ref $_[-1] eq 'HASH'
2566 0 0 $opt{'CORR'} ? :
2574 0 0 unless ($win)
2585 0 0 unless $opt{'WIN'}
2627 0 0 unless ($PGPLOT)
2631 0 0 if ref $_[-1] eq 'HASH'
2647 0 0 if $ncomp
2650 0 0 $self->dim(0) < $opt{'NCOMP'} ? :
2652 0 0 unless defined $opt{'CUT'}
2656 0 0 unless ($win)
2667 0 0 if $opt{'CUT'}
2669 0 0 unless $opt{'WIN'}