Branch Coverage

blib/lib/AI/Pathfinding/SMAstar/Examples/PalUtils.pm
Criterion Covered Total %
branch 30 64 46.8


line true false branch
34 0 0 if ($letters_hash{$element} > 1)
70 0 5 unless ($w)
71 4 1 unless ($phrase)
81 2 8 if ($l eq $ls)
112 2 3 if ($memo_cache{$word}) { }
140 0 0 if ($letters_hash{$element} > $most_frequent_letter_freq)
179 1 2 if ($memo_cache{$memo_key}) { }
197 3 5 if ($letters_seen_hash{$element}) { }
235 6 30 if ($letters_seen_hash{$element}) { }
290 17 6 if ($cached_vals) { }
337 0 5 if (index($word1, $word2) != 0)
361 0 6 if ($cached_vals1) { }
378 2 14 if ($match_word)
410 0 0 if ($match_word)
427 0 0 if $i == $j
464 4 0 if ($sparsity <= $max_score)
512 4 0 if ($sparsity <= $max_score)
526 2 4 unless ($candidate)
554 2 7 unless ($word)
568 17 5 if ($memo_cache{$word}) { }
594 0 2 if ($memo_cache{$first_half}) { }
613 0 0 unless (open READF, "+<$in_file")
628 0 1 unless (open READF, "+<$in_file")
645 4 0 if ($sparsity <= $max_score)
658 0 0 unless (open READF, "+<$in_file")
675 0 0 if ($sparsity <= $max_score)
697 0 0 if ($state == 0) { }
0 0 elsif ($state == 1) { }
0 0 elsif ($state == 2) { }
0 0 elsif ($state == 3) { }
713 0 0 $percent >= 100 ? :
772 0 0 if ($num_states > $max_nodes_in_mem)