Branch Coverage

blib/lib/Lingua/ZH/ZhuYin.pm
Criterion Covered Total %
branch 14 44 31.8


line true false branch
54 0 4 if $attr eq 'DESTROY'
56 4 0 if ($ok_field{$attr}) { }
57 0 4 if @_
74 1 0 if (@_)
92 0 2 unless $self->dictfile
95 0 2 if not @zhuyins and length $utf8word == 1
96 0 2 if $zhuyins[0] eq '0'
97 0 2 unless @zhuyins
116 0 2 if $i > 0
118 0 2 unless $word eq $pre_word . $post_word
119 2 0 if ($pre_word and $pre_word ne '')
121 2 0 if @pre_zhuyins
124 0 2 if ($skip == 0 and $post_word and $post_word ne '')
127 0 0 if @post_zhuyins
136 2 0 if $skip == 0
139 0 0 if length $word == 1
149 0 0 unless @uni_zhuyins
150 0 0 if (scalar @uni_zhuyins != 1) { }
159 0 0 if $skip == 0
171 0 0 if $not_found == 0
173 0 0 if (scalar @ngram_zhuyins == 1)
181 0 0 if ($not_found)