Branch Coverage

blib/lib/Algorithm/Evolve.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
16 0 0 if $DEBUG
47 0 0 unless *{'Algorithm::Evolve::selection::' . $p->selection;}{'CODE'} and *{'Algorithm::Evolve::replacement::' . $p->replacement;}{'CODE'}
50 0 0 unless $p->size
51 0 0 if $p->parents_per_gen % 2
52 0 0 if $p->children_per_gen % $p->parents_per_gen
54 0 0 if $p->children_per_gen > $p->size or $p->parents_per_gen > $p->size
92 0 0 if $p->use_fitness
97 0 0 if ref $p->callback eq 'CODE'
116 0 0 unless $p->use_fitness
130 0 0 unless defined $method
138 0 0 unless defined $method
146 0 0 unless defined $parents and defined $children
156 0 0 if defined $p->critters
160 0 0 if $p->use_fitness
170 0 0 unless $p->use_fitness
175 0 0 unless defined $$fitnesses[$_]
194 0 0 if $num > @$relative_prob
227 0 0 unless $p->use_fitness
234 0 0 unless $p->use_fitness
243 0 0 unless $p->use_fitness
250 0 0 unless $p->use_fitness
271 0 0 unless $p->use_fitness
278 0 0 unless $p->use_fitness
292 0 0 if not defined $t_size or $t_size < 2 or $t_size > $p->size
294 0 0 if $num / 2 * $t_size > $p->size
296 0 0 unless $p->replacement eq 'tournament' or $tournament_warn++
322 0 0 if @tournament_replace_indices != $num
324 0 0 unless $p->selection eq 'tournament'
339 0 0 unless $p->replacement eq 'gladitorial' or $gladitorial_warn++
353 0 0 if ($attempts++ > $max_attempts)
354 0 0 unless $gladitorial_attempts_warn++
368 0 0 if $cmp == 0
370 0 0 $cmp > 0 ? :
383 0 0 if @gladitorial_replace_indices != $num
385 0 0 unless $p->selection eq 'gladitorial'
403 0 0 if $#_