Branch Coverage

lib/Statistics/Descriptive/PDL/Weighted.pm
Criterion Covered Total %
branch 47 62 75.8


line true false branch
54 9 38 if (ref $data eq 'HASH') { }
62 1 37 if scalar $data_piddle->nelem != $weights_piddle->nelem
64 2 35 if PDL::any($weights_piddle <= 0)
68 0 44 unless $data_piddle->nelem
73 12 32 if ($has_existing_data) { }
92 5 39 if ($data_from_hash and not $has_existing_data)
104 1 0 defined $piddle ? :
105 1 0 defined $wts_piddle ? :
107 0 1 wantarray ? :
115 0 0 wantarray ? :
0 3 unless defined $piddle
125 0 3 wantarray ? :
131 14 12 if (@_)
151 0 44 unless defined $piddle
192 21 1 if ($n > 1) { }
1 0 elsif ($n == 1) { }
210 3 2 defined $sd ? :
230 0 55 unless defined $data
232 33 22 if $self->{'sorted'}
256 0 10 unless defined $piddle
258 1 9 if $self->values_are_unique
263 3 6 if ($unique->nelem == $piddle->nelem)
268 3 3 unless ($self->{'sorted'})
285 168 36 if ($val != $last_val)
292 2 4 if ($args{'inplace'})
312 30 19 if defined $self->{'_cache'}{'cumsum_weight_vector'}
352 1 5 if $data->which->nelem != $data->nelem
358 4 1 $hs ? :
367 0 5 if $data->where($data < 0)->nelem
386 0 4 if ($mode > $data->max)
400 0 5 if not defined $data or $data->isempty