Branch Coverage

blib/lib/AI/Genetic/Pro/Chromosome.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
14 1320 0 if $package
16 620 700 if ($type eq 'bitvector') { }
100 600 elsif ($type eq 'combination') { }
300 300 elsif ($type eq 'rangevector') { }
18 8443 8482 rand > 0.5 ? :
35 0 8783 if $#$values > $#$data
38 8783 0 if $package
40 79 8704 if ($type eq 'bitvector') { }
1024 7680 elsif ($type eq 'combination') { }
3840 3840 elsif ($type eq 'rangevector') { }
42 2528 0 unless not defined $_
0 79 if first sub { $_ != 0 and $_ != 1 unless not defined $_; } , @$values
46 0 1024 if $#$values != $#{$$data[0];}
49 0 8192 if $id == -1
54 30720 0 if (defined $$values[$idx]) { }
57 0 30720 if $$values[$idx] > $max or $$values[$idx] < $min
65 245760 0 unless not defined $$values[$idx] || defined $_
68 0 30720 if $id == -1