Branch Coverage

lib/Games/Sudoku/Lite.pm
Criterion Covered Total %
branch 76 96 79.1


line true false branch
31 0 4678 if not $Retrying
38 19 1 if (defined $config and ref $config eq 'HASH')
55 20 8 if $success
77 0 524 if $Config{'DEBUG'}
99 416 376 if ref $cell
115 152 0 if (ref $point eq 'ARRAY') { }
122 107 45 unless @choices == $limit
130 52 34 if ($success) { }
132 44 8 if ($errors) { }
165 0 20410 if ($Config{'DEBUG'}) { }
170 0 0 if ref $r
184 40833 173641 if ref $string
187 0 214474 if ($Config{'DEBUG'})
188 0 0 unless $i % $Config{'square_width'}
193 0 20410 if ($Config{'DEBUG'})
195 0 0 unless $j % $Config{'square_height'}
213 1220 674 if ($cell eq '.')
222 0 190 if $i > $Config{'height'}
234 23330 43365 if ref $cell
299 0 166161 if not defined $cell or $cell eq ''
300 106803 59358 unless (ref $cell)
305 632 58726 unless @$cell
306 2028 57330 if @$cell == 1
314 108831 57330 unless ref $cell
317 57330 0 if (ref $cell)
329 9598 149672 unless $appearances < $homes{$n}
334 0 149672 unless @values > 1
336 709 148963 if ($appearances >= @values)
337 6 703 if $appearances > @values
349 3828 3143 unless ref $cell
352 1456 1687 if $my_values eq $values
371 217662 114660 unless (ref $cell)
385 188278 15252 unless grep /^$o$/, @take_out
398 2020 13733 unless (keys %homes == @{$Config{'possible_values'};})
405 0 163957 unless $homes{$n}
409 106297 57660 if ($homes{$n} == 1)
410 34215 72082 if ($row_num) { }
35699 36383 elsif ($column_num) { }
36383 0 elsif ($square_num) { }
440 889566 303913 unless ref $cell
441 1706 302207 if (grep /^$n$/, @$cell)
523 465449 472050 if ($set_square)
538 28377 55564 if ($int_float == $float) { }
581 537 18728 if $seen{$_} != 1
585 796 19007 unless $seen{$_}
593 0 5741 unless ref $ref
595 5741 0 if (ref $ref eq 'ARRAY')
601 5655 20484 if (ref $value) { }