Branch Coverage

blib/lib/eGuideDog/Dict/Mandarin.pm
Criterion Covered Total %
branch 13 60 21.6


line true false branch
48 1 0 if (-e "$dir/Mandarin.dict")
90 0 0 if ($$self{'symbol_size'}{$symbol}) { }
167 0 0 unless (defined $$self{'chars'}{$char})
171 0 0 unless ($char_simp =~ /[?]/)
172 0 0 unless (defined $$self{'chars'}{$char_simp})
177 0 0 unless ($char_trad =~ /[?]/)
178 0 0 unless (defined $$self{'chars'}{$char_trad})
189 0 0 if (not $$self{'chars'}{$char}) { }
194 0 0 if ($symbol eq $_)
208 0 0 if ($line =~ /^(.)\s([^\s]*)\s$/) { }
0 0 elsif ($line =~ /^[(]([^)]*)[)]\s([^\s]*)\s$/) { }
209 0 0 if ($1 and $2)
212 0 0 if ($py =~ /^[a-z]*[1-5]$/)
221 0 0 if ($phon =~ /[|]/) { }
229 0 0 if ($#chars != $#symbols)
234 0 0 if ($$self{'word_index'}{$chars[0]}) { }
251 0 3 if (not utf8::is_utf8($str)) { }
0 3 elsif (not $str) { }
252 0 0 unless (utf8::decode($str))
260 1 2 if (wantarray) { }
267 0 8 if (index($str, $word) == 0)
268 0 0 if (length $word > length $longest_word)
273 0 2 if ($longest_word) { }
286 1 183 if (index($str, $word) == 0)
287 1 0 if (length $word > length $longest_word)
292 1 1 if ($longest_word) { }
303 5 0 if ($$self{'word_index'}{$char}) { }
317 0 0 if ($$self{'chars'}{$char}) { }
334 0 0 if ($phonh{$phon}) { }
345 0 0 if ($phonh{$pytone}) { }