Branch Coverage

blib/lib/Statistics/Descriptive/LogScale.pm
Criterion Covered Total %
branch 139 164 84.7


line true false branch
194 0 42 unless $opt{'base'} > 1
201 13 29 if (defined $opt{'linear_thresh'}) { }
207 4 38 if $opt{'linear_width'} and not $opt{'linear_thresh'}
209 0 42 unless $opt{'linear_thresh'} >= 0
229 15 27 if ($self->{'linear_thresh'})
232 4 11 unless $n_linear % 2
237 10 32 if ($opt{'data'})
340 4 1 $self->count ? :
444 0 4 unless $self->{'count'}
464 0 48 unless 0 <= $x and $x <= 100
468 6 42 if $need < 1
525 1 0 unless defined $upper
530 0 1 unless $min < $max
550 0 2 if ($@ and not $@ =~ /division.*zero/)
567 1 1 unless $self->count
568 0 1 if $self->min * $self->max < 0
571 0 1 if $self->{'data'}{'0'}
574 0 1 $self->min < 0 ? :
588 2 18 unless $n > 2
608 2 20 unless $n > 3
708 1 2 unless $self->count
711 0 2 unless defined $index
713 1 1 unless (ref $index)
714 0 1 unless $index > 2
818 1 287 unless $k == 0 + $k and $v == 0 + $v and $v < $INF
822 2 17 if $@
829 0 286 unless $hash->{$_}
834 274 12 if ($newcount > 0) { }
874 61 2 unless %opt
882 5 8 if $_ < $min
883 0 8 if $_ > $max
884 2 6 if $data->{$_} < $noize
925 4 3 if (%opt)
927 2 2 unless exists $opt{'data'}
960 0 1 unless $factor > 0
987 1 23 unless $weight
1015 124 3 unless (defined $realmin or defined $realmax)
1023 3 20 unless defined $realmin
1024 3 20 unless defined $realmax
1025 0 23 if $realmin >= $realmax
1042 20 264 if $val > $right
1050 20 3 if ($self->{'data'}{$max})
1052 19 1 $width ? :
1058 20 3 if ($self->{'data'}{$min})
1060 11 9 $width ? :
1106 1 4 unless $self->count
1109 3 1 unless $opt{'index'}
1110 3 1 if (not @index) { }
1112 0 3 unless $n > 0
1122 0 1 unless @index > 1
1133 1 3 if (my $norm = $opt{'normalize_to'})
1171 1 8 unless $self->count
1174 3 5 defined $opt{'min'} ? :
1175 2 6 defined $opt{'max'} ? :
1177 1 7 if ($opt{'ltrim'})
1179 1 0 if defined $newmin and $newmin > $min
1181 1 7 if ($opt{'utrim'})
1183 1 0 if defined $newmax and $newmax < $max
1281 0 5 if @extra
1290 1 6 unless ($method =~ /^[a-zA-Z]/)
1294 1 5 unless ($format{$method})
1295 0 1 unless @$extra
1302 2 3 if ($method =~ s/\?$//) { }
1303 0 2 unless defined $arg
1305 0 3 if defined $arg
1310 1 4 if $method eq 'percentile' and not defined $result
1334 0 253 unless ref $orig_code eq 'CODE'
1340 103 105 unless (exists $_[0]{'cache'}{$name})
1348 66 105 unless defined $arg
1350 102 69 unless (exists $self->{'cache'}{"${name}:$arg"})
1354 138 115 !$arg ? :
1383 31 74 if @_ > 1
1388 9 65 unless $i--
1393 34 31 if (my $val = $self->{'data'}{$bin})
1395 30 4 $width ? :
1409 21 126 unless @$array and $array->[0] < $x
1414 229 176 $array->[$m] < $x ? :
1421 4 70 if defined $array->[$i] and $array->[$i] == $x
1445 1761 89129 if (abs $x <= $self->{'linear_thresh'})
1451 40081 49048 $x < 0 ? :
1461 184 699 if (abs $x <= $self->{'linear_thresh'})
1466 310 389 if ($x > 0) { }