Branch Coverage

blib/lib/AI/Genetic/Pro/Mutation/Rangevector.pm
Criterion Covered Total %
branch 9 22 40.9


line true false branch
22 5243 277 if rand() >= $mutation
24 216 61 if ($ga->variable_length) { }
30 95 121 if ($rand < 0.4 and $range > 2) { }
0 121 elsif ($rand < 0.8 and $range < scalar @{$_translations;}) { }
31 26 69 if ($rand < 0.2 and $ga->variable_length > 1) { }
34 0 0 if ($rand < 0.6 and $ga->variable_length > 1 and not $$chromosomes[$idx][0]) { }
0 0 elsif (exists $$_translations[scalar @{$$chromosomes[$idx];}]) { }
63 0 0 if rand() <= $mutation
65 0 0 if ($ga->variable_length) { }
67 0 0 if ($rand < 0.33 and $#$chromosome > 1) { }
0 0 elsif ($rand < 0.66 and $#$chromosome < $#{$ga->_translations;}) { }