Branch Coverage

blib/lib/AI/Pathfinding/SMAstar/Examples/Phrase.pm
Criterion Covered Total %
branch 98 216 45.3


line true false branch
70 0 0 if (@_)
76 0 0 if (@_)
82 0 0 if (@_)
88 0 0 if (@_)
96 0 0 if (@_)
102 0 0 if (@_)
108 0 0 if (@_)
114 0 0 if (@_)
120 0 0 if (@_)
126 0 0 if (@_)
132 0 0 if (@_)
138 0 0 if (@_)
144 0 0 if (@_)
150 0 0 if (@_)
156 0 0 if (@_)
162 0 0 if (@_)
216 0 0 if ($arg_phrase_plus_word gt $phrase_plus_word) { }
0 0 elsif ($arg_phrase_plus_word eq $phrase_plus_word) { }
245 0 7 if (defined $fcost)
255 5 2 defined $$self{'_phrase'} ? :
260 5 2 if ($phrase_num_chars)
289 1 5 if (AI::Pathfinding::SMAstar::Examples::PalUtils::is_palindrome($phrase) and AI::Pathfinding::SMAstar::Examples::PalUtils::num_chars_in_pal($phrase) >= $min_num_chars) { }
345 0 12 unless ($phrase_obj)
363 6 6 defined $whole_word ? :
370 8 4 if ($direction == 0) { }
4 0 elsif ($direction == 1) { }
402 2 7 if ($next_word) { }
411 0 0 if (defined $$antecedent{'_word'} and $w eq $$antecedent{'_word'} and $antecedent_dir == 0)
416 0 2 if ($antecedent)
421 0 2 if ($repeated_word_p or $w eq $word)
468 0 7 unless ($c)
478 3 4 if ($letters_seen_str)
483 3 0 if (my $hash_val = $$repeated_pal_hash_ref{$repeated_pal_hash_key}) { }
485 0 3 if ($hash_val != $depth)
502 2 5 if ($len_c < $len_word) { }
3 2 elsif ($len_c > $len_word) { }
519 5 2 if ($direction == 0) { }
2 0 elsif ($direction == 1) { }
520 0 5 if ($len_c < $len_word) { }
3 2 elsif ($len_c > $len_word) { }
531 2 0 if ($len_c < $len_word) { }
0 0 elsif ($len_c > $len_word) { }
542 5 2 defined $match_remainder ? :
545 2 5 if ($len_c < $len_word) { }
3 2 elsif ($len_c > $len_word) { }
565 5 2 if ($match_remainder) { }
617 0 0 if (defined $$antecedent{'_word'} and $w eq $$antecedent{'_word'} and $antecedent_dir == 0)
622 0 2 if ($antecedent)
627 2 0 if ($repeated_word_p or $w eq $word)
708 0 0 unless ($phrase_obj)
732 0 0 if ($direction == 0) { }
0 0 elsif ($direction == 1) { }
750 0 0 if ($next_word) { }
759 0 0 if (defined $$antecedent{'_word'} and $w eq $$antecedent{'_word'} and $antecedent_dir == 0)
764 0 0 if ($antecedent)
769 0 0 if ($repeated_word_p or $w eq $word)
777 0 0 unless ($c)
787 0 0 if ($letters_seen_str)
792 0 0 if (my $hash_val = $$repeated_pal_hash_ref{$repeated_pal_hash_key}) { }
794 0 0 if ($hash_val != $depth)
810 0 0 if ($len_c < $len_word) { }
0 0 elsif ($len_c > $len_word) { }
825 0 0 if ($len_c != $len_word)
830 0 0 if ($match_remainder) { }
862 0 0 if (defined $$antecedent{'_word'} and $w eq $$antecedent{'_word'} and $antecedent_dir == 0)
867 0 0 if ($antecedent)
872 0 0 if ($repeated_word_p or $w eq $word)
895 0 7 unless ($phrase_obj)
919 5 2 if ($direction == 0) { }
2 0 elsif ($direction == 1) { }
937 2 14 if ($next_word) { }
946 0 0 if (defined $$antecedent{'_word'} and $w eq $$antecedent{'_word'} and $antecedent_dir == 0)
951 0 2 if ($antecedent)
956 0 2 if ($repeated_word_p or $w eq $word)
965 7 7 unless ($c)
975 3 4 if ($letters_seen_str)
980 0 3 if (my $hash_val = $$repeated_pal_hash_ref{$repeated_pal_hash_key}) { }
982 0 0 if ($hash_val != $depth)
999 2 5 if ($len_c < $len_word) { }
3 2 elsif ($len_c > $len_word) { }
1014 5 2 if ($len_c != $len_word)
1019 5 2 if ($match_remainder) { }
1051 0 0 if (defined $$antecedent{'_word'} and $w eq $$antecedent{'_word'} and $antecedent_dir == 0)
1056 0 2 if ($antecedent)
1061 2 0 if ($repeated_word_p or $w eq $word)
1104 34 0 unless ($depth)
1109 12 33 if (not $$pobj{'_cand'} and $depth == 0) { }
1120 15 18 if (defined $$pobj{'_phrase'} and not $depth)
1131 11 7 if ($antecedent)
1139 14 4 defined $$pobj{'_word'} ? :
1140 18 0 defined $$pobj{'_start_word'} ? :
1141 11 7 defined $$pobj{'_cand'} ? :
1143 7 11 if (not $phrase) { }
1144 2 5 if ($direction == 0) { }
5 0 elsif ($direction == 1) { }
1152 8 3 if ($direction == 0) { }
3 0 elsif ($direction == 1) { }
1153 8 0 if ($ant_direction == 0) { }
0 0 elsif ($ant_direction == 1) { }
1155 8 0 if (not $antecedent_predecessor) { }
1156 8 0 if ($word) { }
1164 0 0 if ($no_match_remainder) { }
1173 0 0 if ($no_match_remainder) { }
1182 2 1 if ($ant_direction == 0) { }
1 0 elsif ($ant_direction == 1) { }
1227 4 1 if ($$self{'_predecessor'}) { }
1229 1 3 $$antecedent{'_phrase'} ? :
1242 3 2 if ($line_num == 0)