Branch Coverage

blib/lib/Statistics/Descriptive/PDL.pm
Criterion Covered Total %
branch 49 68 72.0


line true false branch
50 234 449 if defined $self->{'_cache'}{$method}
54 122 327 if not defined $piddle or $piddle->isempty
59 246 81 if (builtin::blessed($val) and $val->isa("PDL"))
83 5 0 wantarray ? :
91 0 29 if (builtin::blessed($_[0]) and $_[0]->isa('PDL')) { }
95 8 21 ref $_[0] eq 'ARRAY' ? :
99 0 29 unless scalar @$data
108 4 25 if ($has_existing_data) { }
124 1 0 defined $piddle ? :
126 0 1 wantarray ? :
133 2 0 if (defined $piddle)
141 0 0 wantarray ? :
214 7 1 if ($n > 1) { }
1 0 elsif ($n == 1) { }
215 7 0 if ($has_PDL_stats_basic) { }
220 0 0 $var > 0 ? :
232 3 2 defined $sd ? :
248 1 8 if $n < 3
250 8 0 if $has_PDL_stats_basic
269 1 8 if $n < 4
271 8 0 if $has_PDL_stats_basic
298 1 4 if $piddle->which->nelem != $piddle->nelem
302 3 1 $hs ? :
311 0 4 unless $count
312 0 4 if $piddle->where($piddle < 0)->nelem
327 3 3 if $unique->nelem == $count or $unique->nelem == 1
338 0 3 unless $piddle->in($mode)->max
349 0 1 if not defined $piddle or $piddle->nelem == 0
365 4 76 if not defined $piddle or $piddle->nelem == 0
367 16 60 if $p == 50
370 0 60 if $p < 0 or $p > 100
378 12 48 if defined $self->{'_cache'}{'percentile'}{$p}
382 18 30 if (builtin::blessed($pctl) and $pctl->isa("PDL"))
386 46 2 if (int $p == $p)