Branch Coverage

blib/lib/Game/WordBrain.pm
Criterion Covered Total %
branch 11 32 34.3


line true false branch
150 3 0 unless (exists $args->{'solutions'})
154 2 1 unless (exists $args->{'speller'})
158 2 1 unless (exists $args->{'prefix'})
160 1 1 $Game::WordBrain::a->{'num_letters'} > $Game::WordBrain::b->{'num_letters'} ? :
202 0 0 if ($max_word_length < $word_to_find->{'num_letters'})
216 0 0 if (grep {$_->{'num_letters'} == length $possible_word->word;} @{$$self{'words_to_find'};})
217 0 0 if ($self->{'speller'}->is_valid_word($possible_word))
225 0 0 if (scalar @{$self->{'words_to_find'};} > 1) { }
272 4 5 if (grep {$_ == $letter;} @{$$found_word{'letters'};})
279 6 14 if $_->{'col'} == $letter->{'col'}
315 0 0 if $_->{'row'} == $args->{'row'}
338 0 0 if ($row_offset == 0 and $col_offset == 0)
351 0 0 unless ($letter)
355 0 0 if (grep {$_ == $letter;} @{$$args{'used'};})
401 0 0 if (scalar @{$args->{'word_root'}{'letters'};} >= $args->{'max_word_length'})
405 0 0 unless ($self->{'prefix'}->is_start_of_word($args->{'word_root'}))