Branch Coverage

blib/lib/Math/LiveStats.pm
Criterion Covered Total %
branch 1 84 1.1


line true false branch
85 0 5 unless @window_sizes
124 0 0 unless defined $timestamp and defined $value
125 0 0 if @{$self->{'data'};} and $self->{'data'}[-1]{'timestamp'} == $timestamp
130 0 0 unless $volume
144 0 0 if ($stats->{'synthetic'})
172 0 0 if ($oldest_point->{'timestamp'} > $window_start)
180 0 0 if ($last_removed_point) { }
214 0 0 if ($removed_count != 0)
218 0 0 if $stats->{'start_index'} < 0
222 0 0 if $stats->{'n'} == 1
228 0 0 if (not $oldest_in_window or $oldest_in_window->{'timestamp'} > $window_start)
234 0 0 $before_index >= 0 ? :
237 0 0 if ($before and $after) { }
0 0 elsif ($after) { }
278 0 0 unless defined $window
279 0 0 unless exists $self->{'stats'}{$window}
292 0 0 unless defined $window
293 0 0 unless exists $self->{'stats'}{$window}
297 0 0 $n > 1 ? :
298 0 0 $variance < 0 ? :
312 0 0 unless defined $stddev
345 0 0 if $pvalue > 1
346 0 0 if $pvalue < 0
360 0 0 unless defined $window and exists $self->{'stats'}{$window}
373 0 0 unless defined $window
374 0 0 unless exists $self->{'stats'}{$window}
376 0 0 $self->{'stats'}{$window}{'cv'} ? :
388 0 0 unless defined $window
389 0 0 unless exists $self->{'stats'}{$window}
393 0 0 $cv > 0 ? :
394 0 0 $variance < 0 ? :
425 0 0 if ($stats->{'synthetic'})
443 0 0 $stats->{'n'} ? :
0 0 $point->{'volume'} ? :
458 0 0 if ($sumw_prev > 0) { }
475 0 0 $stats->{'n'} ? :
0 0 $point->{'volume'} ? :
477 0 0 if $stats->{'n'} < 0
484 0 0 if $stats->{'M2'} < 0
489 0 0 if $stats->{'cv'} < 0
493 0 0 if ($stats->{'cv'} > 0) { }
497 0 0 if $stats->{'vM2'} < 0