Branch Coverage

blib/lib/Statistics/Descriptive/Full.pm
Criterion Covered Total %
branch 97 118 82.2


line true false branch
94 0 0 unless ($self->count)
109 3 36 if (ref $_[0] eq 'ARRAY') { }
117 0 39 unless @{$aref;}
127 4 35 if ($has_existing_data) { }
165 4 35 if ($has_existing_data)
178 0 1 unless @{$aref_values;}
198 1 4 if ($self->count < $Statistics::Descriptive::Min_samples_number)
203 1 3 unless (defined $self->{'_outlier_filter'})
212 1 2 unless $is_outlier
224 2 4 if (not $code_ref or ref $code_ref ne 'CODE')
241 3 18 if ($max_std_deviation < abs $curr_value - $mean)
261 1 1 unless (defined $self->{'_smoother'})
271 1 3 unless $self->count
274 1 2 if ($self->presorted) { }
290 1 3 unless $self->count
295 1 2 if ($self->presorted) { }
311 12 16 unless ($self->presorted)
335 2 2 if (not $count or $percentile < 100 / $count)
345 0 2 wantarray ? :
356 4 3 if ($count % 2) { }
372 2 15 unless $self->count
375 7 8 unless (defined $self->_median)
386 0 18 unless (defined $QuantileNumber and $QuantileNumber =~ /^0|1|2|3|4$/)
392 1 17 unless $self->count
396 3 14 if $QuantileNumber == 0
400 3 11 if $QuantileNumber == 4
408 4 7 if $F_quantile == 0
447 2 2 if (@_ == 1) { }
457 1 3 unless $self->count
462 2 1 unless (exists $cache->{$thistm})
487 1 10 if ($self->_test_for_too_small_val($item))
495 3 1 if ($self->_test_for_too_small_val($hs))
507 5 0 unless (defined $self->_harmonic_mean)
519 3 2 unless (defined $self->_mode)
529 4 7 if ($count > $occurances)
537 1 2 $occurances > 1 ? :
545 2 3 $m->{'exists'} ? :
551 1 1 unless $self->count
553 1 0 unless (defined $self->_geometric_mean)
560 0 3 if ($val < 0)
576 7 0 unless (defined $self->_skewness)
584 5 2 if ($sd and $n > 2)
608 7 0 unless (defined $self->_kurtosis)
615 5 2 if ($sd and $n > 3)
642 1 5 if ($self->count < 2)
647 1 4 if (not @_ and defined $self->_frequency)
655 2 2 if (ref $partitions eq 'ARRAY') { }
658 0 2 unless @k
659 2 0 if (@k > 1)
663 0 8 if ($element > $next_elem)
674 0 2 unless $partitions >= 1
691 129 1005 if ($element <= $limit)
707 1 4 if (not defined $ret) { }
719 2 1 if $self->count < 2
733 1 0 if (not defined $_[1]) { }
738 0 0 if ($self->count != scalar @x)
753 0 1 unless abs $denom > $Statistics::Descriptive::Tolerance
762 0 1 unless abs $denom > $Statistics::Descriptive::Tolerance
784 1 0 unless (defined $self->_median_absolute_deviation)