Branch Coverage

blib/lib/Games/Sudoku/CLI.pm
Criterion Covered Total %
branch 20 26 76.9


line true false branch
22 1 1 unless $self->start_game
30 2 3 if $self->verify_input
33 0 2 if ($self->{'input'} eq 'h')
39 1 1 if ($self->{'input'} eq 'x')
43 0 1 if ($self->{'input'} eq 'q')
49 0 1 if ($self->{'ctrl'}->table->is_finished)
68 1 1 if ($self->{'input'} eq 'x')
72 0 1 if ($self->{'input'} =~ /^n\s+(\d+)$/)
79 1 0 if ($self->{'input'} =~ /^l\s+(\S+)$/)
101 1 4 if ($self->{'input'} =~ /^[xqh]$/)
107 1 3 unless (defined $value)
111 0 3 if ($row > 9 or $col > 9 or $value > 9)
115 2 1 unless ($self->{'ctrl'}->table->cell($row, $col)->is_allowed($value))