Branch Coverage

blib/lib/eGuideDog/Dict/Cantonese.pm
Criterion Covered Total %
branch 13 50 26.0


line true false branch
47 1 0 if (-e "$dir/Cantonese.dict")
85 0 0 unless (defined $$self{'chars'}{$char})
89 0 0 unless ($char_simp =~ /[?]/)
90 0 0 unless (defined $$self{'chars'}{$char_simp})
95 0 0 unless ($char_trad =~ /[?]/)
96 0 0 unless (defined $$self{'chars'}{$char_trad})
107 0 0 if (not $$self{'chars'}{$char}) { }
112 0 0 if ($symbol eq $_)
126 0 0 if ($line =~ /^(.)\s([^\s]*)\s$/) { }
0 0 elsif ($line =~ /^[(]([^)]*)[)]\s([^\s]*)\s$/) { }
127 0 0 if ($1 and $2)
134 0 0 if ($#chars != $#symbols)
139 0 0 if ($$self{'word_index'}{$chars[0]}) { }
168 0 3 if (not utf8::is_utf8($str)) { }
0 3 elsif (not $str) { }
169 0 0 unless (utf8::decode($str))
177 1 2 if (wantarray) { }
184 0 0 if (index($str, $word) == 0)
185 0 0 if (length $word > length $longest_word)
190 0 2 if ($longest_word) { }
203 1 51 if (index($str, $word) == 0)
204 1 0 if (length $word > length $longest_word)
209 1 1 if ($longest_word) { }
220 3 2 if ($$self{'word_index'}{$char}) { }
234 0 0 if ($$self{'chars'}{$char}) { }