Branch Coverage

blib/lib/Games/Sudoku/CPSearch.pm
Criterion Covered Total %
branch 37 46 80.4


line true false branch
15 0 8 if (defined $file)
17 0 0 unless open FH, $file
41 1944 147744 if ($s eq $s2)
54 15552 1944 if $s2 ne $s
71 0 8 if defined $puzzle
83 0 100 unless defined $solution
92 0 101 unless length $puzzle == 81 and $puzzle =~ /^[\d\.\-]+$/
150 0 100 unless defined $self->_puzzle
157 6049 2051 unless $d =~ /^\d$/
158 0 2051 unless defined $self->_assign($grid, $s, $d)
166 86823 39553 if scalar @delete == 0
172 18054 21499 if all sub { defined $_; } , @results
178 797429 226031 unless defined $$grid{$s} and $$grid{$s} =~ /$d/
182 2080 223951 if $len == 0
183 57204 166747 if ($len == 1)
186 27800 910120 unless defined $grid
193 879 565099 if $locations == 0
194 118101 446998 if ($locations == 1)
196 18540 99561 unless defined $grid
204 2959 3365 unless defined $grid
205 100 3265 if all sub { length $$grid{$_} == 1; } , $self->_squares
214 620 5604 if defined $result
228 0 18 unless $count == 9