Branch Coverage

blib/lib/Game/WordBrain.pm
Criterion Covered Total %
branch 31 32 96.8


line true false branch
150 129 0 unless (exists $args->{'solutions'})
154 7 122 unless (exists $args->{'speller'})
158 7 122 unless (exists $args->{'prefix'})
160 2 1 $Game::WordBrain::a->{'num_letters'} > $Game::WordBrain::b->{'num_letters'} ? :
202 123 1 if ($max_word_length < $word_to_find->{'num_letters'})
216 1286 5537 if (grep {$_->{'num_letters'} == length $possible_word->word;} @{$$self{'words_to_find'};})
217 195 1091 if ($self->{'speller'}->is_valid_word($possible_word))
225 121 74 if (scalar @{$self->{'words_to_find'};} > 1) { }
272 512 586 if (grep {$_ == $letter;} @{$$found_word{'letters'};})
279 616 1824 if $_->{'col'} == $letter->{'col'}
315 45031 116730 if $_->{'row'} == $args->{'row'}
338 4564 36512 if ($row_offset == 0 and $col_offset == 0)
351 23521 12991 unless ($letter)
355 6098 6893 if (grep {$_ == $letter;} @{$$args{'used'};})
401 942 6525 if (scalar @{$args->{'word_root'}{'letters'};} >= $args->{'max_word_length'})
405 1969 4556 unless ($self->{'prefix'}->is_start_of_word($args->{'word_root'}))