Condition Coverage

lib/Algorithm/MasterMind/Secret.pm
Criterion Covered Total %
condition 8 12 66.6


and 3 conditions

line !l l&&!r l&&r condition
49 11 0 11 exists $hash_string{$_} && ($whites += $hash_secret{$_} > $hash_string{$_} ? $hash_string{$_} : $hash_secret{$_})
65 2914529 0 587483 ($s = chop $string) && $s eq $_ && ($_[2]{'blacks'}++, $hash_secret{$s}--, $hash_other_secret{$s}--)
71 1310901 391328 1025827 exists $hash_other_secret{$_} && ($_[2]{'whites'} += $hash_secret{$_} > $hash_other_secret{$_} ? $hash_other_secret{$_} : $hash_secret{$_})

or 3 conditions

line l !l&&r !l&&!r condition
12 1573 0 0 shift() || croak("No default string\n")