Branch Coverage

blib/lib/Algorithm/MasterMind.pm
Criterion Covered Total %
branch 16 28 57.1


line true false branch
126 896 10343 if $$rule_result{'match'}
137 10874 365 unless ($$self{'_rules_hash'}{$$rule{'combination'}}{$string})
139 805 10069 if ($$rule{'blacks'} == $$result{'blacks'} and $$rule{'whites'} == $$result{'whites'}) { }
159 40391 137189 if ($c eq $s) { }
168 55099 47812 unless defined $hash_string{$k}
169 9251 38561 $hash_combination{$k} > $hash_string{$k} ? :
203 0 0 $diff_black > $diff_white ? :
218 0 0 if ($combination_arr[$i] eq $string_arr[$i])
229 0 0 if $k eq '0'
230 0 0 unless defined $hash_string{$k}
231 0 0 $hash_combination{$k} > $hash_string{$k} ? :
253 0 0 if $alphabet_hash{$l}
265 316 66988 if $c eq $cc
267 33494 33494 if ($c lt $cc) { }