Branch Coverage

blib/lib/Algorithm/History/Levels.pm
Criterion Covered Total %
branch 35 40 87.5


line true false branch
19 54 211 if ($histories->[$i][1] >= $min_time and $histories->[$i][1] <= $max_time)
153 1 12 unless my $histories0 = $args{'histories'}
159 84 19 if (ref $h eq 'ARRAY') { }
165 2 101 if $seen{$name}++
170 1 9 unless my $levels = $args{'levels'}
171 1 8 unless @$levels > 0
175 0 20 unless ref $l eq 'ARRAY'
176 1 19 unless @$l == 2
177 0 19 unless $l->[0] > 0
178 0 19 unless $l->[1] >= 1
179 12 7 if (defined $min_period)
180 1 11 unless $l->[0] > $min_period
203 39 42 if ($l > 0)
209 54 27 if $h
216 11 6 unless ($num_filled >= $num_per_level)
218 4 7 if ($args{'discard_young_histories'} // 0)
220 4 0 if ($l > 0)
228 4 7 if ($args{'discard_old_histories'} // 0)
230 4 0 if ($l > 0)
246 17 71 if ($histories[$i] eq $sample[$j])