Condition Coverage

blib/lib/Statistics/Descriptive/LogScale.pm
Criterion Covered Total %
condition 52 68 76.4


and 3 conditions

line !l l&&!r l&&r condition
207 29 9 4 $opt{'linear_width'} and not $opt{'linear_thresh'}
464 0 0 48 0 <= $x and $x <= 100
550 1 1 0 $@ and not $@ =~ /division.*zero/
818 0 0 289 $k == 0 + $k and $v == 0 + $v
0 1 287 $k == 0 + $k and $v == 0 + $v and $v < $INF
929 18 2 0 exists $opt{$_} and $raw->{$_} = $opt{$_}
1136 1 3 0 $max < $_->[0] and $max = $_->[0]
1179 0 0 1 defined $newmin and $newmin > $min
1183 0 0 1 defined $newmax and $newmax < $max
1310 3 1 1 $method eq 'percentile' and not defined $result
1409 1 20 126 @$array and $array->[0] < $x
1421 11 59 4 defined $array->[$i] and $array->[$i] == $x
1447 1537 18 206 $self->{'linear_width'} && $self->{'linear_width'} * floor($x / $self->{'linear_width'} + 0.5)
1463 63 0 121 $self->{'linear_width'} && $self->{'linear_width'} * (floor($x / $self->{'linear_width'} + 0.5) - 0.5)

or 2 conditions

line l !l condition
192 29 13 $opt{'base'} ||= 1.0099743512671
208 15 27 $opt{'linear_thresh'} ||= 0
524 1 0 $lower ||= 0
833 200 86 $self->{'data'}{$key} || 0
840 10 2 delete $self->{'data'}{$key} || 0
877 1 1 $opt{'noize_thresh'} || 0
1481 159 32 $self->{'cache'}{'sorted'} ||= [(sort {$a <=> $b;} keys %{$$self{'data'};})]

or 3 conditions

line l !l&&r !l&&!r condition
202 8 1 4 $opt{'linear_width'} ||= $opt{'linear_thresh'} * ($opt{'base'} - 1)
230 13 2 0 $opt{'linear_width'} || 2 * $self->{'linear_thresh'}
1015 20 3 124 defined $realmin or defined $realmax
1487 87 20 0 $self->{'cache'}{'probability'} ||= do { my @array; my $sum = 0; foreach $_ (@{$self->_sort;}) { $sum += $self->{'data'}{$_}; push @array, $sum; } ; \@array }