Branch Coverage

blib/lib/Games/YASudoku/Board.pm
Criterion Covered Total %
branch 32 44 72.7


line true false branch
92 0 1642 unless $row_num and $row_num >= 1 and $row_num <= 9
127 0 1642 unless $col_num and $col_num >= 1 and $col_num <= 9
172 0 1642 unless $grp_num and $grp_num >= 1 and $grp_num <= 9
193 3664 2978 if $square->value
220 1632 13056 if grep /^$element_id$/, @{$$GROUPS[$i];}
246 18 144 if ($i % 9 == 0)
247 6 12 if ($i % 27 == 0) { }
254 105 57 if ($value) { }
259 54 108 if (($i + 1) % 3 == 0) { }
287 0 0 if ($i % 9 == 0)
288 0 0 if ($i % 27 == 0) { }
295 0 0 if ($value) { }
300 0 0 if (($i + 1) % 3 == 0) { }
351 1776 1545 if $element->value
356 25198 16517 unless $e->value
359 0 16517 if (@{$element->valid;} == 0)
371 43 1502 if (@{$element->valid;} == 1)
399 157 86 if $element->value
409 238 1904 if $e->id == $element->id
410 806 1098 if $e->value
414 665 1738 if keys %valid_nums == 0
418 14 224 if (keys %valid_nums == 1)